Pay invoice

Allow your customer to pay for outstanding invoices on-session.

Log in to see full request history

Description

Use this protected endpoint to allow an authenticated customer to pay an outstanding invoice using an existing or new payment method. This will automatically charge the customer for the full amount remaining to be paid on the invoice.

Related webhook events

Related features


Path Params
int32
required

The unique identifier of the open invoice.

Query Params
int32
required

The unique identifier of the site associated with your account.

Body Params
int32

The unique identifier of an existing chargeable payment method already attached to the customer, which will be used to attempt payment for this invoice. Required when payment_gateway and gateway_token are not provided.

string

The optional payment gateway, one of stripe, braintree, vantiv, tap or cybersource. Required with gateway_token if source_id is not set.

string

The single-use token that represents the payment method details. Typically generated using the payment gateway's tools and libraries. This payment method will be used to attempt paying for this invoice. Required with payment_gateway if source_id is not set.

Headers
string
required
Defaults to Bearer eyJ***
string
Defaults to application/json
Response

Language
Credentials
Click Try It! to start a request and see the response here!