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 aclientSecret that authorizes frontend operations.
sk_) required via Authorization: Bearer sk_...
Request Body
Field Locks
Fields provided in the session are automatically locked. UsefieldLocks to override:
Request Example
Response (201 Created)
Get Session
Retrieve session details and current status.pk_) or secret key (sk_) via Authorization: Bearer ...
Response
Same structure as creation response, but withoutclientSecret.
Confirm Session
Optionally confirm a session and update the wallet address or network before creating an order.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.pk_) via Authorization: Bearer pk_...
Request Body
Request Example
Response (201 Created)
checkout.url to complete payment.
Cancel Session
Cancel a pending session. Only available from the backend.sk_) via Authorization: Bearer sk_...
List Sessions
List sessions for the current project with filtering and pagination.sk_) via Authorization: Bearer sk_...