POST api/marketing/CommunicationPriorityListItemPagingInfo

Получение информации о наполнении списка приоритетов коммуникаций, с пагинацией и входными фильтрами

Request Information

URI Parameters

None.

Body Parameters

CommunicationPriorityListItemPagingInfoRequest
NameDescriptionTypeAdditional information
CommunicationPriorityList

Идентификатор списка приоритетов по которому отображаем детализацию

integer

None.

CommunicationType

Фильтр: тип коммуникации

byte

None.

Priority

Фильтр: приоритет

byte

None.

MessageTemplate

Фильтр: шаблон сообщения

byte

None.

Start

Пагинация: номер записи, от которой показывать записи, включая указанную

integer

None.

Length

Пагинация: позиция от которой показывать записи, включая указанную

integer

None.

Operator

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

integer

None.

Token

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

integer

None.

SiteCode

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

string

None.

Request Formats

application/json, text/json

Sample:
{
  "CommunicationPriorityList": 1,
  "CommunicationType": 64,
  "Priority": 64,
  "MessageTemplate": 64,
  "Start": 1,
  "Length": 1,
  "Operator": 1,
  "Token": 1,
  "SiteCode": "sample string 1"
}

application/xml, text/xml

Sample:
<CommunicationPriorityListItemPagingInfoRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LCManagerPartner.Implementation.Request.MarketingRequest">
  <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>
  <CommunicationPriorityList>1</CommunicationPriorityList>
  <CommunicationType>64</CommunicationType>
  <Length>1</Length>
  <MessageTemplate>64</MessageTemplate>
  <Priority>64</Priority>
  <Start>1</Start>
</CommunicationPriorityListItemPagingInfoRequest>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

CommunicationPriorityListItemPagingInfoResponse
NameDescriptionTypeAdditional information
TotalRows

Общее кол-во записей по заданным фильтрам

integer

None.

TotalRowsSelect

Количество записей в запросе

integer

None.

Data

Массив данных

Collection of CommunicationPriorityListItemPagingInfoDataRow

None.

ErrorCode

Код ошибки

integer

None.

Message

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

string

None.

Response Formats

application/json, text/json

Sample:
{
  "TotalRows": 1,
  "TotalRowsSelect": 1,
  "Data": [
    {
      "Id": 1,
      "CommunicationPriorityListItemId": 1,
      "CommunicationType": 64,
      "CommunicationTypeName": "sample string 1",
      "Priority": 64,
      "MessageTemplate": 64,
      "MessageTemplateName": "sample string 2",
      "NoActive": true
    },
    {
      "Id": 1,
      "CommunicationPriorityListItemId": 1,
      "CommunicationType": 64,
      "CommunicationTypeName": "sample string 1",
      "Priority": 64,
      "MessageTemplate": 64,
      "MessageTemplateName": "sample string 2",
      "NoActive": true
    }
  ],
  "ErrorCode": 1,
  "Message": "sample string 2"
}

application/xml, text/xml

Sample:
<CommunicationPriorityListItemPagingInfoResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LCManagerPartner.Implementation.Response.MarketingResponse">
  <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>
  <Data>
    <CommunicationPriorityListItemPagingInfoResponse.CommunicationPriorityListItemPagingInfoDataRow>
      <CommunicationPriorityListItemId>1</CommunicationPriorityListItemId>
      <CommunicationType>64</CommunicationType>
      <CommunicationTypeName>sample string 1</CommunicationTypeName>
      <Id>1</Id>
      <MessageTemplate>64</MessageTemplate>
      <MessageTemplateName>sample string 2</MessageTemplateName>
      <NoActive>true</NoActive>
      <Priority>64</Priority>
    </CommunicationPriorityListItemPagingInfoResponse.CommunicationPriorityListItemPagingInfoDataRow>
    <CommunicationPriorityListItemPagingInfoResponse.CommunicationPriorityListItemPagingInfoDataRow>
      <CommunicationPriorityListItemId>1</CommunicationPriorityListItemId>
      <CommunicationType>64</CommunicationType>
      <CommunicationTypeName>sample string 1</CommunicationTypeName>
      <Id>1</Id>
      <MessageTemplate>64</MessageTemplate>
      <MessageTemplateName>sample string 2</MessageTemplateName>
      <NoActive>true</NoActive>
      <Priority>64</Priority>
    </CommunicationPriorityListItemPagingInfoResponse.CommunicationPriorityListItemPagingInfoDataRow>
  </Data>
  <TotalRows>1</TotalRows>
  <TotalRowsSelect>1</TotalRowsSelect>
</CommunicationPriorityListItemPagingInfoResponse>