DELETE api/Restaurant
Xóa nhà hàng
Request Information
URI Parameters
None.
Body Parameters
Danh sách nhà hàng cần xóa
Collection of Restaurant| Name | Description | Type | Additional information |
|---|---|---|---|
| RestaurantId |
Id nhà hàng |
integer |
None. |
| RestaurantName |
Tên nhà hàng |
string |
None. |
| RestaurantTel |
SĐT nhà hàng, có thể có nhiều sđt. VD: ["046334577","0976555777"] |
string |
None. |
| CoverPhotoURL |
Đường dẫn ảnh đại diện nhà hàng |
string |
None. |
| RestaurantAddress |
Địa chỉ nhà hàng |
string |
None. |
| Country |
Quốc gia |
string |
None. |
| ProvinceOrCity |
Tỉnh/thành phố |
string |
None. |
| District |
Quận/huyện |
string |
None. |
| WardOrCommune |
Phường/xã |
string |
None. |
| Street |
Đường phố |
string |
None. |
| Latitude |
Vĩ độ (Vị trí trên bản đồ) |
decimal number |
None. |
| Longitude |
Kinh độ (Vị trí trên bản đồ) |
decimal number |
None. |
| Description |
Mô tả thêm về nhà hàng |
string |
None. |
| ServiceTime |
Buổi phục vụ, có thể chọn nhiều.VD: [1,2,3] |
string |
None. |
| OpenHourAllDay |
Giờ mở cửa có áp dụng giống nhau trong tuần ko |
boolean |
None. |
| AveragePrice |
Giá trung bình/người |
decimal number |
None. |
| Website |
Website giới thiệu nhà hàng |
string |
None. |
|
Fanpage nhà hàng |
string |
None. |
|
| MainCurrency |
Đồng tiền sử dụng |
string |
None. |
| TimeZoneCode |
TimeZone lưu dạng text (để bind lên combobox) |
string |
None. |
| TimeZoneValue |
múi giờ nhà hàng |
integer |
None. |
| CUKCUKBranchId |
BranchId bên CUKCUK (lưu dư thừa để xử lý về sau) |
globally unique identifier |
None. |
| CompanyCode |
Lấy từ companycode từ cukcuk, dùng để tạo đường dẫn lưu trữ ảnh |
string |
None. |
| RestaurantCode |
Mã nhà hàng, mỗi nhà hàng là 1 thư mục, dùng để tạo đường dẫn lưu trữ ảnh |
string |
None. |
| IsPublish |
đã public hay chưa |
boolean |
None. |
| IsShowMenuPrice |
có hiển thị giá 5food không |
boolean |
None. |
| OldCoverPhotoURL |
địa chỉ ảnh cũ |
string |
None. |
| ProvinceId |
LocationId Tỉnh/Thành phố của nhà hàng |
string |
None. |
| RatePoint |
Điểm đánh giá trung bình của nhà hàng Dùng để convert dữ liệu TODO: RC3 sẽ xóa đi |
decimal number |
None. |
| PublishStepManager |
Các bước cập nhật thông tin nhà hàng để publish của cukcuk Manager (3 bước) 1,2,3 |
integer |
None. |
| InActive |
Có phải là ngừng theo dõi |
boolean |
None. |
| Status |
Trạng thái nhà hàng 0 đang hoạt động 1 ngừng hoạt động 2 hết hạn sử dụng |
integer |
None. |
| PackName |
Thuê bao |
string |
None. |
| LicenseStatus |
Trạng thái thuê bao |
integer |
None. |
| LicenseExpiredDate |
Ngày hết License |
date |
None. |
| RegisterHost | string |
None. |
|
| HasSelfOrder |
Có cho phép gọi món tại bàn ko |
boolean |
None. |
| HasBooking | boolean |
None. |
|
| IsHasDelivery | boolean |
None. |
|
| ListRestaurantTypeName | string |
None. |
|
| ListUtilityName | string |
None. |
|
| SourceType | SourceType |
None. |
|
| ObjectId | string |
None. |
|
| PublishHasLicense | boolean |
None. |
|
| IsHidden | boolean |
None. |
|
| Token | string |
None. |
|
| CreatedDate |
Ngày tạo |
date |
None. |
| CreatedBy |
Người tạo |
string |
None. |
| ModifiedDate |
Ngày sửa |
date |
None. |
| ModifiedBy |
Người sửa |
string |
None. |
| MISAEntityState | MISAEntityState |
None. |
Request Formats
application/json, text/json
[
null,
{
"RestaurantId": 1,
"RestaurantName": "sample string 2",
"RestaurantTel": "sample string 3",
"CoverPhotoURL": "sample string 4",
"RestaurantAddress": "sample string 5",
"Country": "sample string 6",
"ProvinceOrCity": "sample string 7",
"District": "sample string 8",
"WardOrCommune": "sample string 9",
"Street": "sample string 10",
"Latitude": 1.1,
"Longitude": 1.1,
"Description": "sample string 11",
"ServiceTime": "sample string 12",
"OpenHourAllDay": true,
"AveragePrice": 14.0,
"Website": "sample string 15",
"Facebook": "sample string 16",
"MainCurrency": "sample string 17",
"TimeZoneCode": "sample string 18",
"TimeZoneValue": 19,
"CUKCUKBranchId": "3b62136d-1493-4bfa-9e8f-61969f1238a0",
"CompanyCode": "sample string 21",
"RestaurantCode": "sample string 22",
"IsPublish": true,
"IsShowMenuPrice": true,
"OldCoverPhotoURL": "sample string 25",
"ProvinceId": "sample string 26",
"RatePoint": 1.1,
"PublishStepManager": 27,
"InActive": true,
"Status": 29,
"PackName": "sample string 30",
"LicenseStatus": 31,
"LicenseExpiredDate": "2026-04-05T21:48:31.3843817+07:00",
"RegisterHost": "sample string 32",
"HasSelfOrder": true,
"HasBooking": true,
"IsHasDelivery": true,
"ListRestaurantTypeName": "sample string 36",
"ListUtilityName": "sample string 37",
"SourceType": 0,
"ObjectId": "sample string 38",
"PublishHasLicense": true,
"IsHidden": true,
"Token": "sample string 40",
"CreatedDate": "2026-04-05T21:48:31.3843817+07:00",
"CreatedBy": "sample string 42",
"ModifiedDate": "2026-04-05T21:48:31.3843817+07:00",
"ModifiedBy": "sample string 43",
"MISAEntityState": 0
}
]
text/xml
<ArrayOfRestaurant xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MISA.CUK5FOOD.BO">
<Restaurant i:nil="true" />
<Restaurant>
<_x003C_DeleteStoredProcedureName_x003E_k__BackingField i:nil="true" xmlns="http://schemas.datacontract.org/2004/07/MISA.Library" />
<_x003C_InsertStoredProcedureName_x003E_k__BackingField i:nil="true" xmlns="http://schemas.datacontract.org/2004/07/MISA.Library" />
<_x003C_MISAEntityState_x003E_k__BackingField xmlns="http://schemas.datacontract.org/2004/07/MISA.Library">None</_x003C_MISAEntityState_x003E_k__BackingField>
<_x003C_StoreSchema_x003E_k__BackingField i:nil="true" xmlns="http://schemas.datacontract.org/2004/07/MISA.Library" />
<_x003C_TableSchema_x003E_k__BackingField i:nil="true" xmlns="http://schemas.datacontract.org/2004/07/MISA.Library" />
<_x003C_UpdateStoredProcedureName_x003E_k__BackingField i:nil="true" xmlns="http://schemas.datacontract.org/2004/07/MISA.Library" />
<m_ChangedValues xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" xmlns="http://schemas.datacontract.org/2004/07/MISA.Library" />
<m_OriginalValues xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" xmlns="http://schemas.datacontract.org/2004/07/MISA.Library" />
<ClientID>sample string 44</ClientID>
<CreatedBy>sample string 42</CreatedBy>
<CreatedDate>2026-04-05T21:48:31.3843817+07:00</CreatedDate>
<ImportErrorDetail i:nil="true" />
<ImportListError />
<ImportRowIndex>0</ImportRowIndex>
<ModifiedBy>sample string 43</ModifiedBy>
<ModifiedDate>2026-04-05T21:48:31.3843817+07:00</ModifiedDate>
<AveragePrice>14</AveragePrice>
<CUKCUKBranchId>3b62136d-1493-4bfa-9e8f-61969f1238a0</CUKCUKBranchId>
<CompanyCode>sample string 21</CompanyCode>
<Country>sample string 6</Country>
<CoverPhotoURL>sample string 4</CoverPhotoURL>
<Description>sample string 11</Description>
<District>sample string 8</District>
<Facebook>sample string 16</Facebook>
<HasBooking>true</HasBooking>
<HasSelfOrder>true</HasSelfOrder>
<InActive>true</InActive>
<IsHasDelivery>true</IsHasDelivery>
<IsHidden>true</IsHidden>
<IsPublish>true</IsPublish>
<IsShowMenuPrice>true</IsShowMenuPrice>
<Latitude>1.1</Latitude>
<LicenseExpiredDate>2026-04-05T21:48:31.3843817+07:00</LicenseExpiredDate>
<LicenseStatus>31</LicenseStatus>
<ListRestaurantTypeName>sample string 36</ListRestaurantTypeName>
<ListUtilityName>sample string 37</ListUtilityName>
<Longitude>1.1</Longitude>
<MainCurrency>sample string 17</MainCurrency>
<ObjectId>sample string 38</ObjectId>
<OldCoverPhotoURL>sample string 25</OldCoverPhotoURL>
<OpenHourAllDay>true</OpenHourAllDay>
<PackName>sample string 30</PackName>
<ProvinceId>sample string 26</ProvinceId>
<ProvinceOrCity>sample string 7</ProvinceOrCity>
<PublishHasLicense>true</PublishHasLicense>
<PublishStepManager>27</PublishStepManager>
<RatePoint>1.1</RatePoint>
<RegisterHost>sample string 32</RegisterHost>
<RestaurantAddress>sample string 5</RestaurantAddress>
<RestaurantCode>sample string 22</RestaurantCode>
<RestaurantId>1</RestaurantId>
<RestaurantName>sample string 2</RestaurantName>
<RestaurantTel>sample string 3</RestaurantTel>
<ServiceTime>sample string 12</ServiceTime>
<SourceType>CukCuk</SourceType>
<Status>29</Status>
<Street>sample string 10</Street>
<TimeZoneCode>sample string 18</TimeZoneCode>
<TimeZoneValue>19</TimeZoneValue>
<Token>sample string 40</Token>
<WardOrCommune>sample string 9</WardOrCommune>
<Website>sample string 15</Website>
</Restaurant>
</ArrayOfRestaurant>
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>