Record payment for purchase order

POST /api/v1/purchase-orders/{id}/payments

Link a bank transaction to a purchase order as a payment.

Operation ID: record_order_payment_api_v1_purchase_orders__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

id string · uuid 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 UUID.

inventory_order_id string required

Parent order UUID.

amount integer required

Payment amount in cents.

paid_on string · date-time

Payment date.

transaction_id string

Linked bank transaction UUID.

method string

Payment method.

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