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": "b0fd65dd-8da0-4faa-aab3-b3bc9558cee6",
"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>b0fd65dd-8da0-4faa-aab3-b3bc9558cee6</OrderId> <VoucherCode>sample string 2</VoucherCode> </ApplyVoucherDto>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
None.