POST api/client/ClientInfoSurname

Поиск клиентов по фамилии

Request Information

URI Parameters

None.

Body Parameters

ClientInfoSurnameRequest
NameDescriptionTypeAdditional information
Surname

Фамилия клиента

string

None.

Operator

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

integer

None.

Token

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

integer

None.

SiteCode

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

string

None.

Request Formats

application/json, text/json

Sample:
{
  "Surname": "sample string 1",
  "Operator": 1,
  "Token": 1,
  "SiteCode": "sample string 2"
}

application/xml, text/xml

Sample:
<ClientInfoSurnameRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LCManagerPartner.Implementation.Request">
  <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>
  <Surname>sample string 1</Surname>
</ClientInfoSurnameRequest>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

ClientInfoSurnameResponse
NameDescriptionTypeAdditional information
ClientsInfo

Массив данных клиентов

Collection of ClientResponse

None.

ErrorCode

Код ошибки

integer

None.

Message

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

string

None.

Response Formats

application/json, text/json

Sample:
{
  "ClientsInfo": [
    {
      "Client": 1,
      "Phone": 2,
      "Card": 3,
      "Fio": "sample string 4",
      "Birthdate": "2024-04-19T07:01:25.7816923+03:00"
    },
    {
      "Client": 1,
      "Phone": 2,
      "Card": 3,
      "Fio": "sample string 4",
      "Birthdate": "2024-04-19T07:01:25.7816923+03:00"
    }
  ],
  "ErrorCode": 1,
  "Message": "sample string 2"
}

application/xml, text/xml

Sample:
<ClientInfoSurnameResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LCManagerPartner.Implementation.Response">
  <ErrorCode xmlns="http://schemas.datacontract.org/2004/07/LCManagerPartner.Implementation.Abstractions">1</ErrorCode>
  <Message xmlns="http://schemas.datacontract.org/2004/07/LCManagerPartner.Implementation.Abstractions">sample string 2</Message>
  <ClientsInfo>
    <ClientInfo>
      <Birthdate>2024-04-19T07:01:25.7816923+03:00</Birthdate>
      <Card>3</Card>
      <Client>1</Client>
      <Fio>sample string 4</Fio>
      <Phone>2</Phone>
    </ClientInfo>
    <ClientInfo>
      <Birthdate>2024-04-19T07:01:25.7816923+03:00</Birthdate>
      <Card>3</Card>
      <Client>1</Client>
      <Fio>sample string 4</Fio>
      <Phone>2</Phone>
    </ClientInfo>
  </ClientsInfo>
</ClientInfoSurnameResponse>