POST api/orders/applyVoucher
Applies a voucher to an order.
Request Information
URI Parameters
None.
Body Parameters
The model to apply the voucher with.
ApplyVoucherDto| Name | Description | Type | Additional information |
|---|---|---|---|
| OrderId | globally unique identifier |
None. |
|
| VoucherCode | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"OrderId": "668fab36-1551-4dff-9c37-2c913cf84213",
"VoucherCode": "sample string 2"
}
application/xml, text/xml
Sample:
<ApplyVoucherDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Aardvark.Pay.Models"> <OrderId>668fab36-1551-4dff-9c37-2c913cf84213</OrderId> <VoucherCode>sample string 2</VoucherCode> </ApplyVoucherDto>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
None.