POST api/reports/OperatorBonus
Отчёт по бонусам не за покупки за период у оператора
Request Information
URI Parameters
None.
Body Parameters
OperatorBonusSourceRequestName | Description | Type | Additional information |
---|---|---|---|
From |
Дата начала периода |
date |
None. |
To |
Дата окончания периода |
date |
None. |
Operator |
Идентификатор оператора программы лояльности |
integer |
None. |
Token |
Токен пользователя, который инициирует данный запрос |
integer |
None. |
SiteCode |
Уникальный код виджета по продаже подарочных сертификатов, который инициирует запрос |
string |
None. |
Request Formats
application/json, text/json
Sample:
{ "From": "2023-03-28T07:48:45.6989365+03:00", "To": "2023-03-28T07:48:45.6989365+03:00", "Operator": 1, "Token": 1, "SiteCode": "sample string 3" }
application/xml, text/xml
Sample:
<OperatorBonusSourceRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LCManagerPartner.Models"> <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 3</SiteCode> <Token xmlns="http://schemas.datacontract.org/2004/07/LCManagerPartner.Implementation.Abstractions">1</Token> <From>2023-03-28T07:48:45.6989365+03:00</From> <To>2023-03-28T07:48:45.6989365+03:00</To> </OperatorBonusSourceRequest>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
ReportResponseName | Description | Type | Additional information |
---|---|---|---|
ErrorCode |
Код ошибки |
integer |
Required |
Message |
Сообщение об ошибке |
string |
None. |
Report |
Файл отчёта |
Collection of byte |
Required |
Response Formats
application/json, text/json
Sample:
{ "ErrorCode": 1, "Message": "sample string 2", "Report": "QEA=" }
application/xml, text/xml
Sample:
<ReportResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LCManagerPartner.Models"> <ErrorCode>1</ErrorCode> <Message>sample string 2</Message> <Report>QEA=</Report> </ReportResponse>