Operation reference

Docs-backed starter Storefront GraphQL operations used by the Developer Portal playground.

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

GRAPHQL Runtime read:settings

Verify the selected store, normal storefront, request, session, consent, localization, market, and currency. B2B storefront domains are hosted-only and reject Storefront GraphQL.

Headers

NameRequiredDescription
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

GRAPHQL Sessions write: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

NameRequiredDescription
X-Storefront-Access-Token required

Storefront access token for the selected storefront/API version.

Customer login

GRAPHQL Customers / Mutations write:customer

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

NameRequiredDescription
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

GRAPHQL Customers read:customer

Read the authenticated customer visible to this GraphQL request.

Headers

NameRequiredDescription
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

GRAPHQL Runtime / Localization write:session

Persist a storefront-served language choice on the visitor session. Query runtimeContext afterward to verify localization.resolvedBy becomes choice.

Headers

NameRequiredDescription
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

GRAPHQL Catalog / Normal storefront read:products

On a normal storefront, compare runtimeContext.currency with product price currency to verify product pricing reads the resolved runtime currency.

Headers

NameRequiredDescription
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

GRAPHQL Cart read:cart

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

NameRequiredDescription
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

GRAPHQL Cart / Mutations write: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

NameRequiredDescription
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

GRAPHQL Cart / Mutations write:cart

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

NameRequiredDescription
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

GRAPHQL Cart / Mutations write:cart

Remove a line. lineId targets a specific line — required for lines with properties; bare productId/variantId matches only the property-less line.

Headers

NameRequiredDescription
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

GRAPHQL Cart / Mutations write:cart

Empty the cart. Returns ClearCartPayload { cart, userErrors }.

Headers

NameRequiredDescription
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

GRAPHQL Cart / Mutations write:cart

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

NameRequiredDescription
X-Storefront-Access-Token required

Storefront access token for the storefront/API version.

Product reviews

GRAPHQL Reviews / Queries read:products

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

NameRequiredDescription
X-Storefront-Access-Token required

Storefront access token for the storefront/API version.

Review statistics

GRAPHQL Reviews / Queries read:products

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

NameRequiredDescription
X-Storefront-Access-Token required

Storefront access token for the storefront/API version.

Submit a review

GRAPHQL Reviews / Mutations write:customer

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

NameRequiredDescription
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

GRAPHQL Reviews / Mutations write:customer

Vote a review helpful/unhelpful. One vote per visitor (session or customer); voting again switches the vote. removeReviewVote clears it.

Headers

NameRequiredDescription
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

GRAPHQL Wishlist / Queries read: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

NameRequiredDescription
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

GRAPHQL Wishlist / Mutations write:wishlist

Add a product (or specific variant) to the wishlist. toggleWishlist flips membership; removeFromWishlist removes.

Headers

NameRequiredDescription
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

GRAPHQL Customers / Mutations write: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

NameRequiredDescription
X-Storefront-Access-Token required

Storefront access token for the storefront/API version.

Send a sign-in code

GRAPHQL Customers / Mutations write:customer

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

NameRequiredDescription
X-Storefront-Access-Token required

Storefront access token for the storefront/API version.

Get a blog post

GRAPHQL Blog / Queries read:content

Fetch one published post by slug. Content is the rendered HTML body.

Headers

NameRequiredDescription
X-Storefront-Access-Token required

Storefront access token for the storefront/API version.

List blog posts

GRAPHQL Blog / Queries read:content

Published posts, newest first; filter by category or tag slug, paginate with the cursor.

Headers

NameRequiredDescription
X-Storefront-Access-Token required

Storefront access token for the storefront/API version.

List blog categories

GRAPHQL Blog / Queries read:content

The category tree for navigation.

Headers

NameRequiredDescription
X-Storefront-Access-Token required

Storefront access token for the storefront/API version.

List comments on a post

GRAPHQL Blog / Queries read:content

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

NameRequiredDescription
X-Storefront-Access-Token required

Storefront access token for the storefront/API version.

Blog comment settings

GRAPHQL Blog / Queries read:content

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

NameRequiredDescription
X-Storefront-Access-Token required

Storefront access token for the storefront/API version.

Add a blog comment

GRAPHQL Blog / Mutations read:content

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

NameRequiredDescription
X-Storefront-Access-Token required

Storefront access token for the storefront/API version.

Get a page

GRAPHQL Content / Queries read:content

Fetch one published page by slug.

Headers

NameRequiredDescription
X-Storefront-Access-Token required

Storefront access token for the storefront/API version.

Get a policy

GRAPHQL Content / Queries read:content

Fetch one published policy by slug (refund, privacy, terms...).

Headers

NameRequiredDescription
X-Storefront-Access-Token required

Storefront access token for the storefront/API version.

Product by slug

GRAPHQL Catalog / Product detail read:products

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

NameRequiredDescription
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

GRAPHQL Catalog / Product detail read:products

Fetch a single product detail page by internal id (direct-DB). Same shape as product(slug). A non-visible/unresolvable id returns null.

Headers

NameRequiredDescription
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

GRAPHQL Catalog / Product detail read:products

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

NameRequiredDescription
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)

GRAPHQL Catalog / Product detail read:products

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

NameRequiredDescription
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

GRAPHQL Cart / Mutations write:cart

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

NameRequiredDescription
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

GRAPHQL Cart / Mutations write:cart

Remove an applied discount code from the cart (no-op when absent).

Headers

NameRequiredDescription
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.

Product facets

GRAPHQL Products / Queries read:products

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

NameRequiredDescription
X-Storefront-Access-Token required

Storefront access token for the storefront/API version.

Products (listing)

GRAPHQL Catalog / Listing read:products

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

NameRequiredDescription
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

GRAPHQL Catalog / Listing read: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

NameRequiredDescription
X-Storefront-Access-Token required

Storefront access token.

X-Tringify-Session-Token optional

Visitor session token.

Collections

GRAPHQL Catalog / Listing read:products

Active collections, paginated (direct-DB; no productservice NATS).

Headers

NameRequiredDescription
X-Storefront-Access-Token required

Storefront access token.

Category with products + tree

GRAPHQL Catalog / Listing read:products

A category's metadata, tree fields (parent/children/breadcrumbs), product count, and its product listing — all direct-DB (no productservice NATS).

Headers

NameRequiredDescription
X-Storefront-Access-Token required

Storefront access token.

X-Tringify-Session-Token optional

Visitor session token.

Category tree

GRAPHQL Catalog / Listing read:products

Top-level categories; nested children resolve lazily via Category.children (direct-DB; no productservice NATS).

Headers

NameRequiredDescription
X-Storefront-Access-Token required

Storefront access token.

Page by slug

GRAPHQL Content / Pages read:content

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

NameRequiredDescription
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

GRAPHQL Content / Policies read:content

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

NameRequiredDescription
X-Storefront-Access-Token required

Storefront access token with the read:content scope.

Blog post by slug

GRAPHQL Content / Blog read:content

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

NameRequiredDescription
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

GRAPHQL Content / Blog read:content

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

NameRequiredDescription
X-Storefront-Access-Token required

Storefront access token with read:content.

Blog tags

GRAPHQL Content / Blog read:content

All blog tags (direct-DB; no contentservice NATS). Requires read:content.

Headers

NameRequiredDescription
X-Storefront-Access-Token required

Storefront access token with read:content.

Vendor by slug

GRAPHQL Catalog / Vendors & Brands read:products

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

NameRequiredDescription
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

GRAPHQL Catalog / Vendors & Brands read:products

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

NameRequiredDescription
X-Storefront-Access-Token required

Storefront access token with read:products.

X-Tringify-Session-Token optional

Visitor session token (locale-aware).

Vendors

GRAPHQL Catalog / Vendors & Brands read:products

All vendors for the store (direct-DB; no NATS). Requires read:products.

Headers

NameRequiredDescription
X-Storefront-Access-Token required

Storefront access token with read:products.

Brands

GRAPHQL Catalog / Vendors & Brands read:products

All brands for the store (direct-DB; no NATS). Requires read:products.

Headers

NameRequiredDescription
X-Storefront-Access-Token required

Storefront access token with read:products.

Renew visitor session

GRAPHQL Sessions / Mutations write: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

NameRequiredDescription
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

GRAPHQL Sessions / Mutations write:session

Destroy the current visitor session. The token becomes invalid; create a new session for the next visit.

Headers

NameRequiredDescription
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

GRAPHQL Sessions / Mutations write:session

Set the session's preferred currency. The code must come from storeConfig availableCurrencies — an unknown code is an error, never a silent fallback.

Headers

NameRequiredDescription
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

GRAPHQL Runtime / Queries read:settings

Markets, currencies, and languages the store serves — the source of truth for currency/language pickers.

Headers

NameRequiredDescription
X-Storefront-Access-Token required

Storefront access token for the storefront/API version.

Localization context

GRAPHQL Runtime / Queries read:settings

The active country/language plus everything switchable — a projection of runtimeContext.localization for building pickers.

Headers

NameRequiredDescription
X-Storefront-Access-Token required

Storefront access token for the storefront/API version.

Restock notification

GRAPHQL Cart / Mutations write:cart

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

NameRequiredDescription
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

GRAPHQL Marketing / Mutations write:marketing

Subscribe an email address. When requiresConfirmation is true the store runs double opt-in: a confirmation email carries the token for confirmNewsletterSubscription.

Headers

NameRequiredDescription
X-Storefront-Access-Token required

Storefront access token for the storefront/API version.

Confirm newsletter subscription

GRAPHQL Marketing / Mutations write:marketing

Complete double opt-in with the emailed token.

Headers

NameRequiredDescription
X-Storefront-Access-Token required

Storefront access token for the storefront/API version.

Unsubscribe from newsletter

GRAPHQL Marketing / Mutations write:marketing

Unsubscribe with the tokenized link from any newsletter email.

Headers

NameRequiredDescription
X-Storefront-Access-Token required

Storefront access token for the storefront/API version.

Log out

GRAPHQL Customers / Mutations write:customer

Invalidate the current customer access token.

Headers

NameRequiredDescription
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

GRAPHQL Customers / Mutations write:customer

Update the logged-in customer's profile fields. Requires X-Customer-Access-Token.

Headers

NameRequiredDescription
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

GRAPHQL Customers / Mutations write:customer

Create an address on the logged-in customer's address book.

Headers

NameRequiredDescription
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

GRAPHQL Customers / Mutations write:customer

Update one address by id.

Headers

NameRequiredDescription
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

GRAPHQL Customers / Mutations write:customer

Delete one address by id.

Headers

NameRequiredDescription
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

GRAPHQL Customers / Mutations write:customer

Mark an address as the default shipping address.

Headers

NameRequiredDescription
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

GRAPHQL Customers / Mutations write:customer

Mark an address as the default billing address.

Headers

NameRequiredDescription
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

GRAPHQL Customers / Mutations write:customer

Ask for an export of the customer's data (delivered by email). Requires X-Customer-Access-Token.

Headers

NameRequiredDescription
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

GRAPHQL Customers / Mutations write:customer

Initiate account deletion for the logged-in customer.

Headers

NameRequiredDescription
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)

GRAPHQL Catalog / Queries read:products

Cursor-paged product search. The storefront-search operation returns the richer SearchResults shape (facets, suggestions); this one is the plain paged list.

Headers

NameRequiredDescription
X-Storefront-Access-Token required

Storefront access token for the storefront/API version.

Product recommendations

GRAPHQL Catalog / Queries read:products

Recommendations seeded by one product — the "you may also like" rail on a product page.

Headers

NameRequiredDescription
X-Storefront-Access-Token required

Storefront access token for the storefront/API version.

Recently viewed

GRAPHQL Catalog / Queries read:cart

The current session's recently viewed products (tracked via trackProductView). Session-scoped: requires X-Tringify-Session-Token.

Headers

NameRequiredDescription
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

GRAPHQL Catalog / Queries read:products

Session-personalized recommendations (falls back to store-wide picks for a fresh session).

Headers

NameRequiredDescription
X-Storefront-Access-Token required

Storefront access token for the storefront/API version.

New arrivals

GRAPHQL Catalog / Queries read:products

Newest published products.

Headers

NameRequiredDescription
X-Storefront-Access-Token required

Storefront access token for the storefront/API version.

Best sellers

GRAPHQL Catalog / Queries read:products

Top sellers by sales signals.

Headers

NameRequiredDescription
X-Storefront-Access-Token required

Storefront access token for the storefront/API version.

On-sale products

GRAPHQL Catalog / Queries read:products

Cursor-paged products currently discounted against their compare-at price.

Headers

NameRequiredDescription
X-Storefront-Access-Token required

Storefront access token for the storefront/API version.

Track product view

GRAPHQL Catalog / Mutations write:cart

Record a product view on the session — feeds recentlyViewedProducts and personalization. Fire-and-forget (returns a boolean).

Headers

NameRequiredDescription
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

GRAPHQL Catalog / Queries read:collections

One collection by slug (collectionById fetches by id). Null when the slug does not resolve.

Headers

NameRequiredDescription
X-Storefront-Access-Token required

Storefront access token for the storefront/API version.

Remove review vote

GRAPHQL Reviews / Mutations write:customer

Withdraw a previously cast helpfulness vote.

Headers

NameRequiredDescription
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

GRAPHQL Wishlist / Mutations write:wishlist

Remove a product (or specific variant) from the wishlist.

Headers

NameRequiredDescription
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

GRAPHQL Wishlist / Mutations write:wishlist

Flip wishlist membership — the one-call heart button.

Headers

NameRequiredDescription
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

GRAPHQL Wishlist / Mutations write:wishlist

Empty the wishlist.

Headers

NameRequiredDescription
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.