POST api/cheque/ChequeFullRefund
Полный возврат чека покупки по идентификатору чека
Request Information
URI Parameters
None.
Body Parameters
ChequeFullRefundRequestName | Description | Type | Additional information |
---|---|---|---|
ChequeId |
Идентификатор чека, по которому осуществляется возврат |
integer |
None. |
ClientId |
Идентификатор клиента |
integer |
None. |
Operator |
Идентификатор оператора программы лояльности |
integer |
None. |
Token |
Токен пользователя, который инициирует данный запрос |
integer |
None. |
SiteCode |
Уникальный код виджета по продаже подарочных сертификатов, который инициирует запрос |
string |
None. |
Request Formats
application/json, text/json
Sample:
{ "ChequeId": 1, "ClientId": 1, "Operator": 1, "Token": 1, "SiteCode": "sample string 1" }
application/xml, text/xml
Sample:
<ChequeFullRefundRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LCManagerPartner.Implementation.Request.ChequeRequest"> <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> <ChequeId>1</ChequeId> <ClientId>1</ClientId> </ChequeFullRefundRequest>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
ChequeFullRefundResponseName | Description | Type | Additional information |
---|---|---|---|
Amount |
Сумма возврата по чеку |
decimal number |
None. |
Added |
Начислено после возврата |
decimal number |
None. |
Redeemed |
Списано после возврата |
decimal number |
None. |
Balance |
Баланс карты |
decimal number |
None. |
FullBalance |
Полный баланс карты |
decimal number |
None. |
ErrorCode |
Код ошибки |
integer |
None. |
Message |
Сообщение об ошибке |
string |
None. |
Response Formats
application/json, text/json
Sample:
{ "Amount": 1.0, "Added": 1.0, "Redeemed": 1.0, "Balance": 1.0, "FullBalance": 1.0, "ErrorCode": 1, "Message": "sample string 2" }
application/xml, text/xml
Sample:
<ChequeFullRefundResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LCManagerPartner.Implementation.Response.ChequeResponse"> <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> <Added>1</Added> <Amount>1</Amount> <Balance>1</Balance> <FullBalance>1</FullBalance> <Redeemed>1</Redeemed> </ChequeFullRefundResponse>