GET api/{context}/inventory/Categories

Retrieve a list of all inventory Product Category Tree by WarehouseID.

Response Information

Response body formats

application/json, text/json

Sample:
[
  {
    "WarehouseID": "sample string 1",
    "CategoryID": "sample string 2",
    "ParentCategoryID": "sample string 3",
    "Levels": 4
  },
  {
    "WarehouseID": "sample string 1",
    "CategoryID": "sample string 2",
    "ParentCategoryID": "sample string 3",
    "Levels": 4
  },
  {
    "WarehouseID": "sample string 1",
    "CategoryID": "sample string 2",
    "ParentCategoryID": "sample string 3",
    "Levels": 4
  }
]

application/xml, text/xml

Sample:
<ArrayOfInventoryHierarchicalCategoryModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BDS.Web.WebApi.Models">
  <InventoryHierarchicalCategoryModel>
    <CategoryID>sample string 2</CategoryID>
    <Levels>4</Levels>
    <ParentCategoryID>sample string 3</ParentCategoryID>
    <WarehouseID>sample string 1</WarehouseID>
  </InventoryHierarchicalCategoryModel>
  <InventoryHierarchicalCategoryModel>
    <CategoryID>sample string 2</CategoryID>
    <Levels>4</Levels>
    <ParentCategoryID>sample string 3</ParentCategoryID>
    <WarehouseID>sample string 1</WarehouseID>
  </InventoryHierarchicalCategoryModel>
  <InventoryHierarchicalCategoryModel>
    <CategoryID>sample string 2</CategoryID>
    <Levels>4</Levels>
    <ParentCategoryID>sample string 3</ParentCategoryID>
    <WarehouseID>sample string 1</WarehouseID>
  </InventoryHierarchicalCategoryModel>
</ArrayOfInventoryHierarchicalCategoryModel>