Record a payment

POST/api/v1/credit/payments

Records a debit the partner executed and returns corrected balances. Allocation is not selectable: principal before accrued interest, earliest due date first. A payment can clear the full principal while interest remains outstanding — that cycle is not Paid, and the returned status is authoritative.

Operation ID: record_payment_api_v1_credit_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.

Request body

credit_line_idstring
external_line_idstring
external_payment_idstringrequired

Partner payment ID. The idempotency key.

amount_centsintegerrequired
paid_onstring · daterequired

Date the merchant pressed Pay, not the date funds landed.

methodstring

Responses

201Successful Response

successboolean
messagestring
codestring
dataapp__api__v1__schemas__credit_line__PaymentResponse

400Bad Request - Invalid input

401Unauthorized - Authentication required

403Forbidden - Insufficient permissions

404Not Found - Resource does not exist

422Validation Error

detailarray · ValidationErrorValidationError
5 fields
locarray · string | integerrequired
msgstringrequired
typestringrequired
inputobject
ctxobject