POST api/client/ClientGetPreferences
Возвращает "любимые" категории товаров Участника
Request Information
URI Parameters
None.
Body Parameters
ClientPreferencesRequestName | Description | Type | Additional information |
---|---|---|---|
ClientID |
ID участника программы лояльности |
integer |
None. |
Operator |
ID оператора |
integer |
Required |
Request Formats
application/json, text/json
Sample:
{ "ClientID": 1, "Operator": 2 }
application/xml, text/xml
Sample:
<ClientPreferencesRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LCManagerPartner.Models"> <ClientID>1</ClientID> <Operator>2</Operator> </ClientPreferencesRequest>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
ClientPreferencesResponseName | Description | Type | Additional information |
---|---|---|---|
ErrorCode |
Код ошибки |
integer |
None. |
Message |
Сообщение об ошибке |
string |
None. |
ClientPreferencesData | Collection of ClientPreferences |
None. |
Response Formats
application/json, text/json
Sample:
{ "ErrorCode": 1, "Message": "sample string 2", "ClientPreferencesData": [ { "CategoryId": 1, "CategoryName": "sample string 2", "SwitchOn": true }, { "CategoryId": 1, "CategoryName": "sample string 2", "SwitchOn": true } ] }
application/xml, text/xml
Sample:
<ClientPreferencesResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LCManagerPartner.Models"> <ClientPreferencesData> <ClientPreferences> <CategoryId>1</CategoryId> <CategoryName>sample string 2</CategoryName> <SwitchOn>true</SwitchOn> </ClientPreferences> <ClientPreferences> <CategoryId>1</CategoryId> <CategoryName>sample string 2</CategoryName> <SwitchOn>true</SwitchOn> </ClientPreferences> </ClientPreferencesData> <ErrorCode>1</ErrorCode> <Message>sample string 2</Message> </ClientPreferencesResponse>