POST api/Payment/Refund

Request Information

URI Parameters

None.

Body Parameters

PurchaseRefundRequest
NameDescriptionTypeAdditional information
SaleId

globally unique identifier

None.

RefundAmount

decimal number

None.

Request Formats

application/json, text/json

Sample:
{
  "SaleId": "edaf12d6-0c2e-4d51-9896-bd3f08e29206",
  "RefundAmount": 1.0
}

application/xml, text/xml

Sample:
<PurchaseRefundRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PosAppBackend.Models">
  <RefundAmount>1</RefundAmount>
  <SaleId>edaf12d6-0c2e-4d51-9896-bd3f08e29206</SaleId>
</PurchaseRefundRequest>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'PurchaseRefundRequest'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.