GET api/Catering/GetRestaurantPackages?restaurantId={restaurantId}&width={width}&height={height}
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
restaurantId | integer |
Required |
|
width | integer |
None. |
|
height | integer |
None. |
Body Parameters
None.
Response Information
Resource Description
RestaurantPackageShortViewName | Description | Type | Additional information |
---|---|---|---|
Restaurant | RestaurantView |
None. |
|
Packages | Collection of RestaurantPackageTypeShortView |
None. |
|
RestaurantPackageTypes | Dictionary of string [key] and integer [value] |
None. |
Response Formats
application/json, text/json
Sample:
{ "restaurant": { "id": 1, "name": "sample string 2", "description": "sample string 3", "logoPictureUrl": "sample string 4", "profilePictureUrl": "sample string 5", "address": "sample string 6", "cityId": 7, "cityName": "sample string 8", "postalCode": "sample string 9", "latitude": 1.1, "longitude": 1.1, "contact": "sample string 10", "lineID": "sample string 11", "phoneNumber": "sample string 12", "vatRegistered": true, "peakContactCode": "sample string 14", "greenPackaging": true, "promoteWeeklyRecommend": true, "restaurantHolidays": [ { "id": 1, "holiday": "2025-08-26T23:03:39.2350431+00:00", "remarks": "sample string 3", "idTemp": 4 }, { "id": 1, "holiday": "2025-08-26T23:03:39.2350431+00:00", "remarks": "sample string 3", "idTemp": 4 } ], "restaurantOperationHours": [ { "id": 1, "day": 0, "dayText": "sample string 2", "openTime": "00:00:00.1234567", "closeTime": "00:00:00.1234567", "status": 0 }, { "id": 1, "day": 0, "dayText": "sample string 2", "openTime": "00:00:00.1234567", "closeTime": "00:00:00.1234567", "status": 0 } ], "isSaas": true, "saas": { "lineID": "sample string 1", "phoneNumber": "sample string 2", "contactName": "sample string 3", "email": "sample string 4", "bankName": "sample string 5", "accountId": "sample string 6", "accountName": "sample string 7", "branchName": "sample string 8", "qrCodePictureUrl": "sample string 9", "saasTermOfUse": "sample string 10", "minimumDistanceFreeOfChargeEnabled": true, "minimumDistanceFreeOfCharge": 1.1, "deliveryFeePerKm": 12.0, "deliveryDiscountEnabled": true, "deliveryDiscount": 14.0, "minimumOrderDeliveryDiscount": 15.0 }, "restaurantSaasUrl": "sample string 18", "adminRating": 19.1, "userRating": 20.1, "userRatingNumber": 21, "ratingDescription": "sample string 22", "rating": 23.1, "creatorId": "sample string 24", "created": "2025-08-26T23:03:39.250667+00:00", "creatorFullName": "sample string 26", "updated": "2025-08-26T23:03:39.250667+00:00", "updatorId": "sample string 28", "updatorFullName": "sample string 29", "disabled": true }, "packages": [ { "menus": [ { "id": 1, "name": "sample string 2", "price": 3.0, "originalPrice": 4.0, "setId": 1, "note": "sample string 5", "ordering": 6, "greenPackaging": true }, { "id": 1, "name": "sample string 2", "price": 3.0, "originalPrice": 4.0, "setId": 1, "note": "sample string 5", "ordering": 6, "greenPackaging": true } ], "sets": [ { "id": 1, "name": "sample string 2", "description": "sample string 3", "price": 4.0, "originalPrice": 5.0, "note": "sample string 6", "greenPackaging": true }, { "id": 1, "name": "sample string 2", "description": "sample string 3", "price": 4.0, "originalPrice": 5.0, "note": "sample string 6", "greenPackaging": true } ], "foodTruckFoodStallSets": [ { "id": 1, "name": "sample string 2", "description": "sample string 3", "price": 4.0, "originalPrice": 5.0, "note": "sample string 6" }, { "id": 1, "name": "sample string 2", "description": "sample string 3", "price": 4.0, "originalPrice": 5.0, "note": "sample string 6" } ], "id": 1, "nameThai": "sample string 2", "nameEng": "sample string 3", "ordering": 4, "iconPath": "sample string 5" }, { "menus": [ { "id": 1, "name": "sample string 2", "price": 3.0, "originalPrice": 4.0, "setId": 1, "note": "sample string 5", "ordering": 6, "greenPackaging": true }, { "id": 1, "name": "sample string 2", "price": 3.0, "originalPrice": 4.0, "setId": 1, "note": "sample string 5", "ordering": 6, "greenPackaging": true } ], "sets": [ { "id": 1, "name": "sample string 2", "description": "sample string 3", "price": 4.0, "originalPrice": 5.0, "note": "sample string 6", "greenPackaging": true }, { "id": 1, "name": "sample string 2", "description": "sample string 3", "price": 4.0, "originalPrice": 5.0, "note": "sample string 6", "greenPackaging": true } ], "foodTruckFoodStallSets": [ { "id": 1, "name": "sample string 2", "description": "sample string 3", "price": 4.0, "originalPrice": 5.0, "note": "sample string 6" }, { "id": 1, "name": "sample string 2", "description": "sample string 3", "price": 4.0, "originalPrice": 5.0, "note": "sample string 6" } ], "id": 1, "nameThai": "sample string 2", "nameEng": "sample string 3", "ordering": 4, "iconPath": "sample string 5" } ], "restaurantPackageTypes": { "sample string 1": 2, "sample string 3": 4 } }
text/html
Sample:
{"restaurant":{"id":1,"name":"sample string 2","description":"sample string 3","logoPictureUrl":"sample string 4","profilePictureUrl":"sample string 5","address":"sample string 6","cityId":7,"cityName":"sample string 8","postalCode":"sample string 9","latitude":1.1,"longitude":1.1,"contact":"sample string 10","lineID":"sample string 11","phoneNumber":"sample string 12","vatRegistered":true,"peakContactCode":"sample string 14","greenPackaging":true,"promoteWeeklyRecommend":true,"restaurantHolidays":[{"id":1,"holiday":"2025-08-26T23:03:39.2350431+00:00","remarks":"sample string 3","idTemp":4},{"id":1,"holiday":"2025-08-26T23:03:39.2350431+00:00","remarks":"sample string 3","idTemp":4}],"restaurantOperationHours":[{"id":1,"day":0,"dayText":"sample string 2","openTime":"00:00:00.1234567","closeTime":"00:00:00.1234567","status":0},{"id":1,"day":0,"dayText":"sample string 2","openTime":"00:00:00.1234567","closeTime":"00:00:00.1234567","status":0}],"isSaas":true,"saas":{"lineID":"sample string 1","phoneNumber":"sample string 2","contactName":"sample string 3","email":"sample string 4","bankName":"sample string 5","accountId":"sample string 6","accountName":"sample string 7","branchName":"sample string 8","qrCodePictureUrl":"sample string 9","saasTermOfUse":"sample string 10","minimumDistanceFreeOfChargeEnabled":true,"minimumDistanceFreeOfCharge":1.1,"deliveryFeePerKm":12.0,"deliveryDiscountEnabled":true,"deliveryDiscount":14.0,"minimumOrderDeliveryDiscount":15.0},"restaurantSaasUrl":"sample string 18","adminRating":19.1,"userRating":20.1,"userRatingNumber":21,"ratingDescription":"sample string 22","rating":23.1,"creatorId":"sample string 24","created":"2025-08-26T23:03:39.250667+00:00","creatorFullName":"sample string 26","updated":"2025-08-26T23:03:39.250667+00:00","updatorId":"sample string 28","updatorFullName":"sample string 29","disabled":true},"packages":[{"menus":[{"id":1,"name":"sample string 2","price":3.0,"originalPrice":4.0,"setId":1,"note":"sample string 5","ordering":6,"greenPackaging":true},{"id":1,"name":"sample string 2","price":3.0,"originalPrice":4.0,"setId":1,"note":"sample string 5","ordering":6,"greenPackaging":true}],"sets":[{"id":1,"name":"sample string 2","description":"sample string 3","price":4.0,"originalPrice":5.0,"note":"sample string 6","greenPackaging":true},{"id":1,"name":"sample string 2","description":"sample string 3","price":4.0,"originalPrice":5.0,"note":"sample string 6","greenPackaging":true}],"foodTruckFoodStallSets":[{"id":1,"name":"sample string 2","description":"sample string 3","price":4.0,"originalPrice":5.0,"note":"sample string 6"},{"id":1,"name":"sample string 2","description":"sample string 3","price":4.0,"originalPrice":5.0,"note":"sample string 6"}],"id":1,"nameThai":"sample string 2","nameEng":"sample string 3","ordering":4,"iconPath":"sample string 5"},{"menus":[{"id":1,"name":"sample string 2","price":3.0,"originalPrice":4.0,"setId":1,"note":"sample string 5","ordering":6,"greenPackaging":true},{"id":1,"name":"sample string 2","price":3.0,"originalPrice":4.0,"setId":1,"note":"sample string 5","ordering":6,"greenPackaging":true}],"sets":[{"id":1,"name":"sample string 2","description":"sample string 3","price":4.0,"originalPrice":5.0,"note":"sample string 6","greenPackaging":true},{"id":1,"name":"sample string 2","description":"sample string 3","price":4.0,"originalPrice":5.0,"note":"sample string 6","greenPackaging":true}],"foodTruckFoodStallSets":[{"id":1,"name":"sample string 2","description":"sample string 3","price":4.0,"originalPrice":5.0,"note":"sample string 6"},{"id":1,"name":"sample string 2","description":"sample string 3","price":4.0,"originalPrice":5.0,"note":"sample string 6"}],"id":1,"nameThai":"sample string 2","nameEng":"sample string 3","ordering":4,"iconPath":"sample string 5"}],"restaurantPackageTypes":{"sample string 1":2,"sample string 3":4}}
application/xml, text/xml
Sample:
<RestaurantPackageShortView xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EB.Service.Contracts.Api"> <Packages> <RestaurantPackageTypeShortView> <IconPath xmlns="http://schemas.datacontract.org/2004/07/EB.Common.Models">sample string 5</IconPath> <Id xmlns="http://schemas.datacontract.org/2004/07/EB.Common.Models">1</Id> <NameEng xmlns="http://schemas.datacontract.org/2004/07/EB.Common.Models">sample string 3</NameEng> <NameThai xmlns="http://schemas.datacontract.org/2004/07/EB.Common.Models">sample string 2</NameThai> <Ordering xmlns="http://schemas.datacontract.org/2004/07/EB.Common.Models">4</Ordering> <FoodTruckFoodStallSets> <RestaurantFoodTruckFoodStallSetShortView> <Description>sample string 3</Description> <Id>1</Id> <Name>sample string 2</Name> <Note>sample string 6</Note> <OriginalPrice>5</OriginalPrice> <Price>4</Price> </RestaurantFoodTruckFoodStallSetShortView> <RestaurantFoodTruckFoodStallSetShortView> <Description>sample string 3</Description> <Id>1</Id> <Name>sample string 2</Name> <Note>sample string 6</Note> <OriginalPrice>5</OriginalPrice> <Price>4</Price> </RestaurantFoodTruckFoodStallSetShortView> </FoodTruckFoodStallSets> <Menus> <RestaurantMenuShortView> <GreenPackaging>true</GreenPackaging> <Id>1</Id> <Name>sample string 2</Name> <Note>sample string 5</Note> <Ordering>6</Ordering> <OriginalPrice>4</OriginalPrice> <Price>3</Price> <SetId>1</SetId> </RestaurantMenuShortView> <RestaurantMenuShortView> <GreenPackaging>true</GreenPackaging> <Id>1</Id> <Name>sample string 2</Name> <Note>sample string 5</Note> <Ordering>6</Ordering> <OriginalPrice>4</OriginalPrice> <Price>3</Price> <SetId>1</SetId> </RestaurantMenuShortView> </Menus> <Sets> <RestaurantCustomizeSetShortView> <Description>sample string 3</Description> <GreenPackaging>true</GreenPackaging> <Id>1</Id> <Name>sample string 2</Name> <Note>sample string 6</Note> <OriginalPrice>5</OriginalPrice> <Price>4</Price> </RestaurantCustomizeSetShortView> <RestaurantCustomizeSetShortView> <Description>sample string 3</Description> <GreenPackaging>true</GreenPackaging> <Id>1</Id> <Name>sample string 2</Name> <Note>sample string 6</Note> <OriginalPrice>5</OriginalPrice> <Price>4</Price> </RestaurantCustomizeSetShortView> </Sets> </RestaurantPackageTypeShortView> <RestaurantPackageTypeShortView> <IconPath xmlns="http://schemas.datacontract.org/2004/07/EB.Common.Models">sample string 5</IconPath> <Id xmlns="http://schemas.datacontract.org/2004/07/EB.Common.Models">1</Id> <NameEng xmlns="http://schemas.datacontract.org/2004/07/EB.Common.Models">sample string 3</NameEng> <NameThai xmlns="http://schemas.datacontract.org/2004/07/EB.Common.Models">sample string 2</NameThai> <Ordering xmlns="http://schemas.datacontract.org/2004/07/EB.Common.Models">4</Ordering> <FoodTruckFoodStallSets> <RestaurantFoodTruckFoodStallSetShortView> <Description>sample string 3</Description> <Id>1</Id> <Name>sample string 2</Name> <Note>sample string 6</Note> <OriginalPrice>5</OriginalPrice> <Price>4</Price> </RestaurantFoodTruckFoodStallSetShortView> <RestaurantFoodTruckFoodStallSetShortView> <Description>sample string 3</Description> <Id>1</Id> <Name>sample string 2</Name> <Note>sample string 6</Note> <OriginalPrice>5</OriginalPrice> <Price>4</Price> </RestaurantFoodTruckFoodStallSetShortView> </FoodTruckFoodStallSets> <Menus> <RestaurantMenuShortView> <GreenPackaging>true</GreenPackaging> <Id>1</Id> <Name>sample string 2</Name> <Note>sample string 5</Note> <Ordering>6</Ordering> <OriginalPrice>4</OriginalPrice> <Price>3</Price> <SetId>1</SetId> </RestaurantMenuShortView> <RestaurantMenuShortView> <GreenPackaging>true</GreenPackaging> <Id>1</Id> <Name>sample string 2</Name> <Note>sample string 5</Note> <Ordering>6</Ordering> <OriginalPrice>4</OriginalPrice> <Price>3</Price> <SetId>1</SetId> </RestaurantMenuShortView> </Menus> <Sets> <RestaurantCustomizeSetShortView> <Description>sample string 3</Description> <GreenPackaging>true</GreenPackaging> <Id>1</Id> <Name>sample string 2</Name> <Note>sample string 6</Note> <OriginalPrice>5</OriginalPrice> <Price>4</Price> </RestaurantCustomizeSetShortView> <RestaurantCustomizeSetShortView> <Description>sample string 3</Description> <GreenPackaging>true</GreenPackaging> <Id>1</Id> <Name>sample string 2</Name> <Note>sample string 6</Note> <OriginalPrice>5</OriginalPrice> <Price>4</Price> </RestaurantCustomizeSetShortView> </Sets> </RestaurantPackageTypeShortView> </Packages> <Restaurant> <Created>2025-08-26T23:03:39.250667+00:00</Created> <CreatorFullName>sample string 26</CreatorFullName> <CreatorId>sample string 24</CreatorId> <Disabled>true</Disabled> <Updated>2025-08-26T23:03:39.250667+00:00</Updated> <UpdatorFullName>sample string 29</UpdatorFullName> <UpdatorId>sample string 28</UpdatorId> <Address>sample string 6</Address> <AdminRating>19.1</AdminRating> <CityId>7</CityId> <CityName>sample string 8</CityName> <Contact>sample string 10</Contact> <Description>sample string 3</Description> <GreenPackaging>true</GreenPackaging> <Id>1</Id> <IsSaas>true</IsSaas> <Latitude>1.1</Latitude> <LineID>sample string 11</LineID> <LogoPictureUrl>sample string 4</LogoPictureUrl> <Longitude>1.1</Longitude> <Name>sample string 2</Name> <PeakContactCode>sample string 14</PeakContactCode> <PhoneNumber>sample string 12</PhoneNumber> <PostalCode>sample string 9</PostalCode> <ProfilePictureUrl>sample string 5</ProfilePictureUrl> <PromoteWeeklyRecommend>true</PromoteWeeklyRecommend> <Rating>23.1</Rating> <RatingDescription>sample string 22</RatingDescription> <RestaurantHolidays> <RestaurantHolidayView> <Holiday>2025-08-26T23:03:39.2350431+00:00</Holiday> <Id>1</Id> <Remarks>sample string 3</Remarks> <idTemp>4</idTemp> </RestaurantHolidayView> <RestaurantHolidayView> <Holiday>2025-08-26T23:03:39.2350431+00:00</Holiday> <Id>1</Id> <Remarks>sample string 3</Remarks> <idTemp>4</idTemp> </RestaurantHolidayView> </RestaurantHolidays> <RestaurantOperationHours> <RestaurantOperationHourView> <CloseTime>PT0.1234567S</CloseTime> <Day>Sunday</Day> <DayText>sample string 2</DayText> <Id>1</Id> <OpenTime>PT0.1234567S</OpenTime> <Status>Close</Status> </RestaurantOperationHourView> <RestaurantOperationHourView> <CloseTime>PT0.1234567S</CloseTime> <Day>Sunday</Day> <DayText>sample string 2</DayText> <Id>1</Id> <OpenTime>PT0.1234567S</OpenTime> <Status>Close</Status> </RestaurantOperationHourView> </RestaurantOperationHours> <RestaurantSaasUrl>sample string 18</RestaurantSaasUrl> <Saas> <AccountId>sample string 6</AccountId> <AccountName>sample string 7</AccountName> <BankName>sample string 5</BankName> <BranchName>sample string 8</BranchName> <ContactName>sample string 3</ContactName> <DeliveryDiscount>14</DeliveryDiscount> <DeliveryDiscountEnabled>true</DeliveryDiscountEnabled> <DeliveryFeePerKm>12</DeliveryFeePerKm> <Email>sample string 4</Email> <LineID>sample string 1</LineID> <MinimumDistanceFreeOfCharge>1.1</MinimumDistanceFreeOfCharge> <MinimumDistanceFreeOfChargeEnabled>true</MinimumDistanceFreeOfChargeEnabled> <MinimumOrderDeliveryDiscount>15</MinimumOrderDeliveryDiscount> <PhoneNumber>sample string 2</PhoneNumber> <QrCodePictureUrl>sample string 9</QrCodePictureUrl> <SaasTermOfUse>sample string 10</SaasTermOfUse> </Saas> <UserRating>20.1</UserRating> <UserRatingNumber>21</UserRatingNumber> <VATRegistered>true</VATRegistered> </Restaurant> <RestaurantPackageTypes xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:KeyValueOfstringint> <d2p1:Key>sample string 1</d2p1:Key> <d2p1:Value>2</d2p1:Value> </d2p1:KeyValueOfstringint> <d2p1:KeyValueOfstringint> <d2p1:Key>sample string 3</d2p1:Key> <d2p1:Value>4</d2p1:Value> </d2p1:KeyValueOfstringint> </RestaurantPackageTypes> </RestaurantPackageShortView>