This method returns list of Categories for a specific customer. The client makes a GET request providing input parameters BusinessChannelID , Customer ID 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 CATEGORY BY CUSTOMER | |
| HTTP METHOD | GET | |
| RESPONSE TYPE | XML | |
| URL | https://api.csm.next4biz.net/services/CategoryService/{CompanyID}/category.json/{BusinessChannelD}/{CustomerID}/{LangID} | https://api.csm.next4biz.net/services/CategoryService/{CompanyID}/category.xml/{BusinessChannelD}/{CustomerID}/{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/json | Authorization: Basic {base64 encoded username:password} Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 Content-Type: application/xml |
<?xml version="1.0" encoding="utf-8"?>
<ArrayOfCategory
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<Category>
<CategoryID>{CategoryID}</CategoryID>
<CategoryName>{CategoryName}</CategoryName>
</Category>
<Category>
<CategoryID>{CategoryID}</CategoryID>
<CategoryName>{CategoryName}</CategoryName>
</Category>
<Category>
<CategoryID>{CategoryID}</CategoryID>
<CategoryName>{CategoryName}</CategoryName>
</Category>
</ArrayOfCategory>
{
"Category": [
{
"CategoryID": "{CategoryID}",
"CategoryName": "{CategoryName}"
},
{
"CategoryID": "{CategoryID}",
"CategoryName": "{CategoryName}"
},
{
"CategoryID": "{CategoryID}",
"CategoryName": "{CategoryName}"
}
]
}