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
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
Sample:
{ "CouponCodeId": 1, "CouponCode": "sample string 1", "CompanyCode": "sample string 2", "SARefNo": "sample string 3", "SARefId": "b917d3a9-613e-4de1-a3e2-8fa708b11f4e", "OrderId": "f33e974e-4b23-4dd4-8359-b7caf86718cc", "Success": true, "BranchID": "fe8753ad-ac4e-4dd4-b425-06529a29bee1", "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>fe8753ad-ac4e-4dd4-b425-06529a29bee1</BranchID> <CompanyCode>sample string 2</CompanyCode> <CouponCode>sample string 1</CouponCode> <CouponCodeId>1</CouponCodeId> <DeviceType>6</DeviceType> <FEVersion>sample string 7</FEVersion> <OrderId>f33e974e-4b23-4dd4-8359-b7caf86718cc</OrderId> <SARefId>b917d3a9-613e-4de1-a3e2-8fa708b11f4e</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
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. |
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>