GET api/Vouchers/LoadVouchers/{voucherCode}/{startDate}/{endDate}
Returns a list of valid vouchers based on a date range
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| voucherCode | string |
None. |
|
| startDate | date |
None. |
|
| endDate | date |
None. |
Body Parameters
None.
Response Information
Resource Description
HttpResponseMessage| Name | Description | Type | Additional information |
|---|---|---|---|
| Version | Version |
None. |
|
| Content | HttpContent |
None. |
|
| StatusCode | HttpStatusCode |
None. |
|
| ReasonPhrase | string |
None. |
|
| Headers | Collection of Object |
None. |
|
| RequestMessage | HttpRequestMessage |
None. |
|
| IsSuccessStatusCode | boolean |
None. |
Response Formats
application/json, text/json
Sample:
[{"VoucherCode":"","Description":"","Amount":0.0,"CriteriaType":0,"CriteriaValue":0,"ApplicationPerSale":0,"MultipleApplications":0,"UsedInConjunction":0,"AllowNegativeTotal":0,"DiscountType":0,"StartDate":"0001-01-01T00:00:00","EndDate":"0001-01-01T00:00:00"}]
application/xml, text/xml
Sample:
<?xml version="1.0" encoding="utf-16"?>
<VoucherList xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<APIVoucher>
<VoucherCode />
<Description />
<Amount>0</Amount>
<CriteriaType>ctPLU</CriteriaType>
<CriteriaValue>0</CriteriaValue>
<ApplicationPerSale>apsPerValidItem</ApplicationPerSale>
<MultipleApplications>maYes</MultipleApplications>
<UsedInConjunction>ucYes</UsedInConjunction>
<AllowNegativeTotal>antYes</AllowNegativeTotal>
<DiscountType>Percentage</DiscountType>
<StartDate>0001-01-01T00:00:00</StartDate>
<EndDate>0001-01-01T00:00:00</EndDate>
</APIVoucher>
</VoucherList>