POST api/Order/UsedCouponCode
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": "e57e550c-3fcc-4852-a569-1cc70713afea", "OrderId": "9e7a54ac-8347-4a39-a7b4-25f9c40fc9a5", "Success": true, "BranchID": "36c95622-9ceb-4845-ae98-e1548b1f1eb8", "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>36c95622-9ceb-4845-ae98-e1548b1f1eb8</BranchID> <CompanyCode>sample string 2</CompanyCode> <CouponCode>sample string 1</CouponCode> <CouponCodeId>1</CouponCodeId> <DeviceType>6</DeviceType> <FEVersion>sample string 7</FEVersion> <OrderId>9e7a54ac-8347-4a39-a7b4-25f9c40fc9a5</OrderId> <SARefId>e57e550c-3fcc-4852-a569-1cc70713afea</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>