POST api/client/ChangeClient

Изменение данных Участника по заданному идентификатору

Request Information

URI Parameters

None.

Body Parameters

ChangeClientRequest
NameDescriptionTypeAdditional information
ClientData

информация о клиенте

Client

None.

PosCode

Код торговой точки, которая инициирует изменение данных

string

None.

AllowEmailOnlineCheque

Признак разрешения на отправку онлайн-чеков на e-mail

boolean

None.

Operator

Идентификатор оператора программы лояльности

integer

None.

Token

Токен пользователя, который инициирует данный запрос

integer

None.

SiteCode

Уникальный код виджета по продаже подарочных сертификатов, который инициирует запрос

string

None.

Request Formats

application/json, text/json

Sample:
{
  "ClientData": {
    "id": 1,
    "password": "sample string 2",
    "firstname": "sample string 3",
    "middlename": "sample string 4",
    "lastname": "sample string 5",
    "gender": 1,
    "birthdate": "2022-08-16T22:16:01.2194765+03:00",
    "address": "sample string 6",
    "haschildren": true,
    "description": "sample string 8",
    "phone": 9,
    "email": "sample string 10",
    "allowsms": true,
    "allowemail": true,
    "balance": 11.0,
    "allowpush": true,
    "lasturchaseamount": 12.0,
    "lastpurchasedate": "2022-08-16T22:16:01.2194765+03:00",
    "CardNumber": 14,
    "CardStatus": "sample string 15",
    "CardFullBalance": 16.0,
    "BonusStaff": 1.0,
    "BonusVip": 1.0
  },
  "PosCode": "sample string 1",
  "AllowEmailOnlineCheque": true,
  "Operator": 1,
  "Token": 1,
  "SiteCode": "sample string 2"
}

application/xml, text/xml

Sample:
<ChangeClientRequest 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>
  <AllowEmailOnlineCheque>true</AllowEmailOnlineCheque>
  <ClientData>
    <BonusStaff>1</BonusStaff>
    <BonusVip>1</BonusVip>
    <CardFullBalance>16</CardFullBalance>
    <CardNumber>14</CardNumber>
    <CardStatus>sample string 15</CardStatus>
    <address>sample string 6</address>
    <allowemail>true</allowemail>
    <allowpush>true</allowpush>
    <allowsms>true</allowsms>
    <balance>11</balance>
    <birthdate>2022-08-16T22:16:01.2194765+03:00</birthdate>
    <description>sample string 8</description>
    <email>sample string 10</email>
    <firstname>sample string 3</firstname>
    <gender>1</gender>
    <haschildren>true</haschildren>
    <id>1</id>
    <lastname>sample string 5</lastname>
    <lastpurchasedate>2022-08-16T22:16:01.2194765+03:00</lastpurchasedate>
    <lasturchaseamount>12</lasturchaseamount>
    <middlename>sample string 4</middlename>
    <password>sample string 2</password>
    <phone>9</phone>
  </ClientData>
  <PosCode>sample string 1</PosCode>
</ChangeClientRequest>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

ChangeClientResponse
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:
<ChangeClientResponse 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>
</ChangeClientResponse>