> For the complete Lynkow documentation index in agent-friendly format, see [llms.txt](/llms.txt).

# SDK Types: Product

**Published**: 2026-11-30
**Category**: Types

## `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 |
| --- | --- | --- | --- |
| `graph` | `object[]` | No | The schema.org nodes of the page's JSON-LD graph, as plain JSON objects, each a<br>complete node with its own `@context`, `@id` and `@type`. Empty when the page has<br>no structured data. |


---

## `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 |
| --- | --- | --- | --- |
| `alternates` | `{ current: boolean; locale: string; path: string }[]` | 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 `x-default` yourself. |
| `availability` | `"out_of_stock" \| "in_stock" \| null` | No | Stock state, never a quantity, and `null` for a bookable product. With variants, it is<br>`'in_stock'` when any variant is. Untracked stock counts as in stock. |
| `brand` | `string \| null` | No | Brand name, or `null` when none is set. |
| `canonicalPath` | `string \| null` | Yes | Canonical path of the product page, sent when the request has a locale. Equals `path`,<br>except on a fallback, where it points at the default-locale URL when one exists. |
| `canonicalUrl` | `string \| null` | No | Canonical URL override, or `null` to use Product.path. A fallback product with<br>no override carries the absolute `canonicalPath` here when the site has a domain. |
| `compareAtPriceCents` | `number \| null` | No | Optional strikethrough "was" price in cents, VAT included like Product.priceCents:<br>equal to Product.compareAtPriceGrossCents. `null` when there is no comparison price. |
| `compareAtPriceGrossCents` | `number \| null` | No | Product.compareAtPriceCents with VAT, in cents: equal to `compareAtPriceCents`, `null` when there is no comparison price. |
| `compareAtPriceNetCents` | `number \| null` | No | Product.compareAtPriceCents without VAT, in cents, or `null` when there is no comparison price. |
| `currency` | `string` | No | ISO 4217 currency code (e.g. `'EUR'`). |
| `description` | `string \| null` | No | Long product description in the served locale, or `null` when the merchant left it empty. |
| `gallery` | `ProductGalleryImage[]` | No | The images of Product.images, in the same order, with their alt text and caption. Empty when the product has no images. |
| `gtin` | `string \| null` | No | Global Trade Item Number (8, 12, 13 or 14 digits with a valid check digit), or `null` when none is set. A variant may carry its own: see ProductVariant.gtin. |
| `id` | `string` | No | The product id as a prefixed wire id (e.g. `'prod_...'`). Stable; safe to store and link. |
| `images` | `string[]` | No | Ordered public image URLs, or an empty array when the product has no images. |
| `isFallback` | `boolean` | Yes | `true` when the record is served in another locale because `requestedLocale` has no translation.<br>Absent when the request carried no locale. Never `true` with `fallback: false`. |
| `keywords` | `string \| null` | No | Comma-separated SEO keywords (e.g. `'mug, ceramic, kitchen'`), or `null` when none are set. Suited to `<meta name="keywords">`. |
| `kind` | `"standard" \| "bookable"` | No | `'standard'` for a regular product, `'bookable'` for one booked by time slot through `lynkow.reservations`. |
| `locale` | `string` | Yes | BCP 47 locale code of the record actually served (e.g. `'en'`, `'fr'`).<br>Equals `requestedLocale` unless `isFallback` is `true`. |
| `mpn` | `string \| null` | No | Manufacturer Part Number, or `null` when none is set. A variant may carry its own: see ProductVariant.mpn. |
| `noFollow` | `boolean` | No | When `true`, the merchant asked search engines not to follow the links of this product: render `<meta name="robots" content="nofollow">`. Never `null`. |
| `noIndex` | `boolean` | No | When `true`, the merchant asked search engines not to index this product: render `<meta name="robots" content="noindex">`. Never `null`. |
| `ogDescription` | `string \| null` | No | Open Graph description used when the product is shared on social networks, or `null` when unset (fall back to `seoDescription`). |
| `ogImage` | `string \| null` | No | Public Open Graph image URL, or `null` when none is set (fall back to Product.thumbnail). |
| `ogImageAlt` | `string \| null` | No | Alternative text of the Open Graph image, suited to `og:image:alt`, or `null` when none is set. |
| `ogTitle` | `string \| null` | No | Open Graph title used when the product is shared on social networks, or `null` when unset (fall back to `seoTitle`, then `title`). |
| `path` | `string` | No | URL path of the product page in the requested locale (e.g. `'/fr/produits/mug-bleu'`),<br>built from the site's commerce URL settings. Link with it rather than building a URL<br>from the slug. |
| `priceCents` | `number` | No | Price in cents, VAT included: equals `priceGrossCents`. With variants, it is the base<br>"from" price, and each ProductVariant.priceCents is the selling price. |
| `priceDisplayMode` | `"inclusive" \| "exclusive"` | No | How the merchant wants prices shown, one value for the whole site: `'inclusive'` shows<br>`priceGrossCents`, `'exclusive'` shows `priceNetCents`. It never changes the amount charged. |
| `priceGrossCents` | `number` | No | Product.priceCents with VAT, at the rate of the request's `country`, else the<br>merchant's country (always the merchant's for a bookable product). The cart applies<br>the delivery country's rate instead. |
| `priceNetCents` | `number` | No | Product.priceCents without VAT, in cents. Show it when<br>Product.priceDisplayMode is `'exclusive'`. |
| `requestedLocale` | `string` | Yes | BCP 47 locale code the request asked for (e.g. `'de'`), as sent in the<br>`locale` request option or the client's configured locale.<br>Absent when the request carried no locale. |
| `seoDescription` | `string \| null` | No | SEO meta description, or `null` when unset. |
| `seoTitle` | `string \| null` | No | SEO title override, or `null` when unset (fall back to `title`). |
| `sku` | `string \| null` | No | Catalogue SKU, or `null` when unset. |
| `slug` | `string` | No | Slug in the served locale: the translated slug when the product is translated, else<br>the source slug. Accepted by `products.getBySlug()`. |
| `structuredData` | `CommerceStructuredData` | Yes | The product page's structured data (JSON-LD). Present on the single read<br>(`products.getBySlug()`) only, never on the rows of `products.list()`. |
| `thumbnail` | `string \| null` | No | The primary image URL (mirror of `images[0]`), or `null` when there are no images. |
| `title` | `string` | No | Product title in the served locale (see LocaleResolution.locale). Always non-empty for a published product. |
| `twitterCard` | `"summary" \| "summary_large_image" \| "app" \| "player" \| null` | No | `<meta name="twitter:card">` value used when the product is shared on social networks, or `null` when unset. |
| `variants` | `ProductVariant[]` | 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 |
| --- | --- | --- | --- |
| `alt` | `string \| null` | No | Merchant-provided alt text for the image, or `null` when unset. Use it for `<img alt>`; fall back to the product `title` when null. Max 255 chars. |
| `caption` | `string \| null` | No | Merchant-provided caption, or `null` when unset. Suited to a `<figcaption>`. Max 500 chars. |
| `url` | `string` | No | Public image URL, served from the Lynkow media library. Same value as the corresponding `images[n]` entry. |


---

## `ProductsFilters`

*Interface*

Filters for a storefront product listing. All optional.

| Property | Type | Optional | Description |
| --- | --- | --- | --- |
| `category` | `string` | Yes | Restrict to one category and its visible sub-categories: its `'pcat_...'` wire id or its slug. |
| `collection` | `string` | Yes | Restrict to one collection: its `'col_...'` wire id or its slug. |
| `kind` | `"standard" \| "bookable"` | Yes | Restrict to a product kind: `'standard'` or `'bookable'`. |
| `limit` | `number` | Yes | Items per page. Defaults to 20, max 100. |
| `page` | `number` | Yes | Page number (1-based). Defaults to 1. |
| `search` | `string` | Yes | Case-insensitive text matched within the title or slug (the translated ones with a `locale`). Max 200 characters. |
| `sortBy` | `"title" \| "price_cents" \| "created_at"` | Yes | Sort field: `'title'`, `'price_cents'`, or `'created_at'`. Defaults to `'created_at'`. |
| `sortOrder` | `"asc" \| "desc"` | Yes | Sort direction: `'asc'` or `'desc'`. Defaults to `'desc'`. |


---

## `ProductsListResponse`

*Interface*

Paginated product list response: the products on the page plus pagination metadata.

| Property | Type | Optional | Description |
| --- | --- | --- | --- |
| `data` | `Product[]` | No | The published products on this page. |
| `meta` | `PaginationMeta` | No | Pagination info: `total`, `currentPage`, `lastPage` and `perPage`. |


---

## `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 |
| --- | --- | --- | --- |
| `availability` | `"out_of_stock" \| "in_stock"` | 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. |
| `compareAtPriceCents` | `number \| null` | No | Optional strikethrough "was" price in cents, VAT included like<br>ProductVariant.priceCents: equal to ProductVariant.compareAtPriceGrossCents.<br>`null` when there is no comparison price. |
| `compareAtPriceGrossCents` | `number \| null` | No | ProductVariant.compareAtPriceCents with VAT, in cents: equal to `compareAtPriceCents`, `null` when there is no comparison price. |
| `compareAtPriceNetCents` | `number \| null` | No | ProductVariant.compareAtPriceCents without VAT, in cents, or `null` when there is no comparison price. |
| `gallery` | `ProductGalleryImage[]` | 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. |
| `gtin` | `string \| null` | No | Global Trade Item Number of the variant (8, 12, 13 or 14 digits with a valid check digit), or `null` when the variant uses the product's Product.gtin. |
| `id` | `string` | No | The variant id as a prefixed wire id (e.g. `'var_...'`). Stable; safe to store and link. |
| `mpn` | `string \| null` | No | Manufacturer Part Number of the variant, or `null` when the variant uses the product's Product.mpn. |
| `optionValues` | `ProductVariantOptionValue[]` | No | The option values this variant represents, ordered by option position. |
| `position` | `number` | No | Display order within the product (ascending). |
| `priceCents` | `number` | No | Selling price of the variant in cents, VAT included: equals `priceGrossCents`. |
| `priceDisplayMode` | `"inclusive" \| "exclusive"` | No | Same value as Product.priceDisplayMode: which price to show. It never changes the amount charged. |
| `priceGrossCents` | `number` | No | ProductVariant.priceCents with VAT, at the rate of the request's `country`, else<br>the merchant's country. The cart applies the delivery country's rate instead. |
| `priceNetCents` | `number` | No | ProductVariant.priceCents without VAT, in cents. Show it when<br>ProductVariant.priceDisplayMode is `'exclusive'`. |
| `sku` | `string \| null` | No | Variant SKU, or `null` when unset. |
| `title` | `string` | No | Display title, e.g. `'M / Red'`. |


---

## `ProductVariantOptionValue`

*Interface*

One selected option value carried by a variant (e.g. Size: M).

| Property | Type | Optional | Description |
| --- | --- | --- | --- |
| `option` | `string` | No | The option (axis) label, e.g. `'Size'`. |
| `value` | `string` | No | The selected value label, e.g. `'M'`. |