GET api/Voucher/ValidateGiftCard?voucherCode={voucherCode}&companyCode={companyCode}&branchID={branchID}&pinCode={pinCode}&isOnline={isOnline}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| voucherCode | string |
Required |
|
| companyCode | string |
Required |
|
| branchID | globally unique identifier |
Required |
|
| pinCode | string |
Required |
|
| isOnline | boolean |
Required |
Body Parameters
None.
Response Information
Resource Description
APIOrderOnlineResultOfValidateVoucherCard| Name | Description | Type | Additional information |
|---|---|---|---|
| Data | ValidateVoucherCard |
None. |
|
| Success | boolean |
None. |
|
| ErrorMessage | string |
None. |
|
| ErrorType | OrderOnlineAPIErrorType |
None. |
|
| Total | integer |
None. |
|
| Message | string |
None. |
Response Formats
application/json, text/json
Sample:
{
"Data": {
"IsWrongPinCode": true,
"RemainNumber": 1,
"RemainMinute": 2,
"IsAllowApply": true
},
"Success": true,
"ErrorMessage": "sample string 2",
"ErrorType": 0,
"Total": 3,
"Message": "sample string 4"
}
application/xml, text/xml
Sample:
<APIOrderOnlineResultOfValidateVoucherCard34ouyJuR xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MISA.QLNH.BE.BO">
<Data xmlns:d2p1="http://schemas.datacontract.org/2004/07/MISA.QLNH.BOBase">
<d2p1:IsAllowApply>true</d2p1:IsAllowApply>
<d2p1:IsWrongPinCode>true</d2p1:IsWrongPinCode>
<d2p1:RemainMinute>2</d2p1:RemainMinute>
<d2p1:RemainNumber>1</d2p1:RemainNumber>
</Data>
<ErrorMessage>sample string 2</ErrorMessage>
<ErrorType>None</ErrorType>
<Message>sample string 4</Message>
<Success>true</Success>
<Total>3</Total>
</APIOrderOnlineResultOfValidateVoucherCard34ouyJuR>