Category Hierarchy Output

A complete category hierarchy with the path from root to leaf and the depth.

JSON example 

1{
2  "categoryId": "0ZGRM0000000Xyz1AA",
3  "depth": 2,
4  "path": [
5    {
6      "id": "0ZGRM0000000Root1AA",
7      "name": "All Products",
8      "parentCategoryId": null,
9      "level": 1
10    },
11    {
12      "id": "0ZGRM0000000Xyz1AA",
13      "name": "Beverages",
14      "parentCategoryId": "0ZGRM0000000Root1AA",
15      "level": 2
16    }
17  ]
18}

Properties 

Property NameTypeDescriptionFilter Group and VersionAvailable Version
categoryIdStringThe ID of the leaf category.Small, 68.068.0
depthIntegerThe hierarchy depth, where 1 is the root, 2 is a child, and so on.Small, 68.068.0
pathCategory Path Node Output[]The complete path from the root category to this category.Small, 68.068.0