Skip to main content

Attempt a charge for an invoice

POST 

/customers/:customerId/retry-charge

Asynchronous: 201 {} means one charge attempt is queued, not that money has moved. Follow it on GET /customers/{customerId}/payments: the payment it creates lists the invoice in its invoiceIds metadata and moves from CREATED to SUCCESSFUL or FAILED; an attempt that finds nothing to charge creates none (Retrying a charge). Refused with 409 INVALID_CHARGE_ATTEMPT when the customer pays OFFLINE, when the paymentMethodId sent is not ACTIVE, when no paymentMethodId is sent and a DIRECT_DEBIT customer has no ACTIVE method, or when the invoice already has a successful or in-progress payment; refused with 423 LOCK_ACTIVE while another billing operation runs on the customer.

Request​

Responses​