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`.

Required access
No credentialOptional: publishable keySite access
GET/resolve
Base URLhttps://api.lynkow.com/storefront/{siteId}

Query parameters

path
string
required

The URL path to resolve, such as `/fr/guides/article`. Only a non-default locale carries a prefix. A leading slash is implied.

country
string

Buyer'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.

fallback
boolean

With `locale`, `false` makes a page not translated into the locale of `path` a miss. Single-language sites ignore it

Default: true

include
string

Set to `record` to get a commerce page's full record and its `structuredData.graph`. Requires `X-Lynkow-Pk`. Other values are ignored.

limit
number

When `path` resolves to a category, the number of its contents per page

Default: 500

Max: 500

Min: 1

locale
string

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

market
string

Market identifier (mkt_ prefixed id). A product hidden there misses and is left out of a record's structured data. Unusable values are ignored.

page
number

When `path` resolves to a category, the page of its contents, starting at 1

Default: 1

Min: 1

Feedback

Was this page helpful?