POST api/client/ClientMessageInfo

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

Request Information

URI Parameters

None.

Body Parameters

ClientMessageInfoRequest
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 2"
}

application/xml, text/xml

Sample:
<ClientMessageInfoRequest 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>
  <Client>1</Client>
</ClientMessageInfoRequest>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

ClientMessageInfoResponse
NameDescriptionTypeAdditional information
Сlientmessage

Массив сообщений клиента

Collection of СlientMessage

None.

ErrorCode

Код ошибки

integer

None.

Message

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

string

None.

Response Formats

application/json, text/json

Sample:
{
  "Сlientmessage": [
    {
      "Id": 1,
      "Phone": 2,
      "Email": "sample string 3",
      "Type": 64,
      "Communication": 5,
      "Text": "sample string 6",
      "Date": "2022-08-14T15:57:17.8549966+03:00",
      "Subject": "sample string 8",
      "Status": 64,
      "Image": "sample string 10"
    },
    {
      "Id": 1,
      "Phone": 2,
      "Email": "sample string 3",
      "Type": 64,
      "Communication": 5,
      "Text": "sample string 6",
      "Date": "2022-08-14T15:57:17.8549966+03:00",
      "Subject": "sample string 8",
      "Status": 64,
      "Image": "sample string 10"
    }
  ],
  "ErrorCode": 1,
  "Message": "sample string 2"
}

application/xml, text/xml

Sample:
<ClientMessageInfoResponse 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>
  <Сlientmessage>
    <СlientMessage>
      <Communication>5</Communication>
      <Date>2022-08-14T15:57:17.8549966+03:00</Date>
      <Email>sample string 3</Email>
      <Id>1</Id>
      <Image>sample string 10</Image>
      <Phone>2</Phone>
      <Status>64</Status>
      <Subject>sample string 8</Subject>
      <Text>sample string 6</Text>
      <Type>64</Type>
    </СlientMessage>
    <СlientMessage>
      <Communication>5</Communication>
      <Date>2022-08-14T15:57:17.8549966+03:00</Date>
      <Email>sample string 3</Email>
      <Id>1</Id>
      <Image>sample string 10</Image>
      <Phone>2</Phone>
      <Status>64</Status>
      <Subject>sample string 8</Subject>
      <Text>sample string 6</Text>
      <Type>64</Type>
    </СlientMessage>
  </Сlientmessage>
</ClientMessageInfoResponse>