Skip to main content
POST
Create a cart session token

Authorizations

Authorization
string
header
required

Server-side scoped Ignyt API key.

Headers

authorization
string | null
x-ignite-app-id
string | null

Path Parameters

cart_id
string
required

Body

application/json
allowed_origin
string | null

Browser origin allowed to use the token, for example https://shop.example.com.

Example:

"https://shop.example.com"

ttl_seconds
integer
default:3600

Token lifetime in seconds.

Required range: 60 <= x <= 86400

Response

Successful Response

A browser token for one cart. The token is returned only once.

allowed_origin
string | null
required

Browser origin allowed to use the token, if restricted.

cart_id
string
required

The only cart the token can use.

expires_at
string<date-time>
required

Time the token stops working.

note
string
required

Human-readable guidance.

scope
string
required

Human-readable summary of what the token can do.

token
string
required

Bearer token for the browser. Store it only for this checkout.