GET v1/customer-categories
Gets list of all available active/inactive customer categories.
Request Information
URI Parameters
None.
Body Parameters
None.
Response Information
Resource Description
SearchResultOfCategoryName | Description | Type | Additional information |
---|---|---|---|
TotalCount | integer |
None. |
|
Data | Collection of Category |
None. |
Response Formats
application/json, text/json
Sample:
{ "totalCount": 1, "data": [ { "id": 1, "name": "sample string 2", "parent": { "id": 1, "name": "sample string 2" }, "active": true }, { "id": 1, "name": "sample string 2", "parent": { "id": 1, "name": "sample string 2" }, "active": true } ] }
application/xml, text/xml
Sample:
<SearchResultOfCategory3KdDVibf xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BAPI.Models"> <Data xmlns:d2p1="http://schemas.datacontract.org/2004/07/BAPI.Models.Core"> <d2p1:Category> <d2p1:Active>true</d2p1:Active> <d2p1:Id>1</d2p1:Id> <d2p1:Name>sample string 2</d2p1:Name> <d2p1:Parent xmlns:d4p1="http://schemas.datacontract.org/2004/07/Striven.Common.Models"> <d4p1:_x003C_Id_x003E_k__BackingField>1</d4p1:_x003C_Id_x003E_k__BackingField> <d4p1:_x003C_Name_x003E_k__BackingField>sample string 2</d4p1:_x003C_Name_x003E_k__BackingField> </d2p1:Parent> </d2p1:Category> <d2p1:Category> <d2p1:Active>true</d2p1:Active> <d2p1:Id>1</d2p1:Id> <d2p1:Name>sample string 2</d2p1:Name> <d2p1:Parent xmlns:d4p1="http://schemas.datacontract.org/2004/07/Striven.Common.Models"> <d4p1:_x003C_Id_x003E_k__BackingField>1</d4p1:_x003C_Id_x003E_k__BackingField> <d4p1:_x003C_Name_x003E_k__BackingField>sample string 2</d4p1:_x003C_Name_x003E_k__BackingField> </d2p1:Parent> </d2p1:Category> </Data> <TotalCount>1</TotalCount> </SearchResultOfCategory3KdDVibf>