POST api/client/ClientUpdateCommunication
Обновление способа связи с клиентов
Request Information
URI Parameters
None.
Body Parameters
ClientUpdateCommunicationRequestName | Description | Type | Additional information |
---|---|---|---|
Client |
ID участника |
integer |
None. |
AllowSms |
Разрешение на получение SMS |
boolean |
None. |
AllowEmail |
Разрешение на получение писем по электронной почте |
boolean |
None. |
AllowPush |
Разрешение на получение пушей |
boolean |
None. |
AllowEmailOnlineCheque |
Признак разрешения на отправку онлайн-чеков на e-mail |
boolean |
None. |
Operator |
Идентификатор оператора программы лояльности |
integer |
None. |
Token |
Токен пользователя, который инициирует данный запрос |
integer |
None. |
SiteCode |
Уникальный код виджета по продаже подарочных сертификатов, который инициирует запрос |
string |
None. |
Request Formats
application/json, text/json
Sample:
{ "Client": 1, "AllowSms": true, "AllowEmail": true, "AllowPush": true, "AllowEmailOnlineCheque": true, "Operator": 1, "Token": 1, "SiteCode": "sample string 2" }
application/xml, text/xml
Sample:
<ClientUpdateCommunicationRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LCManagerPartner.Models"> <Operator xmlns="http://schemas.datacontract.org/2004/07/LCManagerPartner.Implementation.Abstractions">1</Operator> <SiteCode xmlns="http://schemas.datacontract.org/2004/07/LCManagerPartner.Implementation.Abstractions">sample string 2</SiteCode> <Token xmlns="http://schemas.datacontract.org/2004/07/LCManagerPartner.Implementation.Abstractions">1</Token> <AllowEmail>true</AllowEmail> <AllowEmailOnlineCheque>true</AllowEmailOnlineCheque> <AllowPush>true</AllowPush> <AllowSms>true</AllowSms> <Client>1</Client> </ClientUpdateCommunicationRequest>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
ClientUpdateCommunicationResponseName | 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:
<ClientUpdateCommunicationResponse 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> </ClientUpdateCommunicationResponse>