POST api/fraud/RulePagingInfo

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

Request Information

URI Parameters

None.

Body Parameters

RulePagingInfoRequest
NameDescriptionTypeAdditional information
BegDate

Фильтр: дата начала анализируемого периода

date

None.

EndDate

Фильтр: дата окончания анализируемого периода

date

None.

Start

Фильтр: с какой позиции вернуть записи

integer

None.

Length

Фильтр: какое количество записей вернуть

integer

None.

Active

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

boolean

None.

Noactive

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

boolean

None.

ProcTime

Фильтр: дата создания правила

date

None.

Operator

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

integer

None.

Token

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

integer

None.

SiteCode

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

string

None.

Request Formats

application/json, text/json

Sample:
{
  "BegDate": "2024-04-29T12:22:25.1351446+03:00",
  "EndDate": "2024-04-29T12:22:25.1351446+03:00",
  "Start": 1,
  "Length": 1,
  "Active": true,
  "Noactive": true,
  "ProcTime": "2024-04-29T12:22:25.1351446+03:00",
  "Operator": 1,
  "Token": 1,
  "SiteCode": "sample string 1"
}

application/xml, text/xml

Sample:
<RulePagingInfoRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LCManagerPartner.Implementation.Request.FraudRequest">
  <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>
  <Active>true</Active>
  <BegDate>2024-04-29T12:22:25.1351446+03:00</BegDate>
  <EndDate>2024-04-29T12:22:25.1351446+03:00</EndDate>
  <Length>1</Length>
  <Noactive>true</Noactive>
  <ProcTime>2024-04-29T12:22:25.1351446+03:00</ProcTime>
  <Start>1</Start>
</RulePagingInfoRequest>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

RulePagingInfoResponse
NameDescriptionTypeAdditional information
TotalRows

общее количество записей, которые можно вернуть после применения всех фильтров

integer

None.

TotalRowsSelect

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

integer

None.

Rules

Список правил

Collection of RulePagingInfo

None.

ErrorCode

Код ошибки

integer

None.

Message

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

string

None.

Response Formats

application/json, text/json

Sample:
{
  "TotalRows": 1,
  "TotalRowsSelect": 1,
  "Rules": [
    {
      "Id": 1,
      "Rule": 2,
      "ProcTime": "2024-04-29T12:22:25.3538892+03:00",
      "RuleName": "sample string 4",
      "RuleBegDate": "2024-04-29T12:22:25.3538892+03:00",
      "RuleEndDate": "2024-04-29T12:22:25.3538892+03:00",
      "SettingQty": 64,
      "RuleStatus": "sample string 6",
      "RuleDescription": "sample string 7"
    },
    {
      "Id": 1,
      "Rule": 2,
      "ProcTime": "2024-04-29T12:22:25.3538892+03:00",
      "RuleName": "sample string 4",
      "RuleBegDate": "2024-04-29T12:22:25.3538892+03:00",
      "RuleEndDate": "2024-04-29T12:22:25.3538892+03:00",
      "SettingQty": 64,
      "RuleStatus": "sample string 6",
      "RuleDescription": "sample string 7"
    }
  ],
  "ErrorCode": 1,
  "Message": "sample string 2"
}

application/xml, text/xml

Sample:
<RulePagingInfoResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LCManagerPartner.Implementation.Response.FraudResponse">
  <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>
  <Rules>
    <RulePagingInfoResponse.RulePagingInfo>
      <Id>1</Id>
      <ProcTime>2024-04-29T12:22:25.3538892+03:00</ProcTime>
      <Rule>2</Rule>
      <RuleBegDate>2024-04-29T12:22:25.3538892+03:00</RuleBegDate>
      <RuleDescription>sample string 7</RuleDescription>
      <RuleEndDate>2024-04-29T12:22:25.3538892+03:00</RuleEndDate>
      <RuleName>sample string 4</RuleName>
      <RuleStatus>sample string 6</RuleStatus>
      <SettingQty>64</SettingQty>
    </RulePagingInfoResponse.RulePagingInfo>
    <RulePagingInfoResponse.RulePagingInfo>
      <Id>1</Id>
      <ProcTime>2024-04-29T12:22:25.3538892+03:00</ProcTime>
      <Rule>2</Rule>
      <RuleBegDate>2024-04-29T12:22:25.3538892+03:00</RuleBegDate>
      <RuleDescription>sample string 7</RuleDescription>
      <RuleEndDate>2024-04-29T12:22:25.3538892+03:00</RuleEndDate>
      <RuleName>sample string 4</RuleName>
      <RuleStatus>sample string 6</RuleStatus>
      <SettingQty>64</SettingQty>
    </RulePagingInfoResponse.RulePagingInfo>
  </Rules>
  <TotalRows>1</TotalRows>
  <TotalRowsSelect>1</TotalRowsSelect>
</RulePagingInfoResponse>