POST api/children/ClientChildrenInfo

Получение информации о детях клиента

Request Information

URI Parameters

None.

Body Parameters

ClientChildrenInfoRequest
NameDescriptionTypeAdditional information
Client

Идентификатор клиента

integer

None.

Operator

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

integer

None.

Token

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

integer

None.

SiteCode

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

string

None.

Request Formats

application/json, text/json

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

application/xml, text/xml

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

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

ClientChildrenInfoResponse
NameDescriptionTypeAdditional information
ChildrensInfo

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

Collection of ChildrenInfo

None.

ErrorCode

Код ошибки

integer

None.

Message

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

string

None.

Response Formats

application/json, text/json

Sample:
{
  "ChildrensInfo": [
    {
      "Id": 1,
      "Name": "sample string 2",
      "Birthdate": "2022-08-14T14:41:35.4329516+03:00",
      "Gender": true,
      "Age": 64
    },
    {
      "Id": 1,
      "Name": "sample string 2",
      "Birthdate": "2022-08-14T14:41:35.4329516+03:00",
      "Gender": true,
      "Age": 64
    }
  ],
  "ErrorCode": 1,
  "Message": "sample string 2"
}

application/xml, text/xml

Sample:
<ClientChildrenInfoResponse 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>
  <ChildrensInfo>
    <ChildrenInfo>
      <Age>64</Age>
      <Birthdate>2022-08-14T14:41:35.4329516+03:00</Birthdate>
      <Gender>true</Gender>
      <Id>1</Id>
      <Name>sample string 2</Name>
    </ChildrenInfo>
    <ChildrenInfo>
      <Age>64</Age>
      <Birthdate>2022-08-14T14:41:35.4329516+03:00</Birthdate>
      <Gender>true</Gender>
      <Id>1</Id>
      <Name>sample string 2</Name>
    </ChildrenInfo>
  </ChildrensInfo>
</ClientChildrenInfoResponse>