GET productcategories

This call allows you to return the root categories and their immediate children.

Request Information

URI Parameters

None.

Body Parameters

None.

Response Information

Resource Description

This call allows you to return the root categories and their immediate children.

Collection of Object

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "ChildCategories": [
      {
        "CategoryID": 2,
        "CategoryName": "T-Shirts"
      },
      {
        "CategoryID": 5,
        "CategoryName": "Trousers"
      }
    ],
    "CategoryFullPath": "Clothes",
    "CategoryID": 1,
    "CategoryName": "Clothes"
  },
  {
    "ChildCategories": [
      {
        "CategoryID": 9,
        "CategoryName": "Cameras"
      }
    ],
    "CategoryFullPath": "Electronics",
    "CategoryID": 8,
    "CategoryName": "Electronics"
  }
]

application/xml, text/xml

Sample:
<ArrayOfCategoryModel xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <CategoryModel>
    <CategoryID>1</CategoryID>
    <CategoryName>Clothes</CategoryName>
    <ChildCategories>
      <CategoryBaseModel>
        <CategoryID>2</CategoryID>
        <CategoryName>T-Shirts</CategoryName>
      </CategoryBaseModel>
      <CategoryBaseModel>
        <CategoryID>5</CategoryID>
        <CategoryName>Trousers</CategoryName>
      </CategoryBaseModel>
    </ChildCategories>
    <CategoryFullPath>Clothes</CategoryFullPath>
  </CategoryModel>
  <CategoryModel>
    <CategoryID>8</CategoryID>
    <CategoryName>Electronics</CategoryName>
    <ChildCategories>
      <CategoryBaseModel>
        <CategoryID>9</CategoryID>
        <CategoryName>Cameras</CategoryName>
      </CategoryBaseModel>
    </ChildCategories>
    <CategoryFullPath>Electronics</CategoryFullPath>
  </CategoryModel>
</ArrayOfCategoryModel>