All paths are under https://<store domain>/api/shop/2026-11. Catalog and content objects have the same fields and rules as the theme context themes read (see the CTX reference), so a product here is a product there.
Context#
Endpoint |
Returns |
|---|---|
|
|
Catalog#
Endpoint |
Parameters |
Returns |
|---|---|---|
|
|
|
|
Up to 50 product IDs |
|
|
|
|
|
|
The list with |
|
As |
The entity, with its links (below), and its products |
requires_customisation: true marks a product an app must personalise before it is bought: checkout sessions refuse it with its product page link.
Links, languages and moved handles#
Every url is a path on the hosted storefront for the request's country and language (a country with its own domain is addressed there), and absolute_url beside it is the same page as a full URL: use it for a canonical link. Products in lists, entity list items and search results carry both.
Field |
On |
Meaning |
|---|---|---|
|
|
The page in each language the hosted storefront serves in the request's country: language → |
|
The same |
The resource's slug in the request's language: what to route and link by. |
|
The same, only when the handle asked for was another language's slug or an old one whose change kept its redirect |
|
Filters take a vendor, brand or category by its slug in any language (filter.vendor=<slug>), or by a slug it had before a slug change that kept its redirect, so a slug read from a product's vendor_ref builds a working link. Every link the API returns for a filter state (filter values' url, filters.inputs, paging and sort links) carries the slug in the request's language, so one filter state has one URL. Tag slugs are the same in every language.
Content#
Endpoint |
Returns |
|---|---|
|
Published pages: title, content, SEO fields, |
|
The menu tree themes get: items with title, |
|
Published policies in the shopper's language |
|
|
|
Published posts, newest first, with |
|
|
|
A page of approved comments, oldest first: |
|
The blog's categories (with |
|
The |
|
The list page of a custom content type that has web pages (by type handle): |
|
|
Only published posts, approved comments and active entries of custom content types with web pages are returned; drafts never are. Custom data (metafields and entry fields) that points at custom content entries returns those entries, resolved as themes see them: in one batched read per request, at most 3 levels deep.
Blog comments#
POST /blog/posts/{slug}/comments with {"author_name", "author_email", "content"} posts a comment. It needs a storefront or server key and a shopper session (Tringify-Shop-Session). Send submission_id in the body or an Idempotency-Key header (up to 128 characters): a retry with the same value and session returns the first answer instead of a second comment.
The comment goes through the same checks as the store's own comment form: the store's comment settings and moderation, blocked words, the block list, and the comment limits per shopper address, per network and per store (a server key's forwarded Tringify-Shop-Client-IP is the shopper's address). The merchant is notified and blog_comments/create webhooks fire as for any comment. The answer is 201 with status (approved, or pending while it waits for review) and, when approved, comment.
Code |
When |
|---|---|
|
No key: AI agents read comments but cannot post them |
|
No live shopper session |
|
The store has comments turned off |
|
The blog takes comments from signed-in customers only; the API has no customer sign-in yet |
|
The store is getting so many comments that its storefront asks for a human check; retry after |
|
A comment limit was reached; retry after |
|
No published post with that slug in the request's language |
|
The comment itself: missing or too long |
Search#
Endpoint |
Parameters |
Returns |
|---|---|---|
|
|
|
|
|
|
Search is the store's own storefront search: its search settings (whether search and search suggestions are on, and which result types it shows: products, collections, categories, vendors, brands, pages, blog_posts, blog_categories, policies, custom_content), its synonyms in the request's language, the same ranking and the same filter rules. Results are titled and linked in the request's language: handle is the result's slug in that language, as in its url. A vendor, brand, category or collection result's excerpt is the first sentence of its description in that language (plain text, at most 200 characters, cut at a word); blog posts, pages, policies and custom content keep the start of their text. Products are limited to the caller's channel. SHOP_API_SEARCH_DISABLED answers while search is off, SHOP_API_PREDICTIVE_SEARCH_DISABLED asks for suggestions while they are off, and SHOP_API_SEARCH_TYPE_INVALID refuses an unknown type.
Shopper sessions#
POST /sessions starts a session for analytics and attribution. Send landing_url (with its click IDs and UTM tags), referrer, country and consent (given, purposes: analytics, advertising, advertising_data, personalized_advertising, personalization). It answers session.id, session.token, session.browser_id, session.consent and session.expires_at (30 days). Keep the token in your own first-party cookie and send it as Tringify-Shop-Session on every call.
Click IDs (gclid, gbraid, wbraid, fbclid, ttclid, msclkid and the parameters installed apps declared) and UTM tags become the session's first and last touch when advertising consent allows.
PUT /sessions/{id}/consentwithgivenandpurposeschanges the choice from then on.With a server key, the session records the shopper's forwarded address, user agent and declared app cookies.
Events#
POST /events with {"events": [{"type", "url", "payload"}]} (at most 20) records what the shopper saw. Types: page_view (page_type, slug, resource_id), product_viewed (product_id, variant_id), search (query, results_total), rec_impression (placement, product_ids), rec_click (placement, product_id), newsletter_signup, contact_submitted. Products must exist and be published; product details come from the catalog. Each event comes back with its event_id, so a pixel you run can send the same ID. Cart, checkout and purchase are never sent here: they come from checkout sessions and the order. Needs a live session; each session and store has an allowance (SHOP_API_EVENT_LIMIT_REACHED).
Checkout sessions#
Endpoint |
Does |
|---|---|
|
Creates a session: |
|
Prices it again and answers it |
|
Changes any of the create fields; a shipping address in another country moves the session there |
|
Cancels it |
See Checkout sessions and hand-off for statuses, messages and the checkout_url.