GET api/Voucher/GetVoucherByCode?voucherCode={voucherCode}&companyCode={companyCode}&branchID={branchID}
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
voucherCode | string |
Required |
|
companyCode | string |
Required |
|
branchID | globally unique identifier |
Required |
Body Parameters
None.
Response Information
Resource Description
APIOrderOnlineResultOfVoucherCardName | Description | Type | Additional information |
---|---|---|---|
Data | VoucherCard |
None. |
|
Success | boolean |
None. |
|
ErrorMessage | string |
None. |
|
ErrorType | OrderOnlineAPIErrorType |
None. |
|
Total | integer |
None. |
|
Message | string |
None. |
Response Formats
application/json, text/json
Sample:
{ "Success": true, "ErrorMessage": "sample string 2", "ErrorType": 0, "Total": 3, "Message": "sample string 4" }
application/xml, text/xml
Sample:
<APIOrderOnlineResultOfVoucherCard34ouyJuR 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" i:nil="true" /> <ErrorMessage>sample string 2</ErrorMessage> <ErrorType>None</ErrorType> <Message>sample string 4</Message> <Success>true</Success> <Total>3</Total> </APIOrderOnlineResultOfVoucherCard34ouyJuR>