---
schema_version: "1"
id: 438c2e99aa5733a784bac360836e784db0b85239461b5fccd8b15aaffe6c725f
title: Category Hierarchy Output
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/industries/advanced-orders-for-telesales/references/responses/category-hierarchy-output.md
canonical_url: https://developer.salesforce.com/docs/industries/advanced-orders-for-telesales/references/advanced-orders-for-telesales-rest/category-hierarchy-output.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 416797002294cb83de635d570f23611eb107560faf98dc2dce34cd714aab337f
products:
  - Advanced Orders for Telesales Developer Guide
  - Industries Developer Documentation
---
# Category Hierarchy Output

A complete category hierarchy with the path from root to leaf and the depth.

## JSON example

```json
{
  "categoryId": "0ZGRM0000000Xyz1AA",
  "depth": 2,
  "path": [
    {
      "id": "0ZGRM0000000Root1AA",
      "name": "All Products",
      "parentCategoryId": null,
      "level": 1
    },
    {
      "id": "0ZGRM0000000Xyz1AA",
      "name": "Beverages",
      "parentCategoryId": "0ZGRM0000000Root1AA",
      "level": 2
    }
  ]
}
```

## Properties

| Property Name | Type                                                                     | Description                                                        | Filter Group and Version | Available Version |
| ------------- | ------------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------ | ----------------- |
| `categoryId`  | String                                                                   | The ID of the leaf category.                                       | Small, 68.0              | 68.0              |
| `depth`       | Integer                                                                  | The hierarchy depth, where 1 is the root, 2 is a child, and so on. | Small, 68.0              | 68.0              |
| `path`        | [Category Path Node Output](https://developer.salesforce.com/docs/industries/advanced-orders-for-telesales/references/responses/category-path-node-output.md)[] | The complete path from the root category to this category.         | Small, 68.0              | 68.0              |
