POST
/
v1
/
payments

Authorizations

Authorization
string
headerrequired

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
type
enum<string>
required

Payment type.

  • one_time: One-time payment, generating one-off invoice.
Available options:
one_time
customer_id
string
required

ID of the customer.

items
object[]
deprecated

Deprecated, please use products.

products
object[]

Products composing the related invoice.

purchase_order
string

Purchase order added on the generated invoice.

custom_note
string

Custom note added on the generated invoice.

charging_method
enum<string>
required

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.
Available options:
immediately

Response

200 - application/json
invoice_id
string
required

Created invoice ID.

checkout
object

Payment checkout session.