POST api/client/OperationHistory

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

Request Information

URI Parameters

None.

Body Parameters

OperationHistoryRequest
NameDescriptionTypeAdditional information
Card

Номер карты

integer

None.

Phone

Номер телефона

integer

None.

Client

Идентификатор клиента

integer

None.

Partner

Идентификатор партнера

integer

None.

PosCode

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

string

None.

Bonus

Фильтр: необходима выборка только по бонусам не за покупки

boolean

None.

Cheque

Фильтр: необходима выборка только по чекам

boolean

None.

Start

Начальная строка пагинации

integer

None.

Length

Кол-во строк для возврата

integer

None.

Operator

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

integer

None.

Token

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

integer

None.

SiteCode

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

string

None.

Request Formats

application/json, text/json

Sample:
{
  "Card": 1,
  "Phone": 1,
  "Client": 1,
  "Partner": 1,
  "PosCode": "sample string 1",
  "Bonus": true,
  "Cheque": true,
  "Start": 1,
  "Length": 1,
  "Operator": 1,
  "Token": 1,
  "SiteCode": "sample string 2"
}

application/xml, text/xml

Sample:
<OperationHistoryRequest 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>
  <Bonus>true</Bonus>
  <Card>1</Card>
  <Cheque>true</Cheque>
  <Client>1</Client>
  <Length>1</Length>
  <Partner>1</Partner>
  <Phone>1</Phone>
  <PosCode>sample string 1</PosCode>
  <Start>1</Start>
</OperationHistoryRequest>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

OperationHistoryResponse
NameDescriptionTypeAdditional information
Client

Идентификатор клиента

integer

None.

Phone

Номер телефона

integer

None.

Card

Номер карты

integer

None.

Rows

Общее кол-во имеющихся записей

integer

None.

Operations

Коллекция с историей операций

Collection of OperationHistoryOperation

None.

ErrorCode

Код ошибки

integer

None.

Message

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

string

None.

Response Formats

application/json, text/json

Sample:
{
  "Client": 1,
  "Phone": 1,
  "Card": 1,
  "Rows": 1,
  "Operations": [
    {
      "Id": 1,
      "Pos": 1,
      "BonusId": 1,
      "ChequeId": 1,
      "PartnerName": "sample string 1",
      "PosName": "sample string 2",
      "Amount": 1.0,
      "Added": 1.0,
      "Redeemed": 1.0,
      "Refund": true,
      "Proctime": "2022-08-14T16:03:34.1079131+03:00",
      "Discount": 1.0,
      "SertRedeemed": 1.0,
      "CouponNumber": "sample string 3",
      "BonusSourceName": "sample string 4",
      "ComponentType": 64,
      "BonusSource": 64,
      "ChequeNumber": "sample string 5"
    },
    {
      "Id": 1,
      "Pos": 1,
      "BonusId": 1,
      "ChequeId": 1,
      "PartnerName": "sample string 1",
      "PosName": "sample string 2",
      "Amount": 1.0,
      "Added": 1.0,
      "Redeemed": 1.0,
      "Refund": true,
      "Proctime": "2022-08-14T16:03:34.1079131+03:00",
      "Discount": 1.0,
      "SertRedeemed": 1.0,
      "CouponNumber": "sample string 3",
      "BonusSourceName": "sample string 4",
      "ComponentType": 64,
      "BonusSource": 64,
      "ChequeNumber": "sample string 5"
    }
  ],
  "ErrorCode": 1,
  "Message": "sample string 2"
}

application/xml, text/xml

Sample:
<OperationHistoryResponse 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>
  <Card>1</Card>
  <Client>1</Client>
  <Operations>
    <OperationHistoryResponse.OperationHistoryOperation>
      <Added>1</Added>
      <Amount>1</Amount>
      <BonusId>1</BonusId>
      <BonusSource>64</BonusSource>
      <BonusSourceName>sample string 4</BonusSourceName>
      <ChequeId>1</ChequeId>
      <ChequeNumber>sample string 5</ChequeNumber>
      <ComponentType>64</ComponentType>
      <CouponNumber>sample string 3</CouponNumber>
      <Discount>1</Discount>
      <Id>1</Id>
      <PartnerName>sample string 1</PartnerName>
      <Pos>1</Pos>
      <PosName>sample string 2</PosName>
      <Proctime>2022-08-14T16:03:34.1079131+03:00</Proctime>
      <Redeemed>1</Redeemed>
      <Refund>true</Refund>
      <SertRedeemed>1</SertRedeemed>
    </OperationHistoryResponse.OperationHistoryOperation>
    <OperationHistoryResponse.OperationHistoryOperation>
      <Added>1</Added>
      <Amount>1</Amount>
      <BonusId>1</BonusId>
      <BonusSource>64</BonusSource>
      <BonusSourceName>sample string 4</BonusSourceName>
      <ChequeId>1</ChequeId>
      <ChequeNumber>sample string 5</ChequeNumber>
      <ComponentType>64</ComponentType>
      <CouponNumber>sample string 3</CouponNumber>
      <Discount>1</Discount>
      <Id>1</Id>
      <PartnerName>sample string 1</PartnerName>
      <Pos>1</Pos>
      <PosName>sample string 2</PosName>
      <Proctime>2022-08-14T16:03:34.1079131+03:00</Proctime>
      <Redeemed>1</Redeemed>
      <Refund>true</Refund>
      <SertRedeemed>1</SertRedeemed>
    </OperationHistoryResponse.OperationHistoryOperation>
  </Operations>
  <Phone>1</Phone>
  <Rows>1</Rows>
</OperationHistoryResponse>