CategoryTree

Get hierarchical category tree structure

Returns categories as a nested tree. Pass parentId to scope results to children of that category. Public endpoint.

get/category-trees

Request

Query parameters

parentIdinteger
Example:1

Return children of this category ID. Omit to return root categories.

depthinteger
Example:4

Maximum nesting depth (default: 4).

Headers

X-STOREFRONT-KEYstring required

Storefront API Key for authentication. Required for all shop/storefront API requests.

X-Localestring
Example:en

Locale code for localized data (e.g. "en", "fr", "ar"). Defaults to channel's default locale.

X-Channelstring
Example:default

Channel code (e.g. "default"). Defaults to the current channel.

X-Currencystring
Example:USD

Currency code (e.g. "USD", "EUR", "INR"). Defaults to channel's base currency.

Response

Nested category tree.

Changes

No recorded changes to this operation across all 13 revisions of this API.