Skip to content
Guides
CatalogCategories
catalog:read

Get categories tree

Returns the store's complete category hierarchy in display order.

GET/v1/catalog/categories/tree

Returns the store's complete category hierarchy in display order.

Authorization

bearerAuth
AuthorizationBearer <token>

OAuth2 access token issued by Ecomiq Auth.

In: header

Header Parameters

x-Store-Id?string

Store the request acts on. Not needed when the token is bound to a store.

Authorization*string

OAuth 2.0 bearer token.

Response Body

application/json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

curl -X GET "https://example.com/v1/catalog/categories/tree" \  -H "x-Store-Id: <store-id>" \  -H "Authorization: Bearer <token>"
[  {    "id": "7204558912004325301",    "storeId": "7204558912004325301",    "name": "Example resource",    "slug": "example-resource",    "order": 1,    "path": "example",    "requiresSizeGuide": false,    "level": 1,    "hasChildren": false,    "children": []  }]