POST api/Voucher/RedeemVoucherWithRestrictions
Request Information
URI Parameters
None.
Body Parameters
ValidateVoucherComponentModel| Name | Description | Type | Additional information |
|---|---|---|---|
| VoucherCode | string |
None. |
|
| ComponentKey | string |
None. |
|
| PatientUserKey | string |
None. |
|
| ProductKey | string |
None. |
|
| SpecialityKey | string |
None. |
|
| CountryKey | string |
None. |
|
| CityKey | string |
None. |
|
| AreaKey | string |
None. |
|
| EntityKey | string |
None. |
|
| OfferCheckKeys | Collection of string |
None. |
|
| IsNewUser | boolean |
None. |
|
| EpharmacyModel | EpharmacyModel |
None. |
Request Formats
application/json, text/json
Sample:
{
"VoucherCode": "sample string 1",
"ComponentKey": "sample string 2",
"PatientUserKey": "sample string 3",
"ProductKey": "sample string 4",
"SpecialityKey": "sample string 5",
"CountryKey": "sample string 6",
"CityKey": "sample string 7",
"AreaKey": "sample string 8",
"EntityKey": "sample string 9",
"OfferCheckKeys": [
"sample string 1",
"sample string 2"
],
"IsNewUser": true,
"EpharmacyModel": {
"RecieptValue": 1,
"CategoryKeys": [
"sample string 1",
"sample string 2"
],
"DiseaseTypeKeys": [
"sample string 1",
"sample string 2"
]
}
}
application/xml, text/xml
Sample:
<ValidateVoucherComponentModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Vezeeta.Vouchers.Models"><AreaKey>sample string 8</AreaKey><CityKey>sample string 7</CityKey><ComponentKey>sample string 2</ComponentKey><CountryKey>sample string 6</CountryKey><EntityKey>sample string 9</EntityKey><EpharmacyModel><CategoryKeys xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"><d3p1:string>sample string 1</d3p1:string><d3p1:string>sample string 2</d3p1:string></CategoryKeys><DiseaseTypeKeys xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"><d3p1:string>sample string 1</d3p1:string><d3p1:string>sample string 2</d3p1:string></DiseaseTypeKeys><RecieptValue>1</RecieptValue></EpharmacyModel><IsNewUser>true</IsNewUser><OfferCheckKeys xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"><d2p1:string>sample string 1</d2p1:string><d2p1:string>sample string 2</d2p1:string></OfferCheckKeys><PatientUserKey>sample string 3</PatientUserKey><ProductKey>sample string 4</ProductKey><SpecialityKey>sample string 5</SpecialityKey><VoucherCode>sample string 1</VoucherCode></ValidateVoucherComponentModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
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. |