Operation reference#
These starter operations are authored in docsserver and consumed by both this page and the Developer Portal GraphQL Playground. The playground should not carry duplicate hard-coded examples.
Runtime context
Verify the selected store, normal storefront, request, session, consent, localization, market, and currency. B2B storefront domains are hosted-only and reject Storefront GraphQL.
Headers
| Name | Required | Description |
|---|---|---|
X-Storefront-Access-Token |
required | Storefront access token for the selected storefront/API version. |
X-Tringify-Session-Token |
optional | Visitor session token returned by visitorSessionCreate. |
X-Customer-Access-Token |
optional | Customer access token returned by customerLogin. |
Create visitor session
Create the visitor session token used by headless clients for consent, cart, and session-scoped state. Rejected with SESSION_ALREADY_ACTIVE when a valid X-Tringify-Session-Token is already presented — use visitorSessionRenew to extend an existing session.
Headers
| Name | Required | Description |
|---|---|---|
X-Storefront-Access-Token |
required | Storefront access token for the selected storefront/API version. |
Customer login
Authenticate with the code from customerAuthCodeSend (purpose LOGIN). Put the returned token in X-Customer-Access-Token. The same flow works for EMAIL and PHONE providers — the code is the only credential.
Headers
| Name | Required | Description |
|---|---|---|
X-Storefront-Access-Token |
required | Storefront access token for the selected storefront/API version. |
X-Tringify-Session-Token |
optional | Visitor session token whose consent/cart state should be linked during login. |
Customer context
Read the authenticated customer visible to this GraphQL request.
Headers
| Name | Required | Description |
|---|---|---|
X-Storefront-Access-Token |
required | Storefront access token for the selected storefront/API version. |
X-Customer-Access-Token |
required | Customer access token returned by customerLogin. |
Set language
Persist a storefront-served language choice on the visitor session. Query runtimeContext afterward to verify localization.resolvedBy becomes choice.
Headers
| Name | Required | Description |
|---|---|---|
X-Storefront-Access-Token |
required | Storefront access token for the selected storefront/API version. |
X-Tringify-Session-Token |
required | Visitor session token returned by visitorSessionCreate. |
Give consent
Persist consent categories on the visitor session used by both headless GraphQL and hosted CTX.
Headers
| Name | Required | Description |
|---|---|---|
X-Storefront-Access-Token |
required | Storefront access token for the selected storefront/API version. |
X-Tringify-Session-Token |
required | Visitor session token returned by visitorSessionCreate. |
Withdraw consent
Withdraw consent on the current visitor session and verify runtimeContext.consent afterward.
Headers
| Name | Required | Description |
|---|---|---|
X-Storefront-Access-Token |
required | Storefront access token for the selected storefront/API version. |
X-Tringify-Session-Token |
required | Visitor session token returned by visitorSessionCreate. |
Product price runtime currency
On a normal storefront, compare runtimeContext.currency with product price currency to verify product pricing reads the resolved runtime currency.
Headers
| Name | Required | Description |
|---|---|---|
X-Storefront-Access-Token |
required | Storefront access token for a normal storefront/API version. |
X-Tringify-Session-Token |
optional | Visitor session token if testing a stamped locale/market/currency choice. |
Cart context
Read the current cart for the supplied visitor/customer context on a normal storefront. The cart also carries evaluated discounts: discounts (eligible automatics + applied-code outcomes), advertisedCoupons (merchant show_in_cart opt-ins only), discountNudges (near-miss automatics), and discountTotal.
Headers
| Name | Required | Description |
|---|---|---|
X-Storefront-Access-Token |
required | Storefront access token for a normal storefront/API version. |
X-Tringify-Session-Token |
optional | Visitor session token for a guest cart. |
X-Customer-Access-Token |
optional | Customer access token for a customer cart. |
Add to cart
Add a line to the cart. properties sets declared cart line properties (keys are "namespace.key" from the store's cart line definitions); unknown keys and invalid values return userErrors. Properties are part of line identity — the same product with different properties is a separate line with its own lineId.
Headers
| Name | Required | Description |
|---|---|---|
X-Storefront-Access-Token |
required | Storefront access token for the storefront/API version. |
X-Tringify-Session-Token |
optional | Visitor session token for a guest cart. |
X-Customer-Access-Token |
optional | Customer access token for a customer cart. |
Update cart item
Set a line's quantity (0 removes it). Target a specific line with lineId — required for lines with properties; bare productId/variantId targeting matches only the property-less line.
Headers
| Name | Required | Description |
|---|---|---|
X-Storefront-Access-Token |
required | Storefront access token for the storefront/API version. |
X-Tringify-Session-Token |
optional | Visitor session token for a guest cart. |
X-Customer-Access-Token |
optional | Customer access token for a customer cart. |
Remove from cart
Remove a line. lineId targets a specific line — required for lines with properties; bare productId/variantId matches only the property-less line.
Headers
| Name | Required | Description |
|---|---|---|
X-Storefront-Access-Token |
required | Storefront access token for the storefront/API version. |
X-Tringify-Session-Token |
optional | Visitor session token for a guest cart. |
X-Customer-Access-Token |
optional | Customer access token for a customer cart. |
Clear cart
Empty the cart. Returns ClearCartPayload { cart, userErrors }.
Headers
| Name | Required | Description |
|---|---|---|
X-Storefront-Access-Token |
required | Storefront access token for the storefront/API version. |
X-Tringify-Session-Token |
optional | Visitor session token for a guest cart. |
X-Customer-Access-Token |
optional | Customer access token for a customer cart. |
Cart userErrors reference
Recoverable cart-mutation failures are returned in the payload userErrors array (code, field, message), never as top-level GraphQL errors. Codes: CART_PRODUCT_UNAVAILABLE (product missing/inactive/not in this channel), CART_VARIANT_REQUIRED (variable product needs a variantId), CART_VARIANT_INVALID (variantId not found / wrong product), CART_VARIANT_NOT_ALLOWED (simple product given a variantId), CART_QUANTITY_INVALID (addToCart quantity must be > 0; updateCartItem quantity must be >= 0). Messages are localized to the resolved visitor locale. System / auth / transport / invalid-GraphQL failures remain top-level errors. Stock / inventory / order-limit validation is not yet applied at add-to-cart.
Headers
| Name | Required | Description |
|---|---|---|
X-Storefront-Access-Token |
required | Storefront access token for the storefront/API version. |
Product reviews
Approved reviews for a product, newest first, with the rating aggregate. Reviewer names arrive ALREADY shaped by the store's reviewer_display setting; images are the EXIF-stripped review-media CDN JPEGs. Returns only approved reviews — moderation states never cross this API.
Headers
| Name | Required | Description |
|---|---|---|
X-Storefront-Access-Token |
required | Storefront access token for the storefront/API version. |
Review statistics
The star aggregate for a product — average, total, and per-star distribution. Use it for grid badges and the review-summary block without fetching review items.
Headers
| Name | Required | Description |
|---|---|---|
X-Storefront-Access-Token |
required | Storefront access token for the storefront/API version. |
Submit a review
Submit a product review — productId is required (reviews are product reviews, period). EVERY store review setting is enforced server-side: moderation mode, anonymous policy, rune-counted content lengths, require_purchase (verified_purchase derives from real order history and can never be set by the client), and the merchant's content filters (blocked words, URL/email blocking) which auto-reject at submit. The returned status reflects the store's moderation flow (pending vs approved vs rejected). reviewMediaIds attach photos uploaded through the review-media flow. Validation failures return registered codes in userErrors with params filled.
Headers
| Name | Required | Description |
|---|---|---|
X-Storefront-Access-Token |
required | Storefront access token for the storefront/API version. |
X-Tringify-Session-Token |
optional | Visitor session token — the guest identity reviews and photo claims bind to. |
X-Customer-Access-Token |
optional | Customer access token — required by stores with require_purchase enabled. |
Vote review helpful
Vote a review helpful/unhelpful. One vote per visitor (session or customer); voting again switches the vote. removeReviewVote clears it.
Headers
| Name | Required | Description |
|---|---|---|
X-Storefront-Access-Token |
required | Storefront access token for the storefront/API version. |
X-Tringify-Session-Token |
optional | Visitor session token (guest votes). |
X-Customer-Access-Token |
optional | Customer access token. |
Get wishlist
The current visitor's wishlist (guest session or customer). enabled reflects the store's wishlist settings; guest wishlists honor the store's guest policy.
Headers
| Name | Required | Description |
|---|---|---|
X-Storefront-Access-Token |
required | Storefront access token for the storefront/API version. |
X-Tringify-Session-Token |
optional | Visitor session token (guest wishlist). |
X-Customer-Access-Token |
optional | Customer access token. |
Add to wishlist
Add a product (or specific variant) to the wishlist. toggleWishlist flips membership; removeFromWishlist removes.
Headers
| Name | Required | Description |
|---|---|---|
X-Storefront-Access-Token |
required | Storefront access token for the storefront/API version. |
X-Tringify-Session-Token |
optional | Visitor session token (guest wishlist). |
X-Customer-Access-Token |
optional | Customer access token. |
Register a customer
Create a customer by proving the email/phone with the code from customerAuthCodeSend (purpose REGISTER). No password exists or ever will. Gated by the store's self-registration setting. Guest state (cart, wishlist, review photos) and any guest ORDERS on this email attach to the new account automatically.
Headers
| Name | Required | Description |
|---|---|---|
X-Storefront-Access-Token |
required | Storefront access token for the storefront/API version. |
Send a sign-in code
Step one of every customer auth flow: request a one-time code for an email or phone. The server derives whether this is a LOGIN (account exists) or REGISTER (new) and returns it as mode — your UI learns post-send which completion form to render; it is never asked to pre-know. Phone requires an active SMS/WhatsApp provider. There are no passwords anywhere on this API — the code IS the credential.
Headers
| Name | Required | Description |
|---|---|---|
X-Storefront-Access-Token |
required | Storefront access token for the storefront/API version. |
Get a blog post
Fetch one published post by slug. Content is the rendered HTML body.
Headers
| Name | Required | Description |
|---|---|---|
X-Storefront-Access-Token |
required | Storefront access token for the storefront/API version. |
List blog posts
Published posts, newest first; filter by category or tag slug, paginate with the cursor.
Headers
| Name | Required | Description |
|---|---|---|
X-Storefront-Access-Token |
required | Storefront access token for the storefront/API version. |
List blog categories
The category tree for navigation.
Headers
| Name | Required | Description |
|---|---|---|
X-Storefront-Access-Token |
required | Storefront access token for the storefront/API version. |
List comments on a post
Approved comments with one level of replies. Pending comments never appear here — and when the store's comments mode is DISABLED this returns an empty connection and commentCount reads zero everywhere (existing comments are hidden, not deleted; re-enabling restores them).
Headers
| Name | Required | Description |
|---|---|---|
X-Storefront-Access-Token |
required | Storefront access token for the storefront/API version. |
Blog comment settings
Who may comment (disabled / all / registered) and whether new comments await moderation — read this before rendering a comment form. disabled turns the whole surface off: submissions are refused AND existing comments stop being served (hidden, not deleted).
Headers
| Name | Required | Description |
|---|---|---|
X-Storefront-Access-Token |
required | Storefront access token for the storefront/API version. |
Add a blog comment
Submit a comment. Guests supply authorName + authorEmail; logged-in customers (X-Customer-Access-Token) comment under their account identity and those fields are ignored. Gated by the comments mode; moderation may hold it before it renders.
Headers
| Name | Required | Description |
|---|---|---|
X-Storefront-Access-Token |
required | Storefront access token for the storefront/API version. |
Get a page
Fetch one published page by slug.
Headers
| Name | Required | Description |
|---|---|---|
X-Storefront-Access-Token |
required | Storefront access token for the storefront/API version. |
Get a policy
Fetch one published policy by slug (refund, privacy, terms...).
Headers
| Name | Required | Description |
|---|---|---|
X-Storefront-Access-Token |
required | Storefront access token for the storefront/API version. |
Product by slug
Fetch a single product detail page by slug (direct-DB; base or locale-translated slug). Returns core fields, media, variants, options, price/priceRange, basic categories, and 'can buy 1 now' availability/purchaseState/notifyMeEligible. A non-visible/unresolvable slug returns null.
Headers
| Name | Required | Description |
|---|---|---|
X-Storefront-Access-Token |
required | Storefront access token for a normal storefront/API version. |
X-Tringify-Session-Token |
optional | Visitor session token if testing a stamped locale/market/currency choice. |
Product by id
Fetch a single product detail page by internal id (direct-DB). Same shape as product(slug). A non-visible/unresolvable id returns null.
Headers
| Name | Required | Description |
|---|---|---|
X-Storefront-Access-Token |
required | Storefront access token for a normal storefront/API version. |
X-Tringify-Session-Token |
optional | Visitor session token if testing a stamped locale/market/currency choice. |
Product variant by selected options
Resolve a single variant of a product from a complete set of selected options (direct-DB; no productservice NATS). Each selected option is attributeSlug + optionSlug, where optionSlug is the stable attribute option value. Returns the variant only when the selection is COMPLETE and resolves to exactly one variant; an incomplete, unknown, or non-matching selection (or a simple product) returns null. A genuine backend failure returns a GraphQL error.
Headers
| Name | Required | Description |
|---|---|---|
X-Storefront-Access-Token |
required | Storefront access token for a normal storefront/API version. |
X-Tringify-Session-Token |
optional | Visitor session token if testing a stamped locale/market/currency choice. |
variantBySelectedOptions (on Product)
The Product child field used by a PDP after fetching the product: given the product's options, resolve the selected variant client-side via selectedOptions. attributeSlug + optionSlug (the stable option value). Same direct-DB resolution and null semantics as productVariant. Shown here composed with product(slug) so a single round-trip fetches the product and resolves the chosen variant.
Headers
| Name | Required | Description |
|---|---|---|
X-Storefront-Access-Token |
required | Storefront access token for a normal storefront/API version. |
X-Tringify-Session-Token |
optional | Visitor session token if testing a stamped locale/market/currency choice. |
Apply discount code
Store a discount code on the cart. Unknown codes fail with CART_COUPON_CODE_INVALID; an applied code that is not currently eligible STAYS on the cart and reports its reason through cart.discounts (eligible: false). All discount math comes from the platform evaluator — the same engine orders use.
Headers
| Name | Required | Description |
|---|---|---|
X-Storefront-Access-Token |
required | Storefront access token for the storefront/API version. |
X-Tringify-Session-Token |
optional | Visitor session token for a guest cart. |
X-Customer-Access-Token |
optional | Customer access token for a customer cart. |
Remove discount code
Remove an applied discount code from the cart (no-op when absent).
Headers
| Name | Required | Description |
|---|---|---|
X-Storefront-Access-Token |
required | Storefront access token for the storefront/API version. |
X-Tringify-Session-Token |
optional | Visitor session token for a guest cart. |
X-Customer-Access-Token |
optional | Customer access token for a customer cart. |
Search
Unified storefront search over the search index. Results group per the store's enabled search_result_types; the query expands through the store's synonym groups at query time and runs against the resolved locale's documents. Product hits ride the listing pipeline — channel/visibility gated, priced in the visitor's currency — and the filters argument narrows them (search finds, filters narrow). Disabled search refuses. Content hits carry permalink-correct urls.
Headers
| Name | Required | Description |
|---|---|---|
X-Storefront-Access-Token |
required | Storefront access token for the storefront/API version. |
Product facets
Live disjunctive facet counts for the store's enabled filters — each key is counted against the base narrowed by every OTHER selection, so a selected value's siblings stay countable. Labels resolve from the source (vendors, attribute options, metafield choices) in the request locale. Pair with products(filters: {facets: [...]}) — same base semantics; attribute filters enforce the same-variant rule.
Headers
| Name | Required | Description |
|---|---|---|
X-Storefront-Access-Token |
required | Storefront access token for the storefront/API version. |
Products (listing)
Paginated product cards (direct-DB; no productservice NATS). Card fields only — id/slug/title/vendor/featuredImage/price/priceRange/availableForSale. Cursor pagination (first/after). Sorts: TITLE, PRICE_ASC, PRICE_DESC, CREATED_AT, UPDATED_AT (RELEVANCE/BEST_SELLING return an error). Filters: vendors, tags, priceMin/Max, onSale, inStock, productType (SIMPLE/VARIABLE). searchQuery and attribute filters return an explicit unsupported-filter error.
Headers
| Name | Required | Description |
|---|---|---|
X-Storefront-Access-Token |
required | Storefront access token. |
X-Tringify-Session-Token |
optional | Visitor session token for a stamped locale/market/currency. |
Collection with products
A collection's metadata + its product listing (direct-DB; no productservice NATS). collection(slug) resolves metadata; the products field paginates the collection's members (first/after/sortKey).
Headers
| Name | Required | Description |
|---|---|---|
X-Storefront-Access-Token |
required | Storefront access token. |
X-Tringify-Session-Token |
optional | Visitor session token. |
Collections
Active collections, paginated (direct-DB; no productservice NATS).
Headers
| Name | Required | Description |
|---|---|---|
X-Storefront-Access-Token |
required | Storefront access token. |
Category with products + tree
A category's metadata, tree fields (parent/children/breadcrumbs), product count, and its product listing — all direct-DB (no productservice NATS).
Headers
| Name | Required | Description |
|---|---|---|
X-Storefront-Access-Token |
required | Storefront access token. |
X-Tringify-Session-Token |
optional | Visitor session token. |
Category tree
Top-level categories; nested children resolve lazily via Category.children (direct-DB; no productservice NATS).
Headers
| Name | Required | Description |
|---|---|---|
X-Storefront-Access-Token |
required | Storefront access token. |
Page by slug
Fetch a published storefront page by slug (direct-DB; no contentservice NATS). Returns id/title/slug/content (HTML) + SEO. A draft or unknown slug returns null. Requires the read:content scope.
Headers
| Name | Required | Description |
|---|---|---|
X-Storefront-Access-Token |
required | Storefront access token with the read:content scope. |
X-Tringify-Session-Token |
optional | Visitor session token for a stamped locale (pages are locale-aware). |
Policy by slug
Fetch a published storefront policy by slug (direct-DB; no contentservice NATS). Returns id/type/title/slug/content (HTML) + SEO. type is the policy kind (privacy/terms/refund/shipping/cookie). A draft or unknown slug returns null. Requires the read:content scope.
Headers
| Name | Required | Description |
|---|---|---|
X-Storefront-Access-Token |
required | Storefront access token with the read:content scope. |
Blog post by slug
Fetch a published blog post by slug (direct-DB; no contentservice NATS). Public gate: status=published AND visibility=public — a draft/private/unknown slug returns null. Returns content (HTML), excerpt, featured image, author, SEO, publishedAt, commentCount, categories, tags. Requires read:content.
Headers
| Name | Required | Description |
|---|---|---|
X-Storefront-Access-Token |
required | Storefront access token with read:content. |
X-Tringify-Session-Token |
optional | Visitor session token for a stamped locale (posts are locale-aware). |
Blog category by slug
A blog category's metadata (direct-DB; no contentservice NATS). Compose with blogPosts(categorySlug:) for the category's posts. Unknown slug → null. Requires read:content.
Headers
| Name | Required | Description |
|---|---|---|
X-Storefront-Access-Token |
required | Storefront access token with read:content. |
Blog tags
All blog tags (direct-DB; no contentservice NATS). Requires read:content.
Headers
| Name | Required | Description |
|---|---|---|
X-Storefront-Access-Token |
required | Storefront access token with read:content. |
Vendor by slug
Fetch a vendor by slug with its products (direct-DB; no contentservice/productservice NATS). Products are filtered by the vendor entity id (not a name match). Unknown slug → null. Requires read:products.
Headers
| Name | Required | Description |
|---|---|---|
X-Storefront-Access-Token |
required | Storefront access token with read:products. |
X-Tringify-Session-Token |
optional | Visitor session token (locale-aware: vendors are translatable). |
Brand by slug
Fetch a brand by slug with its products (direct-DB; no NATS). Products are filtered by the brand entity id. Unknown slug → null. Requires read:products.
Headers
| Name | Required | Description |
|---|---|---|
X-Storefront-Access-Token |
required | Storefront access token with read:products. |
X-Tringify-Session-Token |
optional | Visitor session token (locale-aware). |
Vendors
All vendors for the store (direct-DB; no NATS). Requires read:products.
Headers
| Name | Required | Description |
|---|---|---|
X-Storefront-Access-Token |
required | Storefront access token with read:products. |
Brands
All brands for the store (direct-DB; no NATS). Requires read:products.
Headers
| Name | Required | Description |
|---|---|---|
X-Storefront-Access-Token |
required | Storefront access token with read:products. |
Renew visitor session
Renew the session supplied by X-Tringify-Session-Token — returns a fresh token and expiry. Renew before expiry to keep the cart and preferences.
Headers
| Name | Required | Description |
|---|---|---|
X-Storefront-Access-Token |
required | Storefront access token for the storefront/API version. |
X-Tringify-Session-Token |
optional | Visitor session token. |
X-Customer-Access-Token |
optional | Customer access token. |
Destroy visitor session
Destroy the current visitor session. The token becomes invalid; create a new session for the next visit.
Headers
| Name | Required | Description |
|---|---|---|
X-Storefront-Access-Token |
required | Storefront access token for the storefront/API version. |
X-Tringify-Session-Token |
optional | Visitor session token. |
X-Customer-Access-Token |
optional | Customer access token. |
Set currency
Set the session's preferred currency. The code must come from storeConfig availableCurrencies — an unknown code is an error, never a silent fallback.
Headers
| Name | Required | Description |
|---|---|---|
X-Storefront-Access-Token |
required | Storefront access token for the storefront/API version. |
X-Tringify-Session-Token |
optional | Visitor session token. |
X-Customer-Access-Token |
optional | Customer access token. |
Store configuration
Markets, currencies, and languages the store serves — the source of truth for currency/language pickers.
Headers
| Name | Required | Description |
|---|---|---|
X-Storefront-Access-Token |
required | Storefront access token for the storefront/API version. |
Localization context
The active country/language plus everything switchable — a projection of runtimeContext.localization for building pickers.
Headers
| Name | Required | Description |
|---|---|---|
X-Storefront-Access-Token |
required | Storefront access token for the storefront/API version. |
Restock notification
Request a back-in-stock notification for an out-of-stock or pre-order product. Idempotent per (product, variant, contact); contactType is "email" (default) or "sms".
Headers
| Name | Required | Description |
|---|---|---|
X-Storefront-Access-Token |
required | Storefront access token for the storefront/API version. |
X-Tringify-Session-Token |
optional | Visitor session token. |
X-Customer-Access-Token |
optional | Customer access token. |
Subscribe to newsletter
Subscribe an email address. When requiresConfirmation is true the store runs double opt-in: a confirmation email carries the token for confirmNewsletterSubscription.
Headers
| Name | Required | Description |
|---|---|---|
X-Storefront-Access-Token |
required | Storefront access token for the storefront/API version. |
Confirm newsletter subscription
Complete double opt-in with the emailed token.
Headers
| Name | Required | Description |
|---|---|---|
X-Storefront-Access-Token |
required | Storefront access token for the storefront/API version. |
Unsubscribe from newsletter
Unsubscribe with the tokenized link from any newsletter email.
Headers
| Name | Required | Description |
|---|---|---|
X-Storefront-Access-Token |
required | Storefront access token for the storefront/API version. |
Log out
Invalidate the current customer access token.
Headers
| Name | Required | Description |
|---|---|---|
X-Storefront-Access-Token |
required | Storefront access token for the storefront/API version. |
X-Customer-Access-Token |
optional | Customer access token (required for account operations). |
Update profile
Update the logged-in customer's profile fields. Requires X-Customer-Access-Token.
Headers
| Name | Required | Description |
|---|---|---|
X-Storefront-Access-Token |
required | Storefront access token for the storefront/API version. |
X-Customer-Access-Token |
optional | Customer access token (required for account operations). |
Add address
Create an address on the logged-in customer's address book.
Headers
| Name | Required | Description |
|---|---|---|
X-Storefront-Access-Token |
required | Storefront access token for the storefront/API version. |
X-Customer-Access-Token |
optional | Customer access token (required for account operations). |
Update address
Update one address by id.
Headers
| Name | Required | Description |
|---|---|---|
X-Storefront-Access-Token |
required | Storefront access token for the storefront/API version. |
X-Customer-Access-Token |
optional | Customer access token (required for account operations). |
Delete address
Delete one address by id.
Headers
| Name | Required | Description |
|---|---|---|
X-Storefront-Access-Token |
required | Storefront access token for the storefront/API version. |
X-Customer-Access-Token |
optional | Customer access token (required for account operations). |
Set default shipping address
Mark an address as the default shipping address.
Headers
| Name | Required | Description |
|---|---|---|
X-Storefront-Access-Token |
required | Storefront access token for the storefront/API version. |
X-Customer-Access-Token |
optional | Customer access token (required for account operations). |
Set default billing address
Mark an address as the default billing address.
Headers
| Name | Required | Description |
|---|---|---|
X-Storefront-Access-Token |
required | Storefront access token for the storefront/API version. |
X-Customer-Access-Token |
optional | Customer access token (required for account operations). |
Request data export
Ask for an export of the customer's data (delivered by email). Requires X-Customer-Access-Token.
Headers
| Name | Required | Description |
|---|---|---|
X-Storefront-Access-Token |
required | Storefront access token for the storefront/API version. |
X-Customer-Access-Token |
optional | Customer access token (required for account operations). |
Request account deletion
Initiate account deletion for the logged-in customer.
Headers
| Name | Required | Description |
|---|---|---|
X-Storefront-Access-Token |
required | Storefront access token for the storefront/API version. |
X-Customer-Access-Token |
optional | Customer access token (required for account operations). |
Search products (paged)
Cursor-paged product search. The storefront-search operation returns the richer SearchResults shape (facets, suggestions); this one is the plain paged list.
Headers
| Name | Required | Description |
|---|---|---|
X-Storefront-Access-Token |
required | Storefront access token for the storefront/API version. |
Product recommendations
Recommendations seeded by one product — the "you may also like" rail on a product page.
Headers
| Name | Required | Description |
|---|---|---|
X-Storefront-Access-Token |
required | Storefront access token for the storefront/API version. |
Recently viewed
The current session's recently viewed products (tracked via trackProductView). Session-scoped: requires X-Tringify-Session-Token.
Headers
| Name | Required | Description |
|---|---|---|
X-Storefront-Access-Token |
required | Storefront access token for the storefront/API version. |
X-Tringify-Session-Token |
optional | Visitor session token. |
X-Customer-Access-Token |
optional | Customer access token. |
You may also like
Session-personalized recommendations (falls back to store-wide picks for a fresh session).
Headers
| Name | Required | Description |
|---|---|---|
X-Storefront-Access-Token |
required | Storefront access token for the storefront/API version. |
Featured products
The store's featured products.
Headers
| Name | Required | Description |
|---|---|---|
X-Storefront-Access-Token |
required | Storefront access token for the storefront/API version. |
New arrivals
Newest published products.
Headers
| Name | Required | Description |
|---|---|---|
X-Storefront-Access-Token |
required | Storefront access token for the storefront/API version. |
Best sellers
Top sellers by sales signals.
Headers
| Name | Required | Description |
|---|---|---|
X-Storefront-Access-Token |
required | Storefront access token for the storefront/API version. |
On-sale products
Cursor-paged products currently discounted against their compare-at price.
Headers
| Name | Required | Description |
|---|---|---|
X-Storefront-Access-Token |
required | Storefront access token for the storefront/API version. |
Track product view
Record a product view on the session — feeds recentlyViewedProducts and personalization. Fire-and-forget (returns a boolean).
Headers
| Name | Required | Description |
|---|---|---|
X-Storefront-Access-Token |
required | Storefront access token for the storefront/API version. |
X-Tringify-Session-Token |
optional | Visitor session token. |
X-Customer-Access-Token |
optional | Customer access token. |
Collection by slug
One collection by slug (collectionById fetches by id). Null when the slug does not resolve.
Headers
| Name | Required | Description |
|---|---|---|
X-Storefront-Access-Token |
required | Storefront access token for the storefront/API version. |
Remove review vote
Withdraw a previously cast helpfulness vote.
Headers
| Name | Required | Description |
|---|---|---|
X-Storefront-Access-Token |
required | Storefront access token for the storefront/API version. |
X-Customer-Access-Token |
optional | Customer access token (required for account operations). |
Remove from wishlist
Remove a product (or specific variant) from the wishlist.
Headers
| Name | Required | Description |
|---|---|---|
X-Storefront-Access-Token |
required | Storefront access token for the storefront/API version. |
X-Tringify-Session-Token |
optional | Visitor session token. |
X-Customer-Access-Token |
optional | Customer access token. |
Toggle wishlist
Flip wishlist membership — the one-call heart button.
Headers
| Name | Required | Description |
|---|---|---|
X-Storefront-Access-Token |
required | Storefront access token for the storefront/API version. |
X-Tringify-Session-Token |
optional | Visitor session token. |
X-Customer-Access-Token |
optional | Customer access token. |
Clear wishlist
Empty the wishlist.
Headers
| Name | Required | Description |
|---|---|---|
X-Storefront-Access-Token |
required | Storefront access token for the storefront/API version. |
X-Tringify-Session-Token |
optional | Visitor session token. |
X-Customer-Access-Token |
optional | Customer access token. |