API Reference
Storefront and Embedded Storefront API
Verified hosted storefront endpoints, embedded storefront bootstrap/frame-token routes, runtime attributes, cart behavior, and checkout handoff.
Product credentials
Activation request
Entitlement check
Device registration
Periodic validation
Deactivation when needed
SoundSync
Verified storefront/embed endpoints
These routes are backed by storefrontRoutes.js and embedStorefrontRoutes.js.
/api/storefronts/:slug
Fetch hosted public storefront brand/configuration by slug.
- Auth
- Public storefront request.
- Scope
- Public, customer-token, developer-user, or scoped partner API surface as noted.
- Request fields
- store slug
- Returns
- Public storefront payload.
- Side effects
- None for GET endpoints unless noted.
/api/storefronts/:slug/products
List public products in a hosted storefront.
- Auth
- Public storefront request.
- Scope
- Public, customer-token, developer-user, or scoped partner API surface as noted.
- Request fields
- store slug
- optional filters/query
- Returns
- Public products/catalog payload.
- Side effects
- None for GET endpoints unless noted.
/api/storefronts/:slug/products/:productSlug
Fetch a public storefront product detail.
- Auth
- Public storefront request.
- Scope
- Public, customer-token, developer-user, or scoped partner API surface as noted.
- Request fields
- store slug
- product slug
- Returns
- Public product detail payload.
- Side effects
- None for GET endpoints unless noted.
/api/embed/storefront/:storeSlug/bootstrap
Fetch the embedded storefront bootstrap payload.
- Auth
- Public embed request from an allowed origin/domain.
- Scope
- Store slug, allowed parent origin, page, and product scope.
- Request fields
- store slug
- page/pageType optional
- product/productSlug optional
- allowed embed origin
- Returns
- Storefront, pages, products, bundles, active page, reviews/support when requested, and embed metadata.
- Side effects
- None for GET endpoints unless noted.
- Notes
- Unauthorized embed domains return EMBED_DOMAIN_NOT_ALLOWED.
/api/embed/storefront/:storeSlug/frame-token
Issue a short-lived frame token for iframe storefront package loading.
- Auth
- Allowed embed origin/domain.
- Scope
- Store slug, parent origin, instance id, frame route, storefront mode.
- Request fields
- parentOrigin required
- instanceId required
- Returns
- frameToken, expiresInSeconds 600, frameUrl, embed metadata.
- Side effects
- None for GET endpoints unless noted.
/api/embed/storefront/:storeSlug/frame-config
Validate a frame token and return iframe protocol metadata.
- Auth
- Frame token issued by /frame-token.
- Scope
- Store slug, parent origin, instance, frame route.
- Request fields
- frameToken/frame_token query
- parentOrigin/headers
- Returns
- ok, storeSlug, parentOrigin, instanceId, mode, protocol soundsync-storefront-embed, version 1.
- Side effects
- None for GET endpoints unless noted.
/api/embed/storefront/:storeSlug/checkout
Compatibility response for embed checkout attempts.
- Auth
- Allowed embed origin/domain.
- Scope
- Public, customer-token, developer-user, or scoped partner API surface as noted.
- Request fields
- cart/body context
- Returns
- 409 USE_PRODUCT_CHECKOUT_ENDPOINT with checkoutEndpoint /api/checkout/product.
- Side effects
- None; checkout is intentionally delegated to /api/checkout/product.
SoundSync
Runtime attributes
The canonical snippet uses only attributes verified in public/embed/storefront.js.
| Attribute | Behavior |
|---|---|
| data-store | Required store slug used by the runtime to select the storefront. |
| data-start-page | Optional initial page; catalog is the default. |
| data-shell | content or full. Full shell can hide host chrome in viewport takeover mode. |
| data-store-nav | auto or explicit embedded navigation mode. |
| data-width | full or contained. The runtime mirrors this to data-soundsync-width. |
| data-base-path | Optional client-side route base path, defaulting to /store/. |
| data-template | Legacy override only. The runtime warns and ignores it because templates come from Website Builder. |
SoundSync
Canonical embed snippet
This snippet contains no credentials. Product and checkout data is fetched through public storefront/embed endpoints.
<script async src="https://www.soundsyncsolutions.biz/storefront.js" data-api-base="https://api.soundsync.example"></script>
<div
data-soundsync-storefront
data-store="demo-audio-labs"
data-start-page="catalog"
data-shell="content"
data-store-nav="auto"
data-width="full"
data-base-path="/store/">
</div>
Checkout handoff
Embedded cart endpoints accept client display state, but checkout recalculates server-side through /api/checkout/product. /api/embed/storefront/:storeSlug/checkout intentionally returns USE_PRODUCT_CHECKOUT_ENDPOINT.
API reference
Endpoint groups are organized by authentication model, product scope, request shape, response shape, errors, idempotency, and integration surface.
Storefront and Embed API
/docs/api/storefront-embed
Hosted storefront and embedded storefront bootstrap/frame-token/cart handoff.
