younifyd
Menu

List navigation trees

List navigation trees

GET/v1/navigation/trees

Use it in a workflow

  1. Add a step and choose the SCAYLE Storefront connector.
  2. Pick the List navigation trees action (under navigation-v1).
  3. Fill in the fields below, then reference the result from later steps as {{listNavigationTrees.response.data}}.

Request

Query parameters

shopIdinteger

The numeric ID of the shop to resolve the request against. Every shop in a multi-shop setup has a unique `shopId`. **Priority:** `shopId` (or the `X-Shop-Id` header) takes precedence over all other shop identification parameters. When `shopId` is present, `shopKey`, `countryCode`, and `locale` are ignored entirely. **Alternative:** If neither `shopId` nor `X-Shop-Id` is provided, you must supply all three of `shopKey`, `countryCode`, and `locale` together to identify the shop.

shopKeystring

The unique string key identifying the shop (e.g. `sa`, `de`). **Must be provided together with `countryCode` and `locale`** as a query-parameter alternative to `shopId`. All three parameters are mandatory when using this identification method — omitting any one of them results in a validation error. Ignored when `shopId` or the `X-Shop-Id` header is present.

countryCodestring

The ISO 3166-1 alpha-2 country code of the shop (e.g. `DE`, `AT`). Automatically normalised to uppercase. **Must be provided together with `shopKey` and `locale`** as a query-parameter alternative to `shopId`. All three parameters are mandatory when using this identification method — omitting any one of them results in a validation error. Ignored when `shopId` or the `X-Shop-Id` header is present.

localestring

The locale of the shop (e.g. `en_GB`, `de_DE`). Used to validate that the resolved shop's locale matches the requested locale. **Must be provided together with `shopKey` and `countryCode`** as a query-parameter alternative to `shopId`. All three parameters are mandatory when using this identification method — omitting any one of them results in a validation error. Ignored when `shopId` or the `X-Shop-Id` header is present.

filters[visibleAt]string

Filters the navigation tree to include only items that are visible at the specified timestamp. An item is considered **visible** at the given `filters[visibleAt]` time if all of these rules apply: - If both `visibleFrom` and `visibleTo` are unset, the item is always included. - If only `visibleFrom` is set, the item is included if `visibleAt` is on or after `visibleFrom`. - If only `visibleTo` is set, the item is included if `visibleAt` is before `visibleTo`. - If both `visibleFrom` and `visibleTo` are set, the item is included if `visibleAt` is within the interval `[visibleFrom, visibleTo)`. The filtering is **strictly hierarchical**: - If a parent item is filtered out (i.e., not visible), none of its children will appear—even if those children would be visible on their own. - This ensures the returned tree only contains fully visible paths from the root. This filter supports half-open timeframes, meaning visibility intervals can be open-ended on either side. __Note__: The value of `filters[visibleAt]` must be an RFC3339 datetime string. For example: `"2020-10-13T00:00:00Z"`.

Default null

witharray<string>

__Selecting included navigation item data__ By default, only basic navigation item data is included in the response. Use the `with` parameters (see below) to include more navigation item data. To see all available navigation item data, for example, for debugging, you might use unrestricted `with` parameters: `?with=category,category.shopLevelCustomData,category.countryLevelCustomData,customData`. Beware of using these unrestricted `with` parameters in production applications. It can result in slower performance, as download sizes for full navigation item lists can be quite big. Including only exactly what is needed will be best for performance when downloading and parsing the result. A typical request for a navigation list optimized for maximum performance is, for example, `?with=category,customData:key(displayName|icon)`. See the table below for all available `with` parameter options and their effects. Include | includes ------------ | ------------- `category` | includes category as an object into the navigation-item `category.productSorting` | includes the product sorting configuration of the category, which defines how products are ordered within the category. Reflects the customer segment of the shopper identified by `X-Customer-Token`. `category.seo` | includes the SEO metadata for the category (meta title, meta description, SEO headline, SEO description, canonical URL, and search engine indexing flag). `category.shopLevelCustomData` | includes shop-level custom data of the category. `category.shopLevelCustomData:key()` | includes shop-level custom data of the category with empty object. `category.shopLevelCustomData:key(keyA\|...)` | includes shop-level custom data of the category with only specified keys. `category.countryLevelCustomData` | includes country-level custom data of the category. `category.countryLevelCustomData:key()` | includes country-level custom data of the category with empty object. `category.countryLevelCustomData:key(keyA\|...)` | includes country-level custom data of the category with only specified keys. `customData` | includes custom data of the navigation item. `customData:key()` | includes custom data of the navigation item with empty object. `customData:key(keyA\|...)` | includes custom data of the navigation item with only specified keys.

Default []

Headers

X-Shop-Idinteger

The numeric ID of the shop to resolve the request against. Every shop in a multi-shop setup has a unique shop ID. **Priority:** `X-Shop-Id` (or the `shopId` query parameter) takes precedence over all other shop identification parameters. When this header is present, `X-Shop-Key`, `X-Country-Code`, and `X-Locale` are ignored entirely. **Alternative:** If neither `X-Shop-Id` nor `shopId` is provided, you must supply all three of `X-Shop-Key`, `X-Country-Code`, and `X-Locale` together to identify the shop.

Default null

X-Shop-Keystring

The unique string key identifying the shop (e.g. `sa`, `de`). **Must be provided together with `X-Country-Code` and `X-Locale`** as a header-based alternative to `X-Shop-Id`. All three headers are mandatory when using this identification method — omitting any one of them results in a validation error. Ignored when `X-Shop-Id` or the `shopId` query parameter is present.

X-Country-Codestring

The ISO 3166-1 alpha-2 country code of the shop (e.g. `DE`, `AT`). Automatically normalised to uppercase. **Must be provided together with `X-Shop-Key` and `X-Locale`** as a header-based alternative to `X-Shop-Id`. All three headers are mandatory when using this identification method — omitting any one of them results in a validation error. Ignored when `X-Shop-Id` or the `shopId` query parameter is present.

X-Localestring

The locale of the shop (e.g. `en_GB`, `de_DE`). Used to validate that the resolved shop's locale matches the requested locale. **Must be provided together with `X-Shop-Key` and `X-Country-Code`** as a header-based alternative to `X-Shop-Id`. All three headers are mandatory when using this identification method — omitting any one of them results in a validation error. Ignored when `X-Shop-Id` or the `shopId` query parameter is present.

X-Customer-Tokenstring

A JWT identifying the customer. When `category.productSorting` is included and the customer belongs to a customer segment with its own sorting for a category, `category.productSorting` returns that segment's keys, the same keys `GET /v1/products` applies. Without it, or with an invalid or expired token, the default keys are returned and the request does not fail.

Response

Returns 200 with a array<object>. Read it in later steps with {{listNavigationTrees.response.data.<field>}}.

Need more? See the SCAYLE Storefront guide for connection setup and behaviour shared by every action.