PUT api/cukcukManager/Restaurant/InActive
cập nhật tình trạng hoạt động của nhà hàng từ cukcuk sang 5food
Request Information
URI Parameters
None.
Body Parameters
list danh sách nhà hàng cần cập nhật và giá trị
UpdateRestanrantInActiveParam| Name | Description | Type | Additional information |
|---|---|---|---|
| UpdateInActives |
Danh sách nhà hàng cập nhật ngừng theo dõi |
Collection of UpdateInActive |
None. |
| DeviceType |
Loại thiết bị |
CukCukDeviceType |
None. |
| UserId |
Id của user đăng nhập |
globally unique identifier |
None. |
| FEVersion |
Phiên bản hiện tại của Client Phục vụ việc check có cần thiết phải force client nâng cấp lên version mới nhất không |
string |
None. |
Request Formats
application/json, text/json
{
"UpdateInActives": [
{
"BranchId": "30ee42b3-fab4-4a24-8f53-0696fe9b6d00",
"CompanyCode": "sample string 2",
"InActive": true
},
{
"BranchId": "30ee42b3-fab4-4a24-8f53-0696fe9b6d00",
"CompanyCode": "sample string 2",
"InActive": true
}
],
"DeviceType": 1,
"UserId": "1f9cf927-b4f2-4bbd-afd0-e06879101765",
"FEVersion": "sample string 2"
}
text/xml
<UpdateRestanrantInActiveParam xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MISA.CUK5FOOD.BO">
<FEVersion>sample string 2</FEVersion>
<UserId>1f9cf927-b4f2-4bbd-afd0-e06879101765</UserId>
<DeviceType>PC</DeviceType>
<UpdateInActives>
<UpdateInActive>
<BranchId>30ee42b3-fab4-4a24-8f53-0696fe9b6d00</BranchId>
<CompanyCode>sample string 2</CompanyCode>
<InActive>true</InActive>
</UpdateInActive>
<UpdateInActive>
<BranchId>30ee42b3-fab4-4a24-8f53-0696fe9b6d00</BranchId>
<CompanyCode>sample string 2</CompanyCode>
<InActive>true</InActive>
</UpdateInActive>
</UpdateInActives>
</UpdateRestanrantInActiveParam>
application/x-www-form-urlencoded
Response Information
Resource Description
trả về ServiceResult Success thành công thất bại
ServiceResult| Name | Description | Type | Additional information |
|---|---|---|---|
| ErrorType |
Loại lỗi |
EnumServiceErrorType |
None. |
| ErrorMessage |
Thông tin lỗi |
string |
None. |
| Data |
Dữ liệu trả về cho client |
Object |
None. |
| SummaryData |
Dữ liệu dòng tổng trên grid trả về client |
Object |
None. |
| Total |
Tổng số bản ghi trên grid |
integer |
None. |
| Success |
Thực thi Service thành công |
boolean |
None. |
| NewId |
Trả về ID của đối tượng khi cất thành công |
Object |
None. |
| LastSyncDate |
Thời gian truy cập lấy dữ liệu tính đến thời điểm hiện tại, Lưu dạng long để truyền qua webapi |
integer |
None. |
Response Formats
application/json, text/json
{
"ErrorType": 1,
"ErrorMessage": "sample string 1",
"Data": {},
"SummaryData": {},
"Total": 1,
"Success": true,
"NewId": {},
"LastSyncDate": 1
}
text/xml
<ServiceResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MISA.CUK5FOOD.BO"> <Data /> <ErrorMessage>sample string 1</ErrorMessage> <ErrorType>CUKCUKSeflOrderPaid</ErrorType> <LastSyncDate>1</LastSyncDate> <NewId /> <Success>true</Success> <SummaryData /> <Total>1</Total> </ServiceResult>