POST api/client/ClientCampaignSelect
Добавление\удаление клиента из акции
Request Information
URI Parameters
None.
Body Parameters
ClientCampaignSelectRequest| Name | Description | Type | Additional information |
|---|---|---|---|
| ClientID |
ID участника программы лояльности |
integer |
None. |
| CampaignID |
ID акции |
integer |
None. |
| Remove |
Добавление \ удаление? |
boolean |
None. |
Request Formats
application/json, text/json
Sample:
{
"ClientID": 1,
"CampaignID": 2,
"Remove": true
}
application/xml, text/xml
Sample:
<ClientCampaignSelectRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LCManagerPartner.Models"> <CampaignID>2</CampaignID> <ClientID>1</ClientID> <Remove>true</Remove> </ClientCampaignSelectRequest>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
ClientCampaignSelectResponse| Name | Description | Type | Additional 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:
<ClientCampaignSelectResponse 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> </ClientCampaignSelectResponse>