Pay an invoice

Charges an open invoice against a payment method, in the live or test mode of the API key used. Pass payment_method to charge a specific method, or omit it to use the invoice's default_payment_method. The method must belong to the invoice's customer and be active. Use this to retry collection after a failed attempt, optionally with a different method. The charge is asynchronous: the invoice stays open with a pending payment until the charge resolves.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
string
required

The id of the invoice to pay.

Body Params
string

Payment method to charge. Must belong to the invoice's customer and be active. Defaults to the invoice's default_payment_method.

Responses

Language
Credentials
Header
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json