CommerceStructuredData
Interface
The JSON-LD structured data of a product, collection or category page. Render it as one
application/ld+json script with renderJsonLdGraph(). Never inject a raw
JSON.stringify of it: the graph carries merchant and visitor text, and a </script>
inside a value would end the tag.
Property | Type | Optional | Description |
|---|---|---|---|
|
| No | The schema.org nodes of the page's JSON-LD graph, as plain JSON objects, each a<br>complete node with its own |
Product
Interface
A published product of the storefront catalogue, with buyer-facing fields only.
Text, slugs and paths are per locale. A read with a locale is served in that
locale, or in the closest available one when the product has no translation there:
the LocaleResolution fields say which. A product hidden in a locale is not
found in that locale.
Extends: LocaleResolution
Property | Type | Optional | Description |
|---|---|---|---|
|
| Yes | The product page's path in each locale it is published in, for hreflang links, sent<br>when the request has a locale. Empty on a fallback. Add |
|
| No | Stock state, never a quantity, and |
|
| No | Brand name, or |
|
| Yes | Canonical path of the product page, sent when the request has a locale. Equals |
|
| No | Canonical URL override, or |
|
| No | Optional strikethrough "was" price in cents, VAT included like Product.priceCents:<br>equal to Product.compareAtPriceGrossCents. |
|
| No | Product.compareAtPriceCents with VAT, in cents: equal to |
|
| No | Product.compareAtPriceCents without VAT, in cents, or |
|
| No | ISO 4217 currency code (e.g. |
|
| No | Long product description in the served locale, or |
|
| No | The images of Product.images, in the same order, with their alt text and caption. Empty when the product has no images. |
|
| No | Global Trade Item Number (8, 12, 13 or 14 digits with a valid check digit), or |
|
| No | The product id as a prefixed wire id (e.g. |
|
| No | Ordered public image URLs, or an empty array when the product has no images. |
|
| Yes |
|
|
| No | Comma-separated SEO keywords (e.g. |
|
| No |
|
|
| Yes | BCP 47 locale code of the record actually served (e.g. |
|
| No | Manufacturer Part Number, or |
|
| No | When |
|
| No | When |
|
| No | Open Graph description used when the product is shared on social networks, or |
|
| No | Public Open Graph image URL, or |
|
| No | Alternative text of the Open Graph image, suited to |
|
| No | Open Graph title used when the product is shared on social networks, or |
|
| No | URL path of the product page in the requested locale (e.g. |
|
| No | Price in cents, VAT included: equals |
|
| No | How the merchant wants prices shown, one value for the whole site: |
|
| No | Product.priceCents with VAT, at the rate of the request's |
|
| No | Product.priceCents without VAT, in cents. Show it when<br>Product.priceDisplayMode is |
|
| Yes | BCP 47 locale code the request asked for (e.g. |
|
| No | SEO meta description, or |
|
| No | SEO title override, or |
|
| No | Catalogue SKU, or |
|
| No | Slug in the served locale: the translated slug when the product is translated, else<br>the source slug. Accepted by |
|
| Yes | The product page's structured data (JSON-LD). Present on the single read<br>( |
|
| No | The primary image URL (mirror of |
|
| No | Product title in the served locale (see LocaleResolution.locale). Always non-empty for a published product. |
|
| No |
|
|
| No | Product variants, ordered by position. Empty when the product has none. |
ProductGalleryImage
Interface
One product gallery image with its display metadata. The same image also appears, in the same order, as a bare URL in Product.images.
Property | Type | Optional | Description |
|---|---|---|---|
|
| No | Merchant-provided alt text for the image, or |
|
| No | Merchant-provided caption, or |
|
| No | Public image URL, served from the Lynkow media library. Same value as the corresponding |
ProductsFilters
Interface
Filters for a storefront product listing. All optional.
Property | Type | Optional | Description |
|---|---|---|---|
|
| Yes | Restrict to one category and its visible sub-categories: its |
|
| Yes | Restrict to one collection: its |
|
| Yes | Restrict to a product kind: |
|
| Yes | Items per page. Defaults to 20, max 100. |
|
| Yes | Page number (1-based). Defaults to 1. |
|
| Yes | Case-insensitive text matched within the title or slug (the translated ones with a |
|
| Yes | Sort field: |
|
| Yes | Sort direction: |
ProductsListResponse
Interface
Paginated product list response: the products on the page plus pagination metadata.
Property | Type | Optional | Description |
|---|---|---|---|
|
| No | The published products on this page. |
|
| No | Pagination info: |
ProductVariant
Interface
A purchasable variant of a product. Present only for published products on sites with variants enabled; a product without variants has an empty array.
Property | Type | Optional | Description |
|---|---|---|---|
|
| Yes | Stock state of this variant, never a quantity. Untracked stock is in stock, zero or<br>less is out of stock even when overselling is allowed. Absent when the site does not<br>enforce stock: treat it as unknown. |
|
| No | Optional strikethrough "was" price in cents, VAT included like<br>ProductVariant.priceCents: equal to ProductVariant.compareAtPriceGrossCents.<br> |
|
| No | ProductVariant.compareAtPriceCents with VAT, in cents: equal to |
|
| No | ProductVariant.compareAtPriceCents without VAT, in cents, or |
|
| No | The images the variant selects, or the full product gallery when it selects none.<br>Prefer it over Product.gallery for the selected variant. |
|
| No | Global Trade Item Number of the variant (8, 12, 13 or 14 digits with a valid check digit), or |
|
| No | The variant id as a prefixed wire id (e.g. |
|
| No | Manufacturer Part Number of the variant, or |
|
| No | The option values this variant represents, ordered by option position. |
|
| No | Display order within the product (ascending). |
|
| No | Selling price of the variant in cents, VAT included: equals |
|
| No | Same value as Product.priceDisplayMode: which price to show. It never changes the amount charged. |
|
| No | ProductVariant.priceCents with VAT, at the rate of the request's |
|
| No | ProductVariant.priceCents without VAT, in cents. Show it when<br>ProductVariant.priceDisplayMode is |
|
| No | Variant SKU, or |
|
| No | Display title, e.g. |
ProductVariantOptionValue
Interface
One selected option value carried by a variant (e.g. Size: M).
Property | Type | Optional | Description |
|---|---|---|---|
|
| No | The option (axis) label, e.g. |
|
| No | The selected value label, e.g. |