Skip to main content
POST
Create Checkout Session
The session_id returned by this endpoint must be used for all subsequent checkout operations.
Sessions expire after 1 hour of inactivity if not completed. The country_code must be in ISO 3166-1 alpha-2 format (e.g. IN, US).
Each entry in items is the full Shopify cart line-item object. Pass it through as-is from the storefront cart — product_id, variant_id, and quantity are the required fields; the rest enrich analytics and display.

Authorizations

Authorization
string
header
required

API key sent as a bearer token (Bearer <token>). Generate keys in the dashboard under Settings → API Keys.

Body

application/json
data
object
required

Response

Session created successfully.

status
string
Example:

"SUCCESS"

data
object