POST api/values/Refund

Регистрация чека возврата на Процессинге.

Request Information

URI Parameters

None.

Body Parameters

RefundRequest
NameDescriptionTypeAdditional information
Card

номер карты

integer

None.

ChequeTime

время чека

date

None.

Phone

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

integer

None.

Partner

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

integer

None.

Pos

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

string

None.

Amount

сумма

decimal number

None.

PaidByBonus

оплачено бонусами

decimal number

None.

Number

номер чека

string

None.

PurchaseId

ID покупки

integer

None.

PurchaseNumber

номер покупки?

string

None.

PurchaseDate

дата покупки

date

None.

PurchasePos

торговая точка покупки

string

None.

PurchaseTerminal

торговый терминал покупки

string

None.

Operator

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

integer

None.

Token

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

integer

None.

SiteCode

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

string

None.

Request Formats

application/json, text/json

Sample:
{
  "Card": 1,
  "ChequeTime": "2022-08-19T23:52:09.0658663+03:00",
  "Phone": 3,
  "Partner": 4,
  "Pos": "sample string 5",
  "Amount": 6.0,
  "PaidByBonus": 7.0,
  "Number": "sample string 8",
  "PurchaseId": 9,
  "PurchaseNumber": "sample string 10",
  "PurchaseDate": "2022-08-19T23:52:09.0658663+03:00",
  "PurchasePos": "sample string 12",
  "PurchaseTerminal": "sample string 13",
  "Operator": 1,
  "Token": 1,
  "SiteCode": "sample string 14"
}

application/xml, text/xml

Sample:
<RefundRequest 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 14</SiteCode>
  <Token xmlns="http://schemas.datacontract.org/2004/07/LCManagerPartner.Implementation.Abstractions">1</Token>
  <Amount>6</Amount>
  <Card>1</Card>
  <ChequeTime>2022-08-19T23:52:09.0658663+03:00</ChequeTime>
  <Number>sample string 8</Number>
  <PaidByBonus>7</PaidByBonus>
  <Partner>4</Partner>
  <Phone>3</Phone>
  <Pos>sample string 5</Pos>
  <PurchaseDate>2022-08-19T23:52:09.0658663+03:00</PurchaseDate>
  <PurchaseId>9</PurchaseId>
  <PurchaseNumber>sample string 10</PurchaseNumber>
  <PurchasePos>sample string 12</PurchasePos>
  <PurchaseTerminal>sample string 13</PurchaseTerminal>
</RefundRequest>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

RefundResponse
NameDescriptionTypeAdditional information
ErrorCode

код ошибки

integer

None.

Message

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

string

None.

Added

decimal number

None.

Balance

баланс бонусных баллов

decimal number

None.

Redeemed

decimal number

None.

Amount

decimal number

None.

Response Formats

application/json, text/json

Sample:
{
  "ErrorCode": 1,
  "Message": "sample string 2",
  "Added": 3.0,
  "Balance": 4.0,
  "Redeemed": 5.0,
  "Amount": 6.0
}

application/xml, text/xml

Sample:
<RefundResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LCManagerPartner.Models">
  <Added>3</Added>
  <Amount>6</Amount>
  <Balance>4</Balance>
  <ErrorCode>1</ErrorCode>
  <Message>sample string 2</Message>
  <Redeemed>5</Redeemed>
</RefundResponse>