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
NameDescriptionTypeAdditional information
OrderId

globally unique identifier

None.

VoucherCode

string

None.

Request Formats

application/json, text/json

Sample:
{
  "OrderId": "4190675a-941f-4a34-a528-07ed54e1a738",
  "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>4190675a-941f-4a34-a528-07ed54e1a738</OrderId>
  <VoucherCode>sample string 2</VoucherCode>
</ApplyVoucherDto>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

None.