POST api/level/LevelsChangeHistory

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

Request Information

URI Parameters

None.

Body Parameters

LevelsChangeHistoryRequest
NameDescriptionTypeAdditional information
PosCode

Код торговой точки

string

None.

Client

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

integer

None.

Card

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

integer

None.

BegDate

Фильтр: дата начала периода, за который нужно вернуть данные

date

None.

EndDate

Фильтр: дата конца периода, за который нужно вернуть данные

date

None.

LevelTypeUpdate

Фильтр: идентификатор типа изменения уровней карт

byte

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:
{
  "PosCode": "sample string 1",
  "Client": 1,
  "Card": 1,
  "BegDate": "2024-04-29T12:01:57.5804763+03:00",
  "EndDate": "2024-04-29T12:01:57.5804763+03:00",
  "LevelTypeUpdate": 64,
  "Start": 1,
  "Length": 1,
  "Operator": 1,
  "Token": 1,
  "SiteCode": "sample string 2"
}

application/xml, text/xml

Sample:
<LevelsChangeHistoryRequest 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>
  <BegDate>2024-04-29T12:01:57.5804763+03:00</BegDate>
  <Card>1</Card>
  <Client>1</Client>
  <EndDate>2024-04-29T12:01:57.5804763+03:00</EndDate>
  <Length>1</Length>
  <LevelTypeUpdate>64</LevelTypeUpdate>
  <PosCode>sample string 1</PosCode>
  <Start>1</Start>
</LevelsChangeHistoryRequest>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

LevelsChangeHistoryResponse
NameDescriptionTypeAdditional information
TotalRows

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

integer

None.

TotalRowsSelect

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

integer

None.

CardLevels

Массив истории уровней карт

Collection of LevelsChangeHistoryCardLevel

None.

ErrorCode

Код ошибки

integer

None.

Message

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

string

None.

Response Formats

application/json, text/json

Sample:
{
  "TotalRows": 1,
  "TotalRowsSelect": 1,
  "CardLevels": [
    {
      "Id": 1,
      "Client": 1,
      "Phone": 1,
      "Card": 1,
      "OldLevelId": 1,
      "OldLevelName": "sample string 1",
      "NewLevelId": 1,
      "NewLevelName": "sample string 2",
      "LevelTypeUpdateId": 64,
      "LevelTypeUpdateName": "sample string 3",
      "LevelUp": true,
      "ProcTime": "2024-04-29T12:01:57.6117215+03:00"
    },
    {
      "Id": 1,
      "Client": 1,
      "Phone": 1,
      "Card": 1,
      "OldLevelId": 1,
      "OldLevelName": "sample string 1",
      "NewLevelId": 1,
      "NewLevelName": "sample string 2",
      "LevelTypeUpdateId": 64,
      "LevelTypeUpdateName": "sample string 3",
      "LevelUp": true,
      "ProcTime": "2024-04-29T12:01:57.6117215+03:00"
    }
  ],
  "ErrorCode": 1,
  "Message": "sample string 2"
}

application/xml, text/xml

Sample:
<LevelsChangeHistoryResponse 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>
  <CardLevels>
    <LevelsChangeHistoryResponse.LevelsChangeHistoryCardLevel>
      <Card>1</Card>
      <Client>1</Client>
      <Id>1</Id>
      <LevelTypeUpdateId>64</LevelTypeUpdateId>
      <LevelTypeUpdateName>sample string 3</LevelTypeUpdateName>
      <LevelUp>true</LevelUp>
      <NewLevelId>1</NewLevelId>
      <NewLevelName>sample string 2</NewLevelName>
      <OldLevelId>1</OldLevelId>
      <OldLevelName>sample string 1</OldLevelName>
      <Phone>1</Phone>
      <ProcTime>2024-04-29T12:01:57.6117215+03:00</ProcTime>
    </LevelsChangeHistoryResponse.LevelsChangeHistoryCardLevel>
    <LevelsChangeHistoryResponse.LevelsChangeHistoryCardLevel>
      <Card>1</Card>
      <Client>1</Client>
      <Id>1</Id>
      <LevelTypeUpdateId>64</LevelTypeUpdateId>
      <LevelTypeUpdateName>sample string 3</LevelTypeUpdateName>
      <LevelUp>true</LevelUp>
      <NewLevelId>1</NewLevelId>
      <NewLevelName>sample string 2</NewLevelName>
      <OldLevelId>1</OldLevelId>
      <OldLevelName>sample string 1</OldLevelName>
      <Phone>1</Phone>
      <ProcTime>2024-04-29T12:01:57.6117215+03:00</ProcTime>
    </LevelsChangeHistoryResponse.LevelsChangeHistoryCardLevel>
  </CardLevels>
  <TotalRows>1</TotalRows>
  <TotalRowsSelect>1</TotalRowsSelect>
</LevelsChangeHistoryResponse>