Get a published product

Returns one published product by its `prod_` id or its slug, with `structuredData.graph`, the page's JSON-LD graph. With `locale`, the slug can also be the translated slug, and the product is served in the requested locale or its fallback chain: base language, site default locale, then its own language. Prices include VAT where it applies, for a delivery to `country`, else to the merchant's country, which bookable products always use. Errors: 404 `PRODUCT_NOT_FOUND` for an unknown or unpublished product, or one hidden in the language read (the default locale without `locale`) or in `market`. > **Note:** Available only on sites with e-commerce enabled.

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

Delivery country (ISO 3166-1 alpha-2) the prices include VAT for. An unusable value falls back to the merchant's country

fallback
boolean

With `locale`, `false` returns 404 when the item is not translated into the requested locale. Single-language sites ignore it

Default: true

locale
string

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

market
string

Market `mkt_` id: a product hidden in that market returns 404. An unknown, draft or malformed value is ignored

Feedback

Was this page helpful?