POST api/values/ClientInfoArray

Запрос информации о клиенте

Request Information

URI Parameters

None.

Body Parameters

GetClientInfoRequest
NameDescriptionTypeAdditional information
Card

номер карты

integer

None.

Phone

номер телефона

integer

None.

Client

номер телефона

integer

None.

LkTerminal

Признак вызова метода из ЛК

boolean

None.

ClientIShop

Идентификатор клиента в бд интернет-магазина которого хотят проверить на существование в лояльности

integer

None.

Operator

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

integer

None.

Token

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

integer

None.

SiteCode

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

string

None.

Request Formats

application/json, text/json

Sample:
{
  "Card": 1,
  "Phone": 1,
  "Client": 1,
  "LkTerminal": true,
  "ClientIShop": 1,
  "Operator": 1,
  "Token": 1,
  "SiteCode": "sample string 1"
}

application/xml, text/xml

Sample:
<GetClientInfoRequest 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 1</SiteCode>
  <Token xmlns="http://schemas.datacontract.org/2004/07/LCManagerPartner.Implementation.Abstractions">1</Token>
  <Card>1</Card>
  <Client>1</Client>
  <ClientIShop>1</ClientIShop>
  <LkTerminal>true</LkTerminal>
  <Phone>1</Phone>
</GetClientInfoRequest>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

GetClientInfoArrayResponse
NameDescriptionTypeAdditional information
ErrorCode

код ошибки

integer

None.

Message

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

string

None.

Clients

Collection of ClientInfo

None.

Response Formats

application/json, text/json

Sample:
{
  "ErrorCode": 1,
  "Message": "sample string 2",
  "Clients": [
    {
      "Card": 1,
      "Phone": 2,
      "Surname": "sample string 3",
      "Name": "sample string 4",
      "Patronymic": "sample string 5",
      "Email": "sample string 6",
      "Birthdate": "2022-08-16T22:53:46.8332853+03:00",
      "LastPurchaseDate": "2022-08-16T22:53:46.8332853+03:00",
      "LastPurchaseAmount": 9.0,
      "AllowSms": true,
      "AllowEmail": true,
      "FullBalance": 10.0,
      "Condition": "sample string 11",
      "Id": 12,
      "Gender": 13
    },
    {
      "Card": 1,
      "Phone": 2,
      "Surname": "sample string 3",
      "Name": "sample string 4",
      "Patronymic": "sample string 5",
      "Email": "sample string 6",
      "Birthdate": "2022-08-16T22:53:46.8332853+03:00",
      "LastPurchaseDate": "2022-08-16T22:53:46.8332853+03:00",
      "LastPurchaseAmount": 9.0,
      "AllowSms": true,
      "AllowEmail": true,
      "FullBalance": 10.0,
      "Condition": "sample string 11",
      "Id": 12,
      "Gender": 13
    }
  ]
}

application/xml, text/xml

Sample:
<GetClientInfoArrayResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LCManagerPartner.Models">
  <Clients>
    <ClientInfo>
      <AllowEmail>true</AllowEmail>
      <AllowSms>true</AllowSms>
      <Birthdate>2022-08-16T22:53:46.8332853+03:00</Birthdate>
      <Card>1</Card>
      <Condition>sample string 11</Condition>
      <Email>sample string 6</Email>
      <FullBalance>10</FullBalance>
      <Gender>13</Gender>
      <Id>12</Id>
      <LastPurchaseAmount>9</LastPurchaseAmount>
      <LastPurchaseDate>2022-08-16T22:53:46.8332853+03:00</LastPurchaseDate>
      <Name>sample string 4</Name>
      <Patronymic>sample string 5</Patronymic>
      <Phone>2</Phone>
      <Surname>sample string 3</Surname>
    </ClientInfo>
    <ClientInfo>
      <AllowEmail>true</AllowEmail>
      <AllowSms>true</AllowSms>
      <Birthdate>2022-08-16T22:53:46.8332853+03:00</Birthdate>
      <Card>1</Card>
      <Condition>sample string 11</Condition>
      <Email>sample string 6</Email>
      <FullBalance>10</FullBalance>
      <Gender>13</Gender>
      <Id>12</Id>
      <LastPurchaseAmount>9</LastPurchaseAmount>
      <LastPurchaseDate>2022-08-16T22:53:46.8332853+03:00</LastPurchaseDate>
      <Name>sample string 4</Name>
      <Patronymic>sample string 5</Patronymic>
      <Phone>2</Phone>
      <Surname>sample string 3</Surname>
    </ClientInfo>
  </Clients>
  <ErrorCode>1</ErrorCode>
  <Message>sample string 2</Message>
</GetClientInfoArrayResponse>