201Successful Response
Schema: SuccessEnvelope_InvoicePaymentResponse_
successbooleanmessagestringcodestringdataapp__api__v1__schemas__invoices__invoice__InvoicePaymentResponse
/api/v1/invoices/{invoice_id}/paymentsLink a bank transaction as payment against an invoice. Supports split payments (one transaction paying multiple invoices) and partial payments (multiple transactions paying one invoice).
Bearer token authentication. Pass your DayZero API token in the Authorization header and the target business UUID in x-business-id.
invoice_idstring · uuidrequiredSchema: InvoicePaymentRequest
transaction_idstringrequiredUUID of the bank transaction representing the payment.
amountintegerrequiredPayment amount in cents allocated to this invoice. Must be > 0 and <= the remaining unallocated amount on the transaction. Overpayments (exceeding the invoice balance) are permitted.
paid_onstring · date-timeOverride payment date (ISO 8601). Defaults to the transaction datetime if omitted.
Schema: SuccessEnvelope_InvoicePaymentResponse_
successbooleanmessagestringcodestringdataapp__api__v1__schemas__invoices__invoice__InvoicePaymentResponseSchema: HTTPValidationError
detailarray · ValidationErrorValidationErrorlocarray · string | integerrequiredmsgstringrequiredtypestringrequiredinputobjectctxobject