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.
/product-categories/treehttps://api.lynkow.com/storefront/{siteId}Query parameters
fallbackbooleanWith `locale`, `false` drops each category not translated into the requested locale, with its branch. Single-language sites ignore it
localestringBCP 47 locale code (e.g. "en", "fr")