POST api/Order/AvailableCoupon
Request Information
URI Parameters
None.
Body Parameters
Param5FoodCouponName | Description | Type | Additional information |
---|---|---|---|
CouponCodeId | integer |
None. |
|
CouponCode | string |
None. |
|
CompanyCode | string |
None. |
|
SARefNo | string |
None. |
|
SARefId | globally unique identifier |
None. |
|
OrderId | globally unique identifier |
None. |
|
Success | boolean |
None. |
|
BranchID | globally unique identifier |
None. |
|
DeviceType | integer |
None. |
|
FEVersion | string |
None. |
Request Formats
application/json, text/json, text/html
Sample:
{ "CouponCodeId": 1, "CouponCode": "sample string 1", "CompanyCode": "sample string 2", "SARefNo": "sample string 3", "SARefId": "25df43a7-dbf5-434f-8bd8-db4c79e7f00c", "OrderId": "2a4fcb43-1622-4a05-844e-b6049ffa6790", "Success": true, "BranchID": "6e08fd1c-e3a2-4a68-9e78-80cec5bafb7f", "DeviceType": 6, "FEVersion": "sample string 7" }
application/xml, text/xml
Sample:
<Param5FoodCoupon xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MISA.QLNH.BOBase"> <BranchID>6e08fd1c-e3a2-4a68-9e78-80cec5bafb7f</BranchID> <CompanyCode>sample string 2</CompanyCode> <CouponCode>sample string 1</CouponCode> <CouponCodeId>1</CouponCodeId> <DeviceType>6</DeviceType> <FEVersion>sample string 7</FEVersion> <OrderId>2a4fcb43-1622-4a05-844e-b6049ffa6790</OrderId> <SARefId>25df43a7-dbf5-434f-8bd8-db4c79e7f00c</SARefId> <SARefNo>sample string 3</SARefNo> <Success>true</Success> </Param5FoodCoupon>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
ServiceOutputResultName | Description | Type | Additional information |
---|---|---|---|
Data |
Dữ liệu trả về |
Object |
None. |
DataError |
Thông tin data đi kèm lỗi khi có lỗi, service trả về mã lỗi nhưng client cần trả thêm những dữ liệu thêm về để xử lý |
Object |
None. |
Success |
Xử lý service có thành công hay không |
boolean |
None. |
Message |
Thông báo lỗi trả về (nếu có) |
string |
None. |
ErrorType |
Mã lỗi |
EnumServiceErrorType |
None. |
Response Formats
application/json, text/json, text/html
Sample:
{ "Data": {}, "DataError": {}, "Success": true, "Message": "sample string 4", "ErrorType": 0 }
application/xml, text/xml
Sample:
<ServiceOutputResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MISA.QLNH.BOBase"> <ErrorType>None</ErrorType> <Message>sample string 4</Message> <Success>true</Success> <Data /> <DataError /> </ServiceOutputResult>