Get the product category tree

Returns the visible product categories as a list of root categories, each nesting its `children`, siblings in `position` order. An inactive or internal category is left out with its whole branch. With `locale`, each category is served in the requested locale or its fallback chain: base language (`fr-CA` to `fr`), site default locale, then its own language. A locale the site does not enable counts as a missing translation. Errors: 404 `PRODUCT_CATEGORY_NOT_FOUND` when the site does not use product categories, 422 for a non-boolean `fallback`. > **Note:** Available only on sites with e-commerce enabled.

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

Query parameters

fallback
boolean

With `locale`, `false` drops each category not translated into the requested locale, with its branch. Single-language sites ignore it

Default: true

locale
string

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

Feedback

Was this page helpful?