---
title: "Get Product Hierarchy"
method: GET
path: "/api/beta/version/{version_id}/product-hierarchy"
tags: ["Product Hierarchy (Beta)"]
---

# Get Product Hierarchy

`GET /api/beta/version/{version_id}/product-hierarchy`

Retrieves the product hierarchy tree for a specific version.

## Path parameters

- `version_id` string, required

## Response `200`

Success. Returns the product hierarchy.

- ProductHierarchyNode[]
  - `nameOrSku` string — The SKU of the product/bundle or the name of the label.
  - `type` 'PRODUCT' | 'BUNDLE' | 'LABEL' — The type of the hierarchy item.
  - `mandatory` boolean — Whether the item is mandatory.
  - `alternative` boolean — Whether the item is an alternative choice.
  - `children` ProductHierarchyNode[] — A nested list of child items.

---

[API](https://skmtc.dev/dealhub/apis/quote-api.md) · [All operations](https://skmtc.dev/dealhub/apis/quote-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/dealhub/quote-api/revisions/c30f5b9fbfab/schema)
