Storefront API
The public, read-mostly, shop-scoped GraphQL API that themes and headless storefronts are built on.
POST https://{shop-domain}/api/2026-10/graphqlX-Kaladan-Storefront-Token: {your shop's public token}The token is public, and that governs everything
Section titled “The token is public, and that governs everything”It ships inside a theme’s JavaScript and inside a <script> tag on somebody
else’s website. Assume it is known to everyone, including competitors.
- It reads the catalogue, the content and the cart. It cannot read an order it was not handed a token for, cannot see a customer, and cannot read an unpublished product.
- It is domain-allowlisted: the merchant lists which origins may use it, and that is enforced on the CORS preflight.
- It is rotatable without redeploying a theme.
- Custom data is invisible by default. A metafield or metaobject is unreadable here until it is explicitly published to this API.
The shop is resolved twice — from the Host header and from the token — and a
mismatch is a 401. Host-only resolution would let a misconfigured domain serve
the wrong shop’s catalogue; token-only would let a leaked token query any shop it
is pointed at.
Where the boundaries are
Section titled “Where the boundaries are”| Not here | Because | Where instead |
|---|---|---|
| Signing in, order history, the address book, wishlists | The token is public. Anything behind it is published to the world. | Customer Account API |
| Creating a product, reading a merchant’s orders | Different caller, different credential, different blast radius | Admin API |
| Payment method selection, gateway redirect, verification | Gateway callbacks are lost routinely, and recovering from that has to happen in exactly one audited place | Hosted checkout |
| Templates, sections, theme settings | This API serves data, never shape | The theme’s own runtime |
The Storefront API touches a customer at exactly one point: a cart may carry a customer access token so that signing in mid-checkout attaches the cart to an account rather than replacing it. It never issues one and never echoes one back.
The cart is yours. The money is not.
Section titled “The cart is yours. The money is not.”Your theme owns lines, discounts, buyer identity, delivery address, delivery
option and the official-invoice request. Then cart.checkoutUrl — or
cartCheckoutStart — hands off to Kaladan-hosted checkout, which selects the
payment method, redirects to the PSP and handles the return.
One fact decides this. Gateway callbacks are lost routinely: the buyer is charged, the callback never arrives, and only an explicit verify call plus a reconciliation worker polling the gateway’s inquiry endpoint recovers the order. Exposing the payment step would mean every theme author reimplements that, and most would reimplement it wrongly, in the one place where wrong costs a merchant money and a buyer trust.
Hosted checkout renders on the shop’s own domain, so the buyer does not appear to leave the merchant.
Things that are easy to miss
Section titled “Things that are easy to miss”warningson a successful cart mutation. Read them or you show a buyer a cart they did not agree to.localization.locale.direction. Do not infer RTL from the language tag, or you ship your own list of RTL languages and one entry is wrong.Shop.capabilities. Hide a feature the plan does not have rather than render one that will fail.menu(handle:)returning null. A shop that never created afootermenu is not an error. A theme that hard-fails on it breaks on a valid shop.thumbhash. Thirty bytes that decode to a blurred stand-in. On a throttled connection it is the difference between a laid-out page and a column of grey rectangles.SEO.structuredData. Ready to serialize into a<script type="application/ld+json">without modification. Torob and Emalls crawl rather than integrate, so this is what your placement depends on.