POST api/Counpon/AvailableCoupon?companyCode={companyCode}
Hàm cập nhật trạng thái đã sử dụng mã ưu đãi
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| companyCode |
Mã nhà hàng(bắt buộc cần để phân biệt thí điểm hay chính thức) |
string |
Required |
Body Parameters
Thông tin mã ưu đãi
Param5FoodCoupon| Name | 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
Sample:
{
"CouponCodeId": 1,
"CouponCode": "sample string 1",
"CompanyCode": "sample string 2",
"SARefNo": "sample string 3",
"SARefId": "77101343-df2d-452f-9535-d6f121caa614",
"OrderId": "e42b4f4f-c6f2-4466-8215-eb205c717c20",
"Success": true,
"BranchID": "6561a919-f50c-4a92-8765-419e93ff02d8",
"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>6561a919-f50c-4a92-8765-419e93ff02d8</BranchID> <CompanyCode>sample string 2</CompanyCode> <CouponCode>sample string 1</CouponCode> <CouponCodeId>1</CouponCodeId> <DeviceType>6</DeviceType> <FEVersion>sample string 7</FEVersion> <OrderId>e42b4f4f-c6f2-4466-8215-eb205c717c20</OrderId> <SARefId>77101343-df2d-452f-9535-d6f121caa614</SARefId> <SARefNo>sample string 3</SARefNo> <Success>true</Success> </Param5FoodCoupon>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
Hàm cập nhật trạng thái đã sử dụng mã ưu đãi
ServiceOutputResult| Name | 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. |
| Environment | string |
None. |
Response Formats
application/json, text/json
Sample:
{
"Data": {},
"DataError": {},
"Success": true,
"Message": "sample string 4",
"ErrorType": 0,
"Environment": "g1"
}
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>