Resolve a URL path
Resolves a URL path to a content entry, a category or a commerce page; `type` says which. A commerce page matches only at its exact public URL, and a product hidden in that locale misses. A commerce hit is a pointer (`id`, `slug`, `path`), or with `include=record` and a key in `X-Lynkow-Pk`, the record. With `locale`, a path missing in its locale is served from the next locale of the chain. When nothing resolves but a redirect covers the path, the response is a 200 with `type: redirect`. Errors: 400 `VALIDATION_FIELD_REQUIRED` without `path`, 401 `STOREFRONT_KEY_REQUIRED` for a record without a valid key, 404 `PATH_NOT_FOUND`.
/resolvehttps://api.lynkow.com/storefront/{siteId}Query parameters
pathstringrequiredThe URL path to resolve, such as `/fr/guides/article`. Only a non-default locale carries a prefix. A leading slash is implied.
countrystringBuyer's country (ISO 3166-1 alpha-2) for the VAT in a product record's prices. An unusable value falls back to the merchant's country.
fallbackbooleanWith `locale`, `false` makes a page not translated into the locale of `path` a miss. Single-language sites ignore it
includestringSet to `record` to get a commerce page's full record and its `structuredData.graph`. Requires `X-Lynkow-Pk`. Other values are ignored.
limitnumberWhen `path` resolves to a category, the number of its contents per page
localestringBCP 47 locale code (e.g. "en", "fr")
marketstringMarket identifier (mkt_ prefixed id). A product hidden there misses and is left out of a record's structured data. Unusable values are ignored.
pagenumberWhen `path` resolves to a category, the page of its contents, starting at 1