Checkout

Checkout process endpoints

List all checkout sessions

get
/api/v1/checkout
Authorizations
Responses
chevron-right
200

The checkout sessions

application/json
get
/api/v1/checkout
200

The checkout sessions

Create a new checkout session

post
/api/v1/checkout
Authorizations
Body
amountnumberRequired

The amount to charge the customer

Example: 100
currencystring · enumRequired

The currency to charge the customer

Example: USDPossible values:
successUrlstringRequired

The URL to redirect the customer to after the payment is successful

Example: https://example.com/success
cancelUrlstringRequired

The URL to redirect the customer to after the payment is cancelled

Example: https://example.com/cancel
emailstringRequired

The email of the customer

Example: [email protected]
namestringRequired

The name of the customer

Example: John Doe
metadataobjectRequired

Additional metadata about the checkout session. This will be returned in the webhooks for the merchant

Example: {"orderId":"1234567890","customerId":"1234567890"}
productIdstringRequired

The ID of the product to charge the customer for

Example: 1234567890
productNamestringRequired

The name of the product to charge the customer for

Example: Product Name
productDescriptionstringRequired

The description of the product to charge the customer for

Example: Product Description
allowedAssetsstring · enumRequired

The allowed assets for the checkout session. If empty, all assets will be allowed.

Example: ["ETH","USDT","USDC"]Possible values:
Responses
chevron-right
200

The checkout session

application/json
post
/api/v1/checkout
200

The checkout session

Get a checkout session by ID

get
/api/v1/checkout/sessions/{id}
Authorizations
Path parameters
idstringRequired

Checkout session ID

Responses
chevron-right
200

The checkout session

application/json
get
/api/v1/checkout/sessions/{id}
200

The checkout session

Expire a checkout session

post
/api/v1/checkout/{id}/expire
Authorizations
Path parameters
idstringRequired

Checkout session ID

Responses
post
/api/v1/checkout/{id}/expire
201

201 response

No content

Cancel a checkout session

post
/api/v1/checkout/{id}/cancel
Authorizations
Path parameters
idstringRequired

Checkout session ID

Responses
post
/api/v1/checkout/{id}/cancel
201

201 response

No content

Last updated