POST api/Order/NewCustomerVoucher/{id}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

integer

Required

Body Parameters

None.

Response Information

Resource Description

NewCustomerVoucher
NameDescriptionTypeAdditional information
Success

boolean

None.

NumOrders

integer

None.

VoucherCode

string

None.

ExpiryDate

date

None.

Response Formats

application/json, text/json

Sample:
{
  "Success": true,
  "NumOrders": 2,
  "VoucherCode": "sample string 3",
  "ExpiryDate": "2026-01-23T18:05:46.1355041+00:00"
}

application/xml, text/xml

Sample:
<NewCustomerVoucher xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RealCoffee.Web.APIBase.Models">
  <ExpiryDate>2026-01-23T18:05:46.1355041+00:00</ExpiryDate>
  <NumOrders>2</NumOrders>
  <Success>true</Success>
  <VoucherCode>sample string 3</VoucherCode>
</NewCustomerVoucher>