Add payment to bill

POST /api/v1/bills/{bill_id}/payments

Create a new payment for a specific bill.

Operation ID: create_bill_payment_api_v1_bills__bill_id__payments_post · View as markdown · OpenAPI slice

Authentication

Bearer token authentication. Pass your DayZero API token in the Authorization header and the target business UUID in x-business-id.

Parameters

Path

bill_id string required

Request body

transaction_id string required

UUID of the bank transaction representing the payment.

amount integer required

Payment amount in cents. Must be > 0.

paid_on string · date-time

Override payment date (ISO 8601). Defaults to the transaction datetime if omitted.

Responses

201 Successful Response

id string required

Payment record UUID.

bill_id string required

UUID of the bill being paid.

transaction_id string required

UUID of the bank transaction.

amount integer required

Payment amount in cents.

currency string

Currency for the payment (USD, CAD, AUD, EUR, or GBP).

paid_on string · date-time required

Payment date.

created_at string · date-time required

Record creation timestamp.

updated_at string · date-time required

Last update timestamp.

business_id string required

Business UUID.

400 Bad Request - Invalid input

401 Unauthorized - Authentication required

403 Forbidden - Insufficient permissions

404 Not Found - Resource does not exist

422 Validation Error

detail array · ValidationError ValidationError
5 fields
loc array · string | integer required
msg string required
type string required
input object
ctx object