POST api/client/SelectPreferences

Возвращает "любимые" категории товаров

Request Information

URI Parameters

None.

Body Parameters

SelectPreferencesRequest
NameDescriptionTypeAdditional information
ClientID

ID участника программы лояльности

integer

None.

CategoryID

ID категории

integer

None.

Remove

Удалено?

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "ClientID": 1,
  "CategoryID": 2,
  "Remove": true
}

application/xml, text/xml

Sample:
<SelectPreferencesRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LCManagerPartner.Models">
  <CategoryID>2</CategoryID>
  <ClientID>1</ClientID>
  <Remove>true</Remove>
</SelectPreferencesRequest>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

SelectPreferencesResponse
NameDescriptionTypeAdditional information
ErrorCode

Код ошибки

integer

None.

Message

Сообщение об ошибке

string

None.

Response Formats

application/json, text/json

Sample:
{
  "ErrorCode": 1,
  "Message": "sample string 2"
}

application/xml, text/xml

Sample:
<SelectPreferencesResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LCManagerPartner.Models">
  <ErrorCode>1</ErrorCode>
  <Message>sample string 2</Message>
</SelectPreferencesResponse>