Skip to main content

Sessions API

The Sessions API provides a Stripe-like checkout model: create a session server-side with a secret key, then redirect users to complete payment using a public key and client secret. See the Session-Based Checkout guide for integration walkthroughs and examples.

Base URL


Create Session

Creates a new checkout session. Returns a clientSecret that authorizes frontend operations.
Authentication: Secret key (sk_) required via Authorization: Bearer sk_...

Request Body

Field Locks

Fields provided in the session are automatically locked. Use fieldLocks to override:

Request Example

Response (201 Created)

The clientSecret is only returned on creation. Store it immediately — it cannot be retrieved later.

Get Session

Retrieve session details and current status.
Authentication: Public key (pk_) or secret key (sk_) via Authorization: Bearer ...

Response

Same structure as creation response, but without clientSecret.

Confirm Session

Optionally confirm a session and update the wallet address or network before creating an order.
Authentication: Public key (pk_) via Authorization: Bearer pk_...

Request Body

Confirm is optional. You can go directly from session creation to order creation.

Create Order from Session

Creates an order from the session, returning a checkout URL for the chosen payment gateway.
Authentication: Public key (pk_) via Authorization: Bearer pk_...

Request Body

Request Example

Response (201 Created)

Redirect the user to checkout.url to complete payment.

Cancel Session

Cancel a pending session. Only available from the backend.
Authentication: Secret key (sk_) via Authorization: Bearer sk_...

List Sessions

List sessions for the current project with filtering and pagination.
Authentication: Secret key (sk_) via Authorization: Bearer sk_...

Query Parameters


Error Codes