Configuration

Get cart configuration and mint a session token

Validates the publishable token + origin, then returns the cart configuration including token — the session Bearer token used by all checkout mutations.

get/cart-configuration

Request

Headers

Parentstring

Origin/parent domain; must match the cart's allowlist. Derived from window.location in browsers.

Response

Cart configuration

idstring required
tokenstring required

Session Bearer token for checkout mutations.

currencystring
localestring

Example response

{
  "currency": "USD",
  "locale": "en-US"
}

Changes

No recorded changes to this operation across all 1 revision of this API.