POST api/client/OperationHistory
Получение информации об операциях клиента (бонусы, чеки, заказы), с пагинацией
Request Information
URI Parameters
None.
Body Parameters
OperationHistoryRequest| Name | Description | Type | Additional information |
|---|---|---|---|
| Card |
Номер карты |
integer |
None. |
| Phone |
Номер телефона |
integer |
None. |
| Client |
Идентификатор клиента |
integer |
None. |
| Partner |
Идентификатор партнера |
integer |
None. |
| PosCode |
Код торговой точки |
string |
None. |
| Bonus |
Фильтр: необходима выборка только по бонусам не за покупки |
boolean |
None. |
| OrderId |
Фильтр: необходима информация по чекам конкретного заказа |
integer |
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
{
"Card": 1,
"Phone": 1,
"Client": 1,
"Partner": 1,
"PosCode": "sample string 1",
"Bonus": true,
"OrderId": 1,
"Cheque": true,
"Start": 1,
"Length": 1,
"Operator": 1,
"Token": 1,
"SiteCode": "sample string 2"
}
application/xml, text/xml
<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> <OrderId>1</OrderId> <Partner>1</Partner> <Phone>1</Phone> <PosCode>sample string 1</PosCode> <Start>1</Start> </OperationHistoryRequest>
application/x-www-form-urlencoded
Sample not available.
Response Information
Resource Description
OperationHistoryResponse| Name | Description | Type | Additional 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
{
"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": "2025-11-06T03:31:38.5405101+03:00",
"Discount": 1.0,
"SertRedeemed": 1.0,
"CouponNumber": "sample string 3",
"BonusSourceName": "sample string 4",
"ComponentType": 64,
"BonusSource": 64,
"ChequeNumber": "sample string 5",
"Active": true,
"ActiveDate": "2025-11-06T03:31:38.5405101+03:00",
"ExpiryDate": "2025-11-06T03:31:38.5405101+03:00",
"Remain": 1.0,
"Parent": 1,
"OrderId": 1
},
{
"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": "2025-11-06T03:31:38.5405101+03:00",
"Discount": 1.0,
"SertRedeemed": 1.0,
"CouponNumber": "sample string 3",
"BonusSourceName": "sample string 4",
"ComponentType": 64,
"BonusSource": 64,
"ChequeNumber": "sample string 5",
"Active": true,
"ActiveDate": "2025-11-06T03:31:38.5405101+03:00",
"ExpiryDate": "2025-11-06T03:31:38.5405101+03:00",
"Remain": 1.0,
"Parent": 1,
"OrderId": 1
}
],
"ErrorCode": 1,
"Message": "sample string 2"
}
application/xml, text/xml
<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>
<Active>true</Active>
<ActiveDate>2025-11-06T03:31:38.5405101+03:00</ActiveDate>
<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>
<ExpiryDate>2025-11-06T03:31:38.5405101+03:00</ExpiryDate>
<Id>1</Id>
<OrderId>1</OrderId>
<Parent>1</Parent>
<PartnerName>sample string 1</PartnerName>
<Pos>1</Pos>
<PosName>sample string 2</PosName>
<Proctime>2025-11-06T03:31:38.5405101+03:00</Proctime>
<Redeemed>1</Redeemed>
<Refund>true</Refund>
<Remain>1</Remain>
<SertRedeemed>1</SertRedeemed>
</OperationHistoryResponse.OperationHistoryOperation>
<OperationHistoryResponse.OperationHistoryOperation>
<Active>true</Active>
<ActiveDate>2025-11-06T03:31:38.5405101+03:00</ActiveDate>
<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>
<ExpiryDate>2025-11-06T03:31:38.5405101+03:00</ExpiryDate>
<Id>1</Id>
<OrderId>1</OrderId>
<Parent>1</Parent>
<PartnerName>sample string 1</PartnerName>
<Pos>1</Pos>
<PosName>sample string 2</PosName>
<Proctime>2025-11-06T03:31:38.5405101+03:00</Proctime>
<Redeemed>1</Redeemed>
<Refund>true</Refund>
<Remain>1</Remain>
<SertRedeemed>1</SertRedeemed>
</OperationHistoryResponse.OperationHistoryOperation>
</Operations>
<Phone>1</Phone>
<Rows>1</Rows>
</OperationHistoryResponse>