Get a published product

Returns one published product by its `prod_` id or its slug. An unknown or unpublished product returns 404. With `locale`, the slug can be the product's translated slug. The product is served in the first language of its chain that it is written in: the requested locale, its base language, the site's default locale, then the product's own language. With `fallback=false`, a product not written in the requested locale returns 404. A product hidden in the requested or served language returns 404. With `market` (a `mkt_` id), a product hidden in that market returns 404. An unknown market filters nothing. Prices include VAT where it applies, at the rate of `country`, else of the merchant's country. A bookable product is priced at the merchant country's rate. `structuredData.graph` is the page's JSON-LD graph, ready for an `application/ld+json` script. > **Note:** This endpoint requires the e-commerce feature to be enabled on your site.

Required access
Send
  • Publishable keyX-Lynkow-Pk
Site access
GET/products/{idOrSlug}
Base URLhttps://api.lynkow.com/storefront/{siteId}

Path parameters

idOrSlug
string
required

Product identifier (prod_ prefixed id) or product slug. Only a product published on the site resolves

Query parameters

country
string

The buyer's country (ISO 3166-1 alpha-2 code) whose VAT rate the prices are shown at. A value that cannot be used is ignored and the merchant's country applies

fallback
boolean

Whether a missing translation may be served from another locale. On the storefront it defaults to true: an item with no translation in the requested locale is served through the locale chain (the requested locale, its base language, the site default locale, then a locale the item exists in) and flagged by isFallback. false keeps the requested locale only: on a multi-language site a list drops the other items and a single-item read with none is a 404, unless the operation serves default values. On the /v1 search endpoints it defaults to false. A value that is not a boolean is a 422

Default: true

locale
string

BCP 47 locale code (e.g. "en", "fr")

market
string

Market identifier (mkt_ prefixed id): a product hidden in that market returns 404. An unknown, inactive or malformed value is ignored

Feedback

Was this page helpful?