Create payment
Initiate a new payment (limited to one-time): generate an invoice and charge it directly or with a checkout session
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Body
Payment type.
one_time
: One-time payment, generating one-off invoice.
one_time
"one_time"
ID of the customer.
"cus_Typ0px2W0aiEtl"
Charging method.
immediately
: Customer's payment method will be charged directly to pay the invoice.checkout
: Dedicated checkout page will be created for the customer to pay the invoice.
immediately
Deprecated, please use products
.
Products composing the related invoice.
Purchase order added on the generated invoice.
Custom note added on the generated invoice.
Type of payment method to use to pay the invoice. If not specified, the payment_method_id or the default customer payment method is used.
transfer
, external
ID of the payment method to use to pay the invoice. Ignored if payment_method_type is specified.
"pm_1ryTrMj4TTAT1N"
Payment type.
one_time
: One-time payment, generating one-off invoice.
one_time
"one_time"
ID of the customer.
"cus_Typ0px2W0aiEtl"
Charging method.
immediately
: Customer's payment method will be charged directly to pay the invoice.checkout
: Dedicated checkout page will be created for the customer to pay the invoice.
immediately
Deprecated, please use products
.
Products composing the related invoice.
Purchase order added on the generated invoice.
Custom note added on the generated invoice.
Type of payment method to use to pay the invoice. If not specified, the payment_method_id or the default customer payment method is used.
transfer
, external
ID of the payment method to use to pay the invoice. Ignored if payment_method_type is specified.
"pm_1ryTrMj4TTAT1N"
Payment type.
one_time
: One-time payment, generating one-off invoice.
one_time
"one_time"
ID of the customer.
"cus_Typ0px2W0aiEtl"
Charging method.
immediately
: Customer's payment method will be charged directly to pay the invoice.checkout
: Dedicated checkout page will be created for the customer to pay the invoice.
checkout
card
, direct_debit
, direct_debit_ach
, direct_debit_bacs
, transfer
, transfer_automated
Deprecated, please use products
.
Products composing the related invoice.
Purchase order added on the generated invoice.
Custom note added on the generated invoice.
Only applies to checkout
charging method.
Was this page helpful?