Skip to main content

Update Payment

PUT 

/api/purchase-invoices/:purchaseInvoiceId/payments/:payment

Update a payment on a purchase invoice. All fields are optional on update.

Required scope: purchase-orders:write

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

Authentication: Requires Bearer token.

Note: payment_type_id cannot be changed for credit payment types (system-created).

Approval policy: While the bill-payment approval policy is enabled, raising a payment's amount draws the increase from the bill's approved remainder — 422 approval_required / approval_pending when it does not fit.

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