POST api/v1/CustCategory
Retrieve the list of customer categories
Request Information
URI Parameters
None.
Body Parameters
ParamsName | Description | Type | Additional information |
---|---|---|---|
apiKey |
Please contact Caliq support to get your key |
string |
Required Max length: 30 |
Request Formats
application/json, text/json
Sample:
{ "apiKey": "sample string 1" }
application/xml, text/xml
Sample:
<Params xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <apiKey>sample string 1</apiKey> </Params>
Response Information
Resource Description
Returns:
200 OK Returns a list of customer categories as XML or JSON
400 Bad Request - parameters supplied cannot be properly interpreted
401 Not Authorised if supplied api key is not valid
204 No Content if there are no matching records in Caliq
503 Service Unavailable
Name | Description | Type | Additional information |
---|---|---|---|
CategoryList | Collection of CustCategory |
None. |
Response Formats
application/json, text/json
Sample:
{ "CategoryList": [ { "Code": "sample string 1", "Description": "sample string 2" }, { "Code": "sample string 1", "Description": "sample string 2" } ] }
application/xml, text/xml
Sample:
<CustCategories xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <CustCategory> <Code>sample string 1</Code> <Description>sample string 2</Description> </CustCategory> <CustCategory> <Code>sample string 1</Code> <Description>sample string 2</Description> </CustCategory> </CustCategories>