GET api/Voucher/ValidateGiftCardOrderOnline?voucherCode={voucherCode}&companyCode={companyCode}&branchID={branchID}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
voucherCode

string

Required

companyCode

string

Required

branchID

globally unique identifier

Required

Body Parameters

None.

Response Information

Resource Description

APIOrderOnlineResultOfValidateVoucherCard
NameDescriptionTypeAdditional 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": {
    "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: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>