Create a payment

Creates a Payment object. When you want to pay a Payment before, you must create a Source and attach it to the Payment through the authorize resource. If the Source gateway belongs to a payment gateway with single_use usage attribute, it should be paid through the pay resource, while if it belongs to a payment gateway with reusable usage attribute, it will immediately try to charge the credit or debit card of the Customer.

Body Params
float
required

A positive number representing the amount to charge.

date
required

A date that represents the date on which payment is expected to be received.

string
required

A description for payment with a max length of 256 characters.

string
required

Three-letter ISO code for the currency of the payment.

string

ID of the Customer this payment belongs to, of one exists.

string

ID of the Invoice this payment belongs to, of one exists.

Response

Language
Credentials
Choose an example:
application/json