Get All Categories

This method returns list of all categories in the system. The client makes a GET request providing input parameters BusinessChannelID  and LangID in the request url. The output will be either in json or xml format depending on the request type.

Name Value
REST-API METHOD GET ALL CATEGORIES
HTTP METHOD GET
RESPONSE TYPE XML
URL https://api.csm.next4biz.net/services/CategoryService/{CompanyID}/category.json/{BusinessChannelD}/{LangID}https://api.csm.next4biz.net/services/CategoryService/{CompanyID}/category.xml/{BusinessChannelD}/{LangID}
REQUEST HEAD Authorization: Basic {base64 encoded username:password} Accept: text/html,application/xhtml+json,application/json;q=0.9,*/*;q=0.8 Content-Type: application/jsonAuthorization: Basic {base64 encoded username:password} Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 Content-Type: application/xml
  • XML
  • JSON
ENDPOINT DEFINITION
GET
RESPONSE BODY
                                    
                                        <?xml version="1.0" encoding="utf-8"?>
<ArrayOfCategory>
  <Category>
    <CategoryID>{CategoryID}</CategoryID>
    <CategoryName>{CategoryName}</CategoryName>
    <ParentCategoryID>{ParentCategoryID}</ParentCategoryID>
  </Category>
  <Category>
    <CategoryID>{CategoryID}</CategoryID>
    <CategoryName>{CategoryName}</CategoryName>
    <ParentCategoryID>{ParentCategoryID}</ParentCategoryID>
  </Category>
</ArrayOfCategory>
                                    
                                
                                                                        
                                        {
    "Category": [
        {
            "CategoryID": "{CategoryID}",
            "CategoryName": "{CategoryName}",
            "ParentCategoryID": "{ParentCategoryID}"
        },
        {
            "CategoryID": "{CategoryID}",
            "CategoryName": "{CategoryName}",
            "ParentCategoryID": "{ParentCategoryID}"
        }
    ]
}