Invoices
Pay an invoice
Collects payment for an open invoice using the account’s default payment method (or the payment_method
you supply). On success, the invoice’s status
becomes paid
and amount_due
is set to zero.
POST
Path Parameters
ID of the open invoice to pay.
Body
application/json
Response
200
application/json
Returns the Invoice object with status updated to paid, amount_paid populated, and paid_at set to the payment timestamp. Raises an error if the invoice is already paid, void, or no default payment method is available.