POST api/children/ClientChildrenCreate

Добавление информации о детях клиента

Request Information

URI Parameters

None.

Body Parameters

ClientChildrenCreateRequest
NameDescriptionTypeAdditional information
Client

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

integer

None.

Childrens

Массив детей

Collection of Children

None.

Operator

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

integer

None.

Token

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

integer

None.

SiteCode

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

string

None.

Request Formats

application/json, text/json

Sample:
{
  "Client": 1,
  "Childrens": [
    {
      "Id": 1,
      "Name": "sample string 2",
      "Birthdate": "2022-08-16T22:23:35.4957387+03:00",
      "Gender": true
    },
    {
      "Id": 1,
      "Name": "sample string 2",
      "Birthdate": "2022-08-16T22:23:35.4957387+03:00",
      "Gender": true
    }
  ],
  "Operator": 1,
  "Token": 1,
  "SiteCode": "sample string 1"
}

application/xml, text/xml

Sample:
<ClientChildrenCreateRequest 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>
  <Childrens xmlns:d2p1="http://schemas.datacontract.org/2004/07/LCManagerPartner.Implementation.Data">
    <d2p1:Children>
      <d2p1:Birthdate>2022-08-16T22:23:35.4957387+03:00</d2p1:Birthdate>
      <d2p1:Gender>true</d2p1:Gender>
      <d2p1:Id>1</d2p1:Id>
      <d2p1:Name>sample string 2</d2p1:Name>
    </d2p1:Children>
    <d2p1:Children>
      <d2p1:Birthdate>2022-08-16T22:23:35.4957387+03:00</d2p1:Birthdate>
      <d2p1:Gender>true</d2p1:Gender>
      <d2p1:Id>1</d2p1:Id>
      <d2p1:Name>sample string 2</d2p1:Name>
    </d2p1:Children>
  </Childrens>
  <Client>1</Client>
</ClientChildrenCreateRequest>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

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