POST api/client/ClientMessageInfo
Получение информации о сообщениях клиента
Request Information
URI Parameters
None.
Body Parameters
ClientMessageInfoRequest| Name | Description | Type | Additional information |
|---|---|---|---|
| Client |
Идентификатор клиента |
integer |
None. |
| CommunicationType |
Тип коммуникации, сообщения по которому нужно вернуть (из справочника communicationtype) |
byte |
None. |
| Start |
Пагинация: от какой позиции по счёту отображать данные |
integer |
None. |
| Length |
Количество записей для отображения |
integer |
None. |
| Operator |
Идентификатор оператора программы лояльности |
integer |
None. |
| Token |
Токен пользователя, который инициирует данный запрос |
integer |
None. |
| SiteCode |
Уникальный код виджета по продаже подарочных сертификатов, который инициирует запрос |
string |
None. |
Request Formats
application/json, text/json
Sample:
{
"Client": 1,
"CommunicationType": 64,
"Start": 1,
"Length": 1,
"Operator": 1,
"Token": 1,
"SiteCode": "sample string 1"
}
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 1</SiteCode> <Token xmlns="http://schemas.datacontract.org/2004/07/LCManagerPartner.Implementation.Abstractions">1</Token> <Client>1</Client> <CommunicationType>64</CommunicationType> <Length>1</Length> <Start>1</Start> </ClientMessageInfoRequest>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
ClientMessageInfoResponse| Name | Description | Type | Additional information |
|---|---|---|---|
| TotalRows |
Общее количество записей, которое может быть отображено |
integer |
None. |
| TotalRowsSelect |
Общее количество записей, которое вернулось в ответ на запрос |
integer |
None. |
| Сlientmessage |
Массив сообщений клиента |
Collection of СlientMessage |
None. |
| ErrorCode |
Код ошибки |
integer |
None. |
| Message |
Сообщение об ошибке |
string |
None. |
Response Formats
application/json, text/json
Sample:
{
"TotalRows": 1,
"TotalRowsSelect": 1,
"Сlientmessage": [
{
"Id": 1,
"Phone": 2,
"Email": "sample string 3",
"Type": 64,
"Communication": 5,
"Text": "sample string 6",
"Date": "2025-10-27T04:01:25.8180914+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": "2025-10-27T04:01:25.8180914+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>
<TotalRows>1</TotalRows>
<TotalRowsSelect>1</TotalRowsSelect>
<Сlientmessage>
<СlientMessage>
<Communication>5</Communication>
<Date>2025-10-27T04:01:25.8180914+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>2025-10-27T04:01:25.8180914+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>