POST api/event/EventRulePagingInfo

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

Request Information

URI Parameters

None.

Body Parameters

EventRulePagingInfoRequest
NameDescriptionTypeAdditional information
EventRuleId

Фильтр: идентификатор правила

integer

None.

Name

Фильтр: наименование правила

string

None.

NoActive

Фильтр: только не активные правила

boolean

None.

Active

Фильтр: только активные правила

boolean

None.

EventRuleType

Фильтр: тип правила

byte

None.

EventType

Фильтр: тип евента (события)

integer

None.

BegDate

Фильтр: дата начала действия правила на событие

date

None.

EndDate

Фильтр: дата окончания действия правила на событие

date

None.

MarketList

Фильтр: маркетинговый список клиентов

integer

None.

Start

Пагинация: последовательный номер записи от которой нужно возвращать данные (1, 10, 20, 30 и т.д.)

integer

None.

Length

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

integer

None.

Operator

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

integer

None.

Token

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

integer

None.

SiteCode

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

string

None.

Request Formats

application/json, text/json

Sample:
{
  "EventRuleId": 1,
  "Name": "sample string 1",
  "NoActive": true,
  "Active": true,
  "EventRuleType": 64,
  "EventType": 1,
  "BegDate": "2025-09-18T06:32:10.0390194+03:00",
  "EndDate": "2025-09-18T06:32:10.0390194+03:00",
  "MarketList": 1,
  "Start": 1,
  "Length": 1,
  "Operator": 1,
  "Token": 1,
  "SiteCode": "sample string 2"
}

application/xml, text/xml

Sample:
<EventRulePagingInfoRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LCManagerPartner.Implementation.Request.EventRequest">
  <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>
  <Active>true</Active>
  <BegDate>2025-09-18T06:32:10.0390194+03:00</BegDate>
  <EndDate>2025-09-18T06:32:10.0390194+03:00</EndDate>
  <EventRuleId>1</EventRuleId>
  <EventRuleType>64</EventRuleType>
  <EventType>1</EventType>
  <Length>1</Length>
  <MarketList>1</MarketList>
  <Name>sample string 1</Name>
  <NoActive>true</NoActive>
  <Start>1</Start>
</EventRulePagingInfoRequest>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

EventRulePagingInfoResponse
NameDescriptionTypeAdditional information
TotalRows

Количество записей, которые попали в выборку

integer

None.

TotalRowsSelect

Количество записей, которые вернулись в массиве ответа на запрос

integer

None.

Data

Выходные данные

Collection of EventRulePagingInfoDataRow

None.

ErrorCode

Код ошибки

integer

None.

Message

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

string

None.

Response Formats

application/json, text/json

Sample:
{
  "TotalRows": 1,
  "TotalRowsSelect": 1,
  "Data": [
    {
      "Id": 1,
      "EventRuleId": 1,
      "Name": "sample string 1",
      "Active": true,
      "EventRuleType": 64,
      "EventType": 1,
      "BegDate": "2025-09-18T06:32:10.0546485+03:00",
      "EndDate": "2025-09-18T06:32:10.0546485+03:00",
      "MarketList": 1,
      "CountActions": 64
    },
    {
      "Id": 1,
      "EventRuleId": 1,
      "Name": "sample string 1",
      "Active": true,
      "EventRuleType": 64,
      "EventType": 1,
      "BegDate": "2025-09-18T06:32:10.0546485+03:00",
      "EndDate": "2025-09-18T06:32:10.0546485+03:00",
      "MarketList": 1,
      "CountActions": 64
    }
  ],
  "ErrorCode": 1,
  "Message": "sample string 2"
}

application/xml, text/xml

Sample:
<EventRulePagingInfoResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LCManagerPartner.Implementation.Response.EventResponse">
  <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>
    <EventRulePagingInfoResponse.EventRulePagingInfoDataRow>
      <Active>true</Active>
      <BegDate>2025-09-18T06:32:10.0546485+03:00</BegDate>
      <CountActions>64</CountActions>
      <EndDate>2025-09-18T06:32:10.0546485+03:00</EndDate>
      <EventRuleId>1</EventRuleId>
      <EventRuleType>64</EventRuleType>
      <EventType>1</EventType>
      <Id>1</Id>
      <MarketList>1</MarketList>
      <Name>sample string 1</Name>
    </EventRulePagingInfoResponse.EventRulePagingInfoDataRow>
    <EventRulePagingInfoResponse.EventRulePagingInfoDataRow>
      <Active>true</Active>
      <BegDate>2025-09-18T06:32:10.0546485+03:00</BegDate>
      <CountActions>64</CountActions>
      <EndDate>2025-09-18T06:32:10.0546485+03:00</EndDate>
      <EventRuleId>1</EventRuleId>
      <EventRuleType>64</EventRuleType>
      <EventType>1</EventType>
      <Id>1</Id>
      <MarketList>1</MarketList>
      <Name>sample string 1</Name>
    </EventRulePagingInfoResponse.EventRulePagingInfoDataRow>
  </Data>
  <TotalRows>1</TotalRows>
  <TotalRowsSelect>1</TotalRowsSelect>
</EventRulePagingInfoResponse>