Skip to main content

Create Payment

POST 

/api/purchase-invoices/:purchaseInvoiceId/payments

Record a payment against a purchase invoice.

Required scope: purchase-orders:write

Grant this scope to your token under Settings → Developer → Personal Access Tokens.

Authentication: Requires Bearer token.

Required: payment_type_id, amount. Payment date defaults to today if omitted. Amount must not exceed the remaining balance. Negative amounts are allowed for refunds (cannot exceed total paid).

Returns 422 when the invoice is a committed-spend (provisional) bill — payments are recorded against real supplier invoices only.

Approval policy: While the bill-payment approval policy is enabled a payment must fit what remains of the bill's approved amount: an unapproved bill, a bill whose request is still pending, or a payment larger than the approved remainder returns 422 with code approval_required (or approval_pending while the request awaits approval). Refunds (negative amounts) are not gated.

Under a bill-payment approval policy the payment's currency_id must match the bill's currency; otherwise the request is refused with 422 approval_currency_mismatch.

Request​

Responses​

OK