Skip to content
Select theme
Light
Dark
Auto
Select language
English
فارسی

Catalogue

Object

A group of products a merchant put together — دسته‌بندی.

Merchandising, not taxonomy: a merchant decides what belongs. Membership may be listed by hand or derived from rules the merchant wrote, and this API does not distinguish — from a storefront’s side a collection is a list of products.

ID!

A globally unique, opaque identifier. Never parse or construct one.

Handle!

The collection’s slug on this storefront.

String!

The collection’s name in the current locale.

String!

The description with markup removed.

HTML!

The full description, sanitized.

Image

A banner image.

ProductConnection!

Products in the collection.

filters narrows within it; Query.search searches across the whole shop. Combining a collection with filters is how a faceted category page is built.

ArgumentTypeMeaning
firstIntNo description.
afterStringNo description.
lastIntNo description.
beforeStringNo description.
filters[ProductFilter!]Narrow to products matching every filter. Combined with AND, so two filters return fewer products rather than more.
sortKeyProductCollectionSortKeys · default "COLLECTION_DEFAULT"No description.
reverseBoolean · default falseNo description.

[Filter!]!

The facets available for the products in this collection, with counts.

Derived from what is actually in the collection, so a category with no blue items offers no blue filter.

ArgumentTypeMeaning
filters[ProductFilter!]The selection already made, so the counts describe what a further click would return. Pass the same filters as products and each remaining facet reports how many products it would leave — which is what stops a faceted page offering a filter that leads to nothing. Omit it and the counts are for the whole collection.

SEO!

Crawler-facing metadata, including generated schema.org markup.

URL

The collection’s canonical URL on the shop’s primary domain.

DateTime!

When the collection or its membership last changed.

The value to hold for cache revalidation. A rule-based collection changes when a product starts or stops matching, without the merchant touching it.

Metafield

One of this collection’s metafields, or null when it is unset or not published to the storefront — the two are deliberately indistinguishable.

ArgumentTypeMeaning
namespaceStringThe owning app, or custom for a merchant’s own. Defaults to custom.
keyString!The metafield’s key within its namespace.

[Metafield]!

Several of this collection’s metafields at once.

The result is positional: one entry per identifier, in the order asked, null where there is nothing to return.

ArgumentTypeMeaning
identifiers[MetafieldIdentifier!]!The metafields to fetch. The result has one entry per identifier.
Object

A page of collections.

[CollectionEdge!]!

Each Collection with its cursor. Use this when you need to page.

[Collection!]!

The Collections themselves, unwrapped. Use this when you do not.

PageInfo!

Whether there is more, and the cursors to ask with.

Int!

Total matching results, capped at a bound the platform will not count past.

Object

One collection in a page, with its cursor.

String!

This position in the current ordering. Pass it as after or before.

Collection!

The Collection at this position.

Enum

How a collection listing is ordered.

ValueMeaning
TITLENo description.
UPDATED_ATNo description.
RELEVANCENo description.
Object

One facet a listing can be narrowed by, with the values present and how many products each would leave.

The counts are computed against the other filters currently applied but not against this facet’s own — so ticking a second colour does not show zero everywhere, which is the behaviour every faceted UI wants and almost none implements.

String!

A stable identifier: filter.v.price, filter.p.tag, filter.v.option.color.

Branch on this, not on label.

String

The facet’s name in the current locale, when it comes from merchant data — an option name, a metafield’s definition name.

Null for a built-in facet — price, availability, rating. Those have no merchant-authored name, and inventing one would put a system-chosen Persian string in an API that promises not to. Branch on id and supply your own.

FilterPresentation!

How this facet is best rendered.

[FilterValue!]!

The values present, with counts. Empty for a range facet.

FilterRange

The bounds present, for a range facet. Null for every other kind.

Enum

How a facet is best rendered.

ValueMeaning
LISTA checkbox list.
SWATCHA colour swatch grid.
RANGEA two-handled slider.
BOOLEANA single toggle.
RATINGA star selector.
Object

The bounds of a range facet, in the canonical unit.

Decimal!

The lowest value present among the matching products.

Decimal!

The highest. Equal to min when only one price is present.

Object

One selectable value on a facet.

String!

Stable within its facet.

String!

The value’s label, in the current locale. Merchant data — safe to render.

Int!

How many products remain if this value is added to the current selection.

String

The colour to paint, when the facet is a swatch.

Image

The image to show, when the facet is a swatch.

JSON!

The ProductFilter to send back to apply this value, as JSON.

Round-tripping the filter rather than making the client reconstruct it: a facet UI then works without knowing which of a dozen filter members a particular facet maps to, and a new kind of facet needs no client change.

Object

A page of images.

[ImageEdge!]!

Each Image with its cursor. Use this when you need to page.

[Image!]!

The Images themselves, unwrapped. Use this when you do not.

PageInfo!

Whether there is more, and the cursors to ask with.

Object

One image in a page, with its cursor.

String!

This position in the current ordering. Pass it as after or before.

Image!

The Image at this position.

Object

A page of media.

[MediaEdge!]!

Each Media with its cursor. Use this when you need to page.

[Media!]!

The Medias themselves, unwrapped. Use this when you do not.

PageInfo!

Whether there is more, and the cursors to ask with.

Object

One media item in a page, with its cursor.

String!

This position in the current ordering. Pass it as after or before.

Media!

The Media at this position.

Input

One metafield, by identity and exact value.

String

The owning app, or custom. Defaults to custom.

String!

The metafield key to match on.

String!

The value to match, exactly and as a string. No ranges and no partial matches: a metafield has no declared ordering to compare along.

Object

One suggested completion.

String!

The full query text to run if the buyer takes it.

HTML!

The same text with the part the buyer already typed wrapped in <mark>, sanitized.

Composed server-side because the match is fuzzy — the typed characters are frequently not a literal substring of the suggestion once normalization has had its say, and a client highlighting by indexOf will highlight nothing.

Object

What a search-as-you-type box shows.

Separate from search because it answers a different question under a different budget: it must return in tens of milliseconds, it is called on nearly every keystroke, and it is not paginated. Its results are a prompt, not an answer.

[Product!]!

Matching products, best first. Empty unless PRODUCT was asked for.

[Collection!]!

Matching collections. Empty unless COLLECTION was asked for.

[Page!]!

Matching pages. Empty unless PAGE was asked for.

[Article!]!

Matching articles. Empty unless ARTICLE was asked for.

[PredictiveSearchQuery!]!

Query completions to offer beneath the box — what other buyers went on to search for.

Input

A span of prices, in the canonical unit.

Decimal

The floor, inclusive. Omit for no lower bound.

Decimal

The ceiling, inclusive. Omit for no upper bound.

Object

Something a merchant sells.

The product is the merchandising unit — what a buyer browses to and shares. The variant is the purchasable unit — what has a price, a barcode, and a stock count. A product with no options still has exactly one variant, and it is the variant that goes in a cart.

ID!

A globally unique, opaque identifier. Never parse or construct one.

Handle!

The product’s slug on this storefront.

String!

The product’s name, in the current locale.

String!

The description with markup removed.

For a meta description, a card, or a search result — anywhere HTML would have to be stripped anyway. Stripping happens here so every theme strips it the same way.

HTML!

The full description, sanitized.

String

The brand — برند. Merchant text; not a reference to anything.

String

The merchant’s own type name for the product.

[String!]!

Merchant-applied tags. Useful for filtering; not a taxonomy.

Boolean!

Whether any variant can be bought right now.

False when every variant is out of stock and none accepts a backorder. A theme should render the product either way — an out-of-stock page still ranks, still gets shared, and can still take a back-in-stock request.

Image

The image to lead with.

ImageConnection!

Every image, in the merchant’s order, featuredImage first.

ArgumentTypeMeaning
firstIntNo description.
afterStringNo description.
lastIntNo description.
beforeStringNo description.

MediaConnection!

Every piece of media, in the merchant’s order.

Prefer this over images for a gallery: it carries video and 3D models too, and a gallery that queries only images will silently drop them.

ArgumentTypeMeaning
firstIntNo description.
afterStringNo description.
lastIntNo description.
beforeStringNo description.

[ProductOption!]!

The axes a buyer chooses along — رنگ, سایز.

In the order they should be presented. A product with no options returns an empty list.

ProductVariantConnection!

Every purchasable variant.

ArgumentTypeMeaning
firstIntNo description.
afterStringNo description.
lastIntNo description.
beforeStringNo description.
sortKeyProductVariantSortKeys · default "POSITION"No description.
reverseBoolean · default falseNo description.

ProductVariant

The variant matching an exact set of option values, or null when that combination does not exist.

Every value must be supplied. Use it when the buyer has finished choosing.

ArgumentTypeMeaning
selectedOptions[SelectedOptionInput!]!No description.

ProductVariant

The variant to show for a partial or empty selection.

The exact match when the selection is complete and real; otherwise the first available variant consistent with what has been chosen so far; otherwise the first variant at all, so a page always has something to render.

This is what a product page should call on first load and after every click, rather than reimplementing the fallback in each theme.

ArgumentTypeMeaning
selectedOptions[SelectedOptionInput!]No description.

MoneyRange!

The span of variant prices. min and max are equal when every variant costs the same — which is when a theme should print one price rather than a range.

MoneyRange

The span of variant compare-at prices, or null when nothing is on sale.

Compare against priceRange to decide whether to draw a discount badge.

Int

Total stock across every variant and location, or null when the merchant has chosen not to publish stock counts.

Null is not zero. A theme that renders 0 for a null has told the buyer the product is gone.

CollectionConnection!

The collections this product belongs to and that are published.

ArgumentTypeMeaning
firstIntNo description.
afterStringNo description.

TaxonomyCategory

Its place in the standard taxonomy, for breadcrumbs and for cross-shop comparison.

Distinct from collections, which is merchandising the merchant chose.

ReviewSummary

Ratings, when reviews are switched on. Null when they are not.

ReviewConnection!

Reviews left by buyers, newest first by default.

ArgumentTypeMeaning
firstIntNo description.
afterStringNo description.
sortKeyReviewSortKeys · default "CREATED_AT"No description.
reverseBoolean · default trueNo description.
ratingIntOnly reviews at exactly this star rating, 1 to 5. Exact, not a minimum: this is what a histogram’s bars link to, and a bar labelled ۳ that also returned the fours and fives would not add up to the count printed on it.
verifiedOnlyBoolean · default falseOnly reviews from a buyer the platform can match to a delivered order for this product. The badge a shopper actually trusts. Off by default because most shops have more honest reviews than provable ones, and a page that shows three verified reviews out of forty reads as a shop with three reviews.

SEO!

Crawler-facing metadata, including generated schema.org markup.

URL

The product’s canonical URL on the shop’s primary domain.

Boolean!

Whether buying this issues a gift card rather than shipping anything.

DateTime!

When the merchant published it. Useful for a “new in” sort.

DateTime!

When it last changed.

The value to hold for cache revalidation, and the one a headless storefront keys incremental regeneration on.

Metafield

One of this product’s metafields, or null when it is unset or not published to the storefront — the two are deliberately indistinguishable.

ArgumentTypeMeaning
namespaceStringThe owning app, or custom for a merchant’s own. Defaults to custom.
keyString!The metafield’s key within its namespace.

[Metafield]!

Several of this product’s metafields at once.

The result is positional: one entry per identifier, in the order asked, null where there is nothing to return.

ArgumentTypeMeaning
identifiers[MetafieldIdentifier!]!The metafields to fetch. The result has one entry per identifier.
Enum

How a listing within a collection is ordered.

ValueMeaning
COLLECTION_DEFAULTThe order the merchant arranged, by hand or by rule.
RELEVANCENo description.
TITLENo description.
PRICENo description.
BEST_SELLINGNo description.
CREATED_ATNo description.
RATINGNo description.
Object

A page of products.

[ProductEdge!]!

Each Product with its cursor. Use this when you need to page.

[Product!]!

The Products themselves, unwrapped. Use this when you do not.

PageInfo!

Whether there is more, and the cursors to ask with.

Int!

Total matching products, capped at a bound the platform will not count past.

Object

One product in a page, with its cursor.

String!

This position in the current ordering. Pass it as after or before.

Product!

The Product at this position.

Input

One condition on a product listing.

Exactly one member must be set. Several filters in a list are combined with AND; several values on the same facet — two tag filters — are combined with OR, which is what makes a checkbox list behave the way a buyer expects.

Boolean

Only products with at least one purchasable variant.

PriceRangeFilter

Products whose price falls in a span.

String

Products with this exact productType.

String

Products with this exact vendor.

String

Products carrying this tag.

VariantOptionFilter

Products with a variant carrying this option value.

ID

Products in this taxonomy category, or any beneath it.

MetafieldFilter

Products whose metafield holds a value.

Float

Products with a rating at or above a threshold.

Object

One axis a buyer chooses along.

The values are the ones that exist on at least one variant, in the merchant’s order — so a size selector runs small to large rather than alphabetically.

ID!

A globally unique, opaque identifier. Never parse or construct one.

String!

The axis name in the current locale — رنگ.

ProductOptionPresentation!

What this axis represents, when the merchant said.

Lets a theme render a colour as a swatch and a size as a chip without matching on the Persian name — which would only work for one locale and one spelling.

[ProductOptionValue!]!

The values available, in order.

Enum

How an option is best rendered.

ValueMeaning
SWATCHA colour — draw the swatch.
CHIPA size or a short label — draw a chip.
IMAGEA picture per value — draw thumbnails.
DROPDOWNAnything else — draw a select.
Object

One value on one axis.

ID!

A globally unique, opaque identifier. Never parse or construct one.

String!

The value in the current locale — آبی.

String

The colour to paint a swatch, as #rrggbb, when the merchant set one.

Image

The image to show for this value, when the merchant set one.

Boolean!

Whether any in-stock variant carries this value, given nothing else selected.

For greying out a value that cannot lead anywhere. It does not account for the buyer’s other selections — for that, resolve the variant and read its own availability.

Enum

Why a set of products is being recommended.

ValueMeaning
RELATEDAlternatives to what is being viewed — محصولات مشابه.
COMPLEMENTARYThings that go with it — تکمیل خرید.
FREQUENTLY_BOUGHT_TOGETHERBought together by other buyers.
Enum

How a product listing is ordered.

ValueMeaning
RELEVANCEBy how well it matched. Only meaningful with a query.
TITLENo description.
PRICENo description.
BEST_SELLINGNo description.
CREATED_ATNo description.
UPDATED_ATNo description.
RATINGNo description.
Object

The thing that is actually bought: one combination of option values, with its own price, stock, and barcode.

A cart holds variant ids. Nothing else is purchasable.

ID!

A globally unique, opaque identifier. Never parse or construct one.

String!

The variant’s name, composed from its option values — آبی / XL.

Default Title for a product with no options; a theme should not print that.

String

The merchant’s stock-keeping unit.

String

A barcode: EAN, UPC, ISBN.

[SelectedOption!]!

Which value this variant carries on each axis.

Money!

What it costs now.

Money

The price it is being compared against — the “was” price.

Null when nothing is being compared. A theme should only draw a strike-through when this is present and greater than price; a merchant who lowers a compare-at price below the real one should not produce a negative discount badge.

Money

Price per unit of measure, for goods sold by weight or volume.

UnitPriceMeasurement

What unitPrice is per — “per 100 گرم”.

Boolean!

Whether this exact variant can be bought right now.

Int

How many are on hand, or null when the merchant does not publish stock.

Null is not zero. When it is present, a theme may show scarcity (“تنها ۲ عدد باقی مانده”) — a real conversion lever, and a real way to leak commercial data a merchant did not intend to publish, which is why it is opt-in.

Boolean!

Out of stock but still purchasable, on backorder or made to order.

When true, availableForSale is also true and delivery will be slower than the usual estimate. Say so on the page.

Int

The maximum a single order may contain, or null when unlimited.

Boolean!

Whether this needs delivering. False for a digital product or a service.

Weight

Shipping weight, when the merchant recorded one.

Dimensions

Packed size, when the merchant recorded it.

Image

The image for this variant, falling back to the product’s featured image.

Product!

The product this belongs to.

Metafield

One of this variant’s metafields, or null when it is unset or not published to the storefront — the two are deliberately indistinguishable.

ArgumentTypeMeaning
namespaceStringThe owning app, or custom for a merchant’s own. Defaults to custom.
keyString!The metafield’s key within its namespace.

[Metafield]!

Several of this variant’s metafields at once.

The result is positional: one entry per identifier, in the order asked, null where there is nothing to return.

ArgumentTypeMeaning
identifiers[MetafieldIdentifier!]!The metafields to fetch. The result has one entry per identifier.
Object

A page of variants.

[ProductVariantEdge!]!

Each ProductVariant with its cursor. Use this when you need to page.

[ProductVariant!]!

The ProductVariants themselves, unwrapped. Use this when you do not.

PageInfo!

Whether there is more, and the cursors to ask with.

Object

One variant in a page, with its cursor.

String!

This position in the current ordering. Pass it as after or before.

ProductVariant!

The ProductVariant at this position.

Enum

How a variant list is ordered.

ValueMeaning
POSITIONThe merchant’s own order.
TITLENo description.
PRICENo description.
SKUNo description.
Union

One thing a search matched.

Object

A page of search results.

[SearchResultEdge!]!

Each SearchResult with its cursor. Use this when you need to page.

[SearchResult!]!

The SearchResults themselves, unwrapped. Use this when you do not.

PageInfo!

Whether there is more, and the cursors to ask with.

Int!

How many results there are in total, capped at a bound the platform will not count past.

For “۱۲۴ نتیجه” and for deciding whether to offer pagination at all.

[Filter!]!

Facets over the product results, with counts. Empty when products were not among the requested types.

String

What the platform would have searched for instead, when the query looks misspelled and a correction has materially more results.

Null when there is nothing to suggest. Render it as “منظورتان … بود؟” — the wording is the theme’s.

Object

One search result, with its cursor.

String!

This position in the current ordering. Pass it as after or before.

SearchResult!

The SearchResult at this position.

Enum

How a search is ordered.

ValueMeaning
RELEVANCENo description.
PRICENo description.
CREATED_ATNo description.
Enum

What a search can return.

Ask for only what the page renders. A search box that shows products alone but requests all four makes the shop do four searches and throw three away.

ValueMeaning
PRODUCTNo description.
COLLECTIONNo description.
PAGENo description.
ARTICLEA blog post. Matches its body, not only its title.
Object

One axis and the value chosen on it.

String!

The axis — رنگ.

String!

The value on that axis — آبی.

Input

One axis and the value chosen on it.

String!

The axis name, exactly as ProductOption.name gave it.

String!

The value, exactly as ProductOptionValue.name gave it.

Object

A node in the standard product taxonomy.

Platform-maintained, shared by every shop, and the anchor the Torob and Digikala category mappings hang off. A merchant classifies a product here; the feed generators translate. It is also what makes Phase-2 discovery able to compare a product in one shop with a product in another.

ID!

A globally unique, opaque identifier. Never parse or construct one.

Handle!

A stable path-like identifier: apparel/tops/shirts.

String!

The category name in the current locale — پیراهن.

TaxonomyCategory

The category above this one, or null at the root.

[TaxonomyCategory!]!

Every ancestor, root first, this category last.

Returned whole because a breadcrumb needs all of it and walking parent costs one round trip per level.

[TaxonomyCategory!]!

The categories directly beneath.

Boolean!

Whether this shop has any published product in it.

Object

What a unit price is quoted per.

Float!

How much of the unit — the 100 in “per 100 گرم”.

UnitPriceUnit!

Which unit.

Enum

Units a unit price can be quoted in.

ValueMeaning
GRAMNo description.
KILOGRAMNo description.
MILLILITERNo description.
LITERNo description.
CENTIMETERNo description.
METERNo description.
SQUARE_METERNo description.
PIECENo description.
Input

One option value, by axis name.

String!

The axis to filter on — رنگ.

String!

The value to keep — آبی.