POST api/client/ClientUpdate
Обновление профиля Участника программы лояльности
Request Information
URI Parameters
None.
Body Parameters
SetClientUpdateRequest| Name | Description | Type | Additional information |
|---|---|---|---|
| Client |
идентификатор Участника программы лояльности |
integer |
None. |
| Name |
имя |
string |
None. |
| Surname |
фамилия |
string |
None. |
| Patronymic |
отчество |
string |
None. |
| AllowSms |
получать уведомления по SMS |
boolean |
None. |
| AllowEmail |
получать уведомления по E-mail |
boolean |
None. |
| Birthdate |
дата рождения |
date |
None. |
| Phone |
номер телефона |
integer |
None. |
|
адрес электронной почты |
string |
None. |
|
| Gender |
пол (1 - муж., -1 - жен., 0 - не определен) |
integer |
None. |
| PosCode |
Код торговой точки, которая инициирует изменение данных |
string |
None. |
| AllowEmailOnlineCheque |
Признак разрешения на отправку онлайн-чеков на e-mail |
boolean |
None. |
| ContragentId |
Идентификатор контрагента во внешней системе, которого связывают с клиентом |
string |
None. |
| Operator |
Идентификатор оператора программы лояльности |
integer |
None. |
| Token |
Токен пользователя, который инициирует данный запрос |
integer |
None. |
| SiteCode |
Уникальный код виджета по продаже подарочных сертификатов, который инициирует запрос |
string |
None. |
Request Formats
application/json, text/json
{
"Client": 1,
"Name": "sample string 2",
"Surname": "sample string 3",
"Patronymic": "sample string 4",
"AllowSms": true,
"AllowEmail": true,
"Birthdate": "2025-10-30T05:04:59.6543877+03:00",
"Phone": 1,
"Email": "sample string 5",
"Gender": 1,
"PosCode": "sample string 6",
"AllowEmailOnlineCheque": true,
"ContragentId": "sample string 7",
"Operator": 1,
"Token": 1,
"SiteCode": "sample string 8"
}
application/xml, text/xml
<SetClientUpdateRequest 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 8</SiteCode> <Token xmlns="http://schemas.datacontract.org/2004/07/LCManagerPartner.Implementation.Abstractions">1</Token> <AllowEmail>true</AllowEmail> <AllowEmailOnlineCheque>true</AllowEmailOnlineCheque> <AllowSms>true</AllowSms> <Birthdate>2025-10-30T05:04:59.6543877+03:00</Birthdate> <Client>1</Client> <ContragentId>sample string 7</ContragentId> <Email>sample string 5</Email> <Gender>1</Gender> <Name>sample string 2</Name> <Patronymic>sample string 4</Patronymic> <Phone>1</Phone> <PosCode>sample string 6</PosCode> <Surname>sample string 3</Surname> </SetClientUpdateRequest>
application/x-www-form-urlencoded
Sample not available.
Response Information
Resource Description
SetClientUpdateResponse| Name | Description | Type | Additional information |
|---|---|---|---|
| ErrorCode |
код ошибки |
integer |
None. |
| Message |
сообщение об ошибке |
string |
None. |
Response Formats
application/json, text/json
{
"ErrorCode": 1,
"Message": "sample string 2"
}
application/xml, text/xml
<SetClientUpdateResponse 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> </SetClientUpdateResponse>