Skip to main content

Pay invoice

PUT 

/api/invoices/:invoiceId/payment

Pay an invoice by ID. Returns 200 with status: "success" for a settled CC payment, status: "pending" when an ACH submission is awaiting settlement (3–5 business days), or 400 with a machine-readable reasonCode otherwise. reasonCode is a number for a processor decline (e.g. 1616 INSUFFICIENT_FUNDS, with reasonText) or a string for a pre-charge guard rejection — "OVER_PAYMENT" (amount exceeds the remaining balance) or "ALREADY_PROCESSING" (nothing left to pay / an in-flight ACH already covers it). Branch on typeof reasonCode rather than string-matching the message. Authenticate with x-session-token header.

Request​

Responses​

200