GET productcategories/get-full-category-tree

This call returns the root categories and all of their children. It can return a lot of data.

Request Information

URI Parameters

None.

Body Parameters

None.

Response Information

Resource Description

This call returns the root categories and all of their children. It can return a lot of data.

Collection of Object

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "ChildCategories": [
      {
        "ChildCategories": [
          {
            "ChildCategories": [],
            "CategoryFullPath": "Clothes > T-Shirts > Mens",
            "CategoryID": 3,
            "CategoryName": "Mens"
          },
          {
            "CategoryFullPath": "Clothes > T-Shirts > Womens",
            "CategoryID": 4,
            "CategoryName": "womens"
          }
        ],
        "CategoryFullPath": "Clothes > T-Shirts",
        "CategoryID": 2,
        "CategoryName": "T-Shirts"
      },
      {
        "ChildCategories": [
          {
            "ChildCategories": [],
            "CategoryFullPath": "Clothes > Trousers > Mens",
            "CategoryID": 6,
            "CategoryName": "Mens"
          },
          {
            "CategoryFullPath": "Clothes > Trousers > Womens",
            "CategoryID": 7,
            "CategoryName": "womens"
          }
        ],
        "CategoryFullPath": "Clothes > Trousers",
        "CategoryID": 5,
        "CategoryName": "Trousers"
      }
    ],
    "CategoryFullPath": "Clothes",
    "CategoryID": 1,
    "CategoryName": "Clothes"
  },
  {
    "ChildCategories": [
      {
        "ChildCategories": [
          {
            "CategoryFullPath": "Electronics > Cameras > Accessories",
            "CategoryID": 10,
            "CategoryName": "Accessories"
          },
          {
            "CategoryFullPath": "Electronics > Cameras > Digital Cameras",
            "CategoryID": 11,
            "CategoryName": "Digital Cameras"
          }
        ],
        "CategoryFullPath": "Electronics > Cameras",
        "CategoryID": 9,
        "CategoryName": "Cameras"
      }
    ],
    "CategoryFullPath": "Electronics",
    "CategoryID": 8,
    "CategoryName": "Electronics"
  }
]

application/xml, text/xml

Sample:
<ArrayOfFullCategoryModel xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <FullCategoryModel>
    <CategoryID>1</CategoryID>
    <CategoryName>Clothes</CategoryName>
    <ChildCategories>
      <FullCategoryModel>
        <CategoryID>2</CategoryID>
        <CategoryName>T-Shirts</CategoryName>
        <ChildCategories>
          <FullCategoryModel>
            <CategoryID>3</CategoryID>
            <CategoryName>Mens</CategoryName>
            <ChildCategories />
            <CategoryFullPath>Clothes &gt; T-Shirts &gt; Mens</CategoryFullPath>
          </FullCategoryModel>
          <FullCategoryModel>
            <CategoryID>4</CategoryID>
            <CategoryName>womens</CategoryName>
            <CategoryFullPath>Clothes &gt; T-Shirts &gt; Womens</CategoryFullPath>
          </FullCategoryModel>
        </ChildCategories>
        <CategoryFullPath>Clothes &gt; T-Shirts</CategoryFullPath>
      </FullCategoryModel>
      <FullCategoryModel>
        <CategoryID>5</CategoryID>
        <CategoryName>Trousers</CategoryName>
        <ChildCategories>
          <FullCategoryModel>
            <CategoryID>6</CategoryID>
            <CategoryName>Mens</CategoryName>
            <ChildCategories />
            <CategoryFullPath>Clothes &gt; Trousers &gt; Mens</CategoryFullPath>
          </FullCategoryModel>
          <FullCategoryModel>
            <CategoryID>7</CategoryID>
            <CategoryName>womens</CategoryName>
            <CategoryFullPath>Clothes &gt; Trousers &gt; Womens</CategoryFullPath>
          </FullCategoryModel>
        </ChildCategories>
        <CategoryFullPath>Clothes &gt; Trousers</CategoryFullPath>
      </FullCategoryModel>
    </ChildCategories>
    <CategoryFullPath>Clothes</CategoryFullPath>
  </FullCategoryModel>
  <FullCategoryModel>
    <CategoryID>8</CategoryID>
    <CategoryName>Electronics</CategoryName>
    <ChildCategories>
      <FullCategoryModel>
        <CategoryID>9</CategoryID>
        <CategoryName>Cameras</CategoryName>
        <ChildCategories>
          <FullCategoryModel>
            <CategoryID>10</CategoryID>
            <CategoryName>Accessories</CategoryName>
            <CategoryFullPath>Electronics &gt; Cameras &gt; Accessories</CategoryFullPath>
          </FullCategoryModel>
          <FullCategoryModel>
            <CategoryID>11</CategoryID>
            <CategoryName>Digital Cameras</CategoryName>
            <CategoryFullPath>Electronics &gt; Cameras &gt; Digital Cameras</CategoryFullPath>
          </FullCategoryModel>
        </ChildCategories>
        <CategoryFullPath>Electronics &gt; Cameras</CategoryFullPath>
      </FullCategoryModel>
    </ChildCategories>
    <CategoryFullPath>Electronics</CategoryFullPath>
  </FullCategoryModel>
</ArrayOfFullCategoryModel>