Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

API List

API Documentation

Environment

·   Staging  : https://api.hhstaging.dev.com/api/aoa/v1

LIST API

1. Authentication Private (https://app.clickup.com/9003122396/docs/8ca1fpw-15622/8ca1fpw-25662)

2. Restaurant Long-list Page

DefinitionEndpointMethod
Private (https://app.clickup.com/9003122396/docs/8ca1fpw-15622/8ca1fpw-16542)/cities.jsonGET
Private (https://app.clickup.com/9003122396/docs/8ca1fpw-15622/8ca1fpw-16562)/restaurants/search.json?page[size]=10&page[number]=1GET
Private (https://app.clickup.com/9003122396/docs/8ca1fpw-15622/8ca1fpw-16582)/restaurants/search.json?page[size]=10&page[number]=1&city_id=1GET
Private (https://app.clickup.com/9003122396/docs/8ca1fpw-15622/8ca1fpw-16602)/restaurants/search.json?page[size]=10&page[number]=1&name_like=CafeGET
Private (https://app.clickup.com/9003122396/docs/8ca1fpw-15622/8ca1fpw-16622)/restaurants/search.json?page[size]=10&page[number]=2&service_type=dine_inGET
Private (https://app.clickup.com/9003122396/docs/8ca1fpw-15622/8ca1fpw-16642)/restaurants/search.json?page[size]=10&page[number]=1&service_type=deliveryGET
Private (https://app.clickup.com/9003122396/docs/8ca1fpw-15622/8ca1fpw-16662)/restaurants/search.json?page[size]=10&page[number]=1&tag_ids=15,35GET
Private (https://app.clickup.com/9003122396/docs/8ca1fpw-15622/8ca1fpw-16682)/restaurants/search.json?page[size]=10&page[number]=1&price[operator]=between&price[x]=1000&price[y]=15000GET
Private (https://app.clickup.com/9003122396/docs/8ca1fpw-15622/8ca1fpw-16702)/restaurants/search.json?page[size]=10&page[number]=1&package_type=ayce,ppGET
Private (https://app.clickup.com/9003122396/docs/8ca1fpw-15622/8ca1fpw-16722)/restaurants/search.json?page[size]=10&page[number]=1&tag_ids=191,37GET
Private (https://app.clickup.com/9003122396/docs/8ca1fpw-15622/8ca1fpw-16742)/locations.json?page[size]=100&page[number]=1&sort=name_ascGET
Private (https://app.clickup.com/9003122396/docs/8ca1fpw-15622/8ca1fpw-16782)/locations.json?page[size]=100&page[number]=1&sort=name_asc&city_id=1GET
Private (https://app.clickup.com/9003122396/docs/8ca1fpw-15622/8ca1fpw-16802)/cuisines.json?page[size]=100&page[number]=1&sort=name_ascGET
Private (https://app.clickup.com/9003122396/docs/8ca1fpw-15622/8ca1fpw-16822)/cuisines.json?page[size]=100&page[number]=1&sort=name_asc&city_id=1GET
Private (https://app.clickup.com/9003122396/docs/8ca1fpw-15622/8ca1fpw-16842)/package_types.json?city_id=1GET
Private (https://app.clickup.com/9003122396/docs/8ca1fpw-15622/8ca1fpw-16862)/reservations/{reservation_id}.jsonGET
Private (https://app.clickup.com/9003122396/docs/8ca1fpw-15622/8ca1fpw-16882)/reservations/uuid/history.jsonGET
Private (https://app.clickup.com/9003122396/docs/8ca1fpw-15622/8ca1fpw-16902)/reservations/555026.jsonGET

2**. Restaurant Detail Page**

DefinitionEndpointMethod
Private (https://app.clickup.com/9003122396/docs/8ca1fpw-15622/8ca1fpw-16922)/restaurants/{restaurant_id}.jsonGET
Private (https://app.clickup.com/9003122396/docs/8ca1fpw-15622/8ca1fpw-16942)/restaurants/{restaurant_id}?&include_pictures=trueGET
Private (https://app.clickup.com/9003122396/docs/8ca1fpw-15622/8ca1fpw-16962)/restaurant_packages.json?corporate_event_id=&include_restaurant=false&restaurant_id=837GET
Private (https://app.clickup.com/9003122396/docs/8ca1fpw-15622/8ca1fpw-16982)/reviews.json?restaurant_id=837&sort=newest&page[number]=1&page[size]=10GET

Get Cities With Restaurant Active

Get Cities 

Request parameter

Field NameDescriptionData typeM/OSample Value

Response parameter

Field NameDescriptionData typeM/OSample Value
dataarray of stringMandatory
idintMandatory1
typestringMandatorycities
attributesobjectMandatory{"name": "Bangkok",
"home_description": null,
"icon": {
"url": "https://hhstaging.hungryhub.com/uploads/city/icon/1/Bangkok.png"
}
namestringMandatoryBangkok
home_descriptionTagline city
stringMandatoryNo 1 Dinning apps for special occasion

Example Request GET - {{ _.base_url }}/cities.json

Example Response

{
	"data": [
		{
			"id": "1",
			"type": "cities",
			"attributes": {
				"name": "Bangkok",
				"home_description": null,
				"icon": {
					"url": "https://hhstaging.hungryhub.com/uploads/city/icon/1/Bangkok.png"
				}
			}
		},
		{
			"id": "2",
			"type": "cities",
			"attributes": {
				"name": "Chiang Mai",
				"home_description": null,
				"icon": {
					"url": "https://hhstaging.hungryhub.com/uploads/city/icon/2/Chiangmai.png"
				}
			}
		}
	],
	"success": true,
	"message": null
}

Get Restaurants List

Get Restaurant List 

Path parameter

Field NameDescriptionData typeM/OSample Value
pageobjectM"page": {
"number": "1",
"size": "2"
}
sortstringM“new”
city_idintM1
include_packagesbooleanMfalse
include_picturesbooleanMfalse
preview_modebooleanMfalse

Response parameter

Field NameDescriptionData typeM/OSample Value
dataList of restaurantArray ObjectMData : [{}]
idInside data object is restaurant detailsintM1
typeInside data object is restaurant detailsstringMrestaurants
attributesInside data object is restaurant detailsobjectMhttps://gist.github.com/nesyaafreeda/6a227822a70b42f3bfaf50fb10160e79
relationshipsRestaurant relationshipsobjectM"relationships": {
"pictures": { "data": []
},
"restaurant_packages": {       "data": []
},
"last_reviews": {
   "data": []
},
"blogger_reviews": {
   "data": []
}
}

picturesAll restaurant picture data is hereobjectM"pictures": { "data": [
{
"id": "40837",
"type":"restaurants-pictures" },
]
},
restaurant_packagesAll restaurant packages dataobjectM"restaurant_packages": { "data": [
{
"id": "3576",
"type": "restaurant-packages"}] }
last_reviewsRestaurant last views dataobjectM"last_reviews": { "data": [] }
blogger_reviewsRestaurant blogger review dataobjectM"blogger_reviews": { "data": []
}
linksAll restaurant linksObject, stringM"links": {
"self": "/api/v5/restaurants/search.json?page%5Bnumber%5D=1&page%5Bsize%5D=2",
"first": "/api/v5/restaurants/search.json?page%5Bnumber%5D=1&page%5Bsize%5D=2",
"prev": null,
"next": "/api/v5/restaurants/search.json?page%5Bnumber%5D=2&page%5Bsize%5D=2",
"last": "/api/v5/restaurants/search.json?page%5Bnumber%5D=149&page%5Bsize%5D=2"
}
meta_dataobjectM"meta_data": {
"price_ranges": {}, "total_restaurants": 2  (int)}
adsRestaurant ads dataobjectM"ads": {
"data": []
}

Example Request

{{ base_api }}/restaurants/search.json?page[size]=10&page[number]=1

Example Response

{
	"data": [
		{
			"id": "1555",
			"type": "restaurants",
			"attributes": {
				"lowest_ayce_price": "990฿",
				"lowest_pp_price": null,
				"lowest_xp_price": null,
				"lowest_hs_price": null,
				"lowest_bfp_price": null,
				"lowest_sm_price": null,
				"lowest_hah_price": null,
				"price_per_person": {
					"amount": "990.0",
					"currency": "THB",
					"symbol": "฿",
					"format": "990฿"
				},
				"price_and_pricing_type": {
					"amount": 990,
					"currency": "THB",
					"symbol": "฿",
					"format": "990฿",
					"pricing_type": "per_person"
				},
				"is_deleted": false,
				"lat": "13.805902",
				"lng": "100.524286",
				"largest_table": 10,
				"branch_id": 78,
				"min_party_size": 2,
				"name": "Orca Baker & Butcher Gateway Bangsue",
				"names": {
					"th": "Orca Baker & Butcher Lasalle's Avenue",
					"en": "Orca Baker & Butcher Gateway Bangsue"
				},
				"slug": "orca-baker-butcher-gateway-bangsue",
				"favorited": false,
				"allow_booking": true,
				"availability": "in stock",
				"reviews_score": 5.0,
				"reviews_count": 10,
				"map_location": "http://www.google.com/maps?q=13.805902,100.524286",
				"promoted_by_hh": true,
				"enable_big_group_feature": true,
				"location": "Lasalle",
				"primary_location": {
					"id": 315,
					"name": "Lasalle"
				},
				"cuisine": "Italian",
				"primary_cuisine": {
					"id": 8,
					"name": "Italian"
				},
				"image_cover_url": {
					"thumb": "",
					"large": "",
					"square": ""
				},
				"canonical_link": "https://hungryhub-build-staging.netlify.app/restaurants/orca-baker-butcher-gateway-bangsue?locale=th",
				"last_booking_was_made": "Tue, 15 Nov 2022 03:47:43 +0000",
				"total_covers": 96,
				"time_slots": {},
				"reservation_system_only": false,
				"phone": "023010210",
				"phone_for_delivery": "023010210"
			},
			"relationships": {
				"pictures": {
					"data": [
						{
							"id": "39832",
							"type": "restaurants-pictures"
						}
					]
				},
				"restaurant_packages": {
					"data": [
						{
							"id": "3576",
							"type": "restaurant-packages"
						},
						{
							"id": "3578",
							"type": "restaurant-packages"
						}
					]
				}
			}
		},
		{
			"id": "1554",
			"type": "restaurants",
			"attributes": {
				"lowest_ayce_price": "990฿",
				"lowest_pp_price": null,
				"lowest_xp_price": null,
				"lowest_hs_price": null,
				"lowest_bfp_price": null,
				"lowest_sm_price": null,
				"lowest_hah_price": null,
				"price_per_person": {
					"amount": "990.0",
					"currency": "THB",
					"symbol": "฿",
					"format": "990฿"
				},
				"price_and_pricing_type": {
					"amount": 990,
					"currency": "THB",
					"symbol": "฿",
					"format": "990฿",
					"pricing_type": "per_person"
				},
				"is_deleted": false,
				"lat": "13.741448",
				"lng": "100.511455",
				"largest_table": 10,
				"branch_id": 76,
				"min_party_size": 2,
				"name": "Ryoshi Sushi I'm Chinatown",
				"names": {
					"th": "เรียวชิ ซูชิ เกตเวย์ ไชน่าทาวน์",
					"en": "Ryoshi Sushi I'm Chinatown"
				},
				"slug": "ryoshi-sushi-i-m-chinatown",
				"favorited": false,
				"allow_booking": true,
				"availability": "in stock",
				"reviews_score": 5.0,
				"reviews_count": 1,
				"map_location": "http://www.google.com/maps?q=13.741448,100.511455",
				"promoted_by_hh": true,
				"enable_big_group_feature": true,
				"location": "Lasalle",
				"primary_location": {
					"id": 315,
					"name": "Lasalle"
				},
				"cuisine": "Japanese",
				"primary_cuisine": {
					"id": 11,
					"name": "Japanese"
				},
				"image_cover_url": {
					"thumb": "",
					"large": "",
					"square": ""
				},
				"canonical_link": "https://hungryhub-build-staging.netlify.app/restaurants/ryoshi-sushi-i-m-chinatown?locale=th",
				"last_booking_was_made": "Mon, 06 Jul 2020 08:18:26 +0000",
				"total_covers": 19,
				"time_slots": {},
				"reservation_system_only": false,
				"phone": "020666742",
				"phone_for_delivery": "020666742"
			},
			"relationships": {
				"pictures": {
					"data": [
						{
							"id": "39797",
							"type": "restaurants-pictures"
						},
						{
							"id": "39798",
							"type": "restaurants-pictures"
						}
					]
				},
				"restaurant_packages": {
					"data": [
						{
							"id": "3571",
							"type": "restaurant-packages"
						},
						{
							"id": "3573",
							"type": "restaurant-packages"
						}
					]
				}
			}
		}
	],
	"links": {
		"self": "/api/v5/restaurants/search.json?page%5Bnumber%5D=1&page%5Bsize%5D=2",
		"first": "/api/v5/restaurants/search.json?page%5Bnumber%5D=1&page%5Bsize%5D=2",
		"prev": null,
		"next": "/api/v5/restaurants/search.json?page%5Bnumber%5D=2&page%5Bsize%5D=2",
		"last": "/api/v5/restaurants/search.json?page%5Bnumber%5D=149&page%5Bsize%5D=2"
	},
	"success": true,
	"message": null,
	"meta_data": {
		"price_ranges": {},
		"total_restaurants": 2
	},
	"ads": {
		"data": []
	}
}

Get Restaurants By City (Bangkok)

Get Restaurant By city (bangkok) 

Path parameter

Field NameDescriptionData typeM/OSample Value
pageobjectM"page": {
"number": "1", (page number)
"size": "2" (size per page)
}
minor_versionintM"minor_version": 3,
sortSort bystringM"sort": "new",
city_idintM"city_id": "2",
include_packagesbooleanM"include_packages": false,
include_picturesbooleanM"include_pictures": false,
preview_modebooleanM"preview_mode": false

Response parameter (the response same as restaurant list) Response parameter

Field NameDescriptionData typeM/OSample Value
dataList of restaurantArray ObjectMData : [{}]
idInside data object is restaurant detailsintM1
typeInside data object is restaurant detailsstringMrestaurants
attributesInside data object is restaurant detailsobjectMhttps://gist.github.com/nesyaafreeda/6a227822a70b42f3bfaf50fb10160e79
relationshipsRestaurant relationshipsobjectM"relationships": {
"pictures": { "data": []
},
"restaurant_packages": {       "data": []
},
"last_reviews": {
   "data": []
},
"blogger_reviews": {
   "data": []
}
}

picturesAll restaurant picture data is hereobjectM"pictures": { "data": [
{
"id": "40837",
"type":"restaurants-pictures" },
]
},
restaurant_packagesAll restaurant packages dataobjectM"restaurant_packages": { "data": [
{
"id": "3576",
"type": "restaurant-packages"}] }
last_reviewsRestaurant last views dataobjectM"last_reviews": { "data": [] }
blogger_reviewsRestaurant blogger review dataobjectM"blogger_reviews": { "data": []
}
linksAll restaurant linksObject, stringM"links": {
"self": "/api/v5/restaurants/search.json?page%5Bnumber%5D=1&page%5Bsize%5D=2",
"first": "/api/v5/restaurants/search.json?page%5Bnumber%5D=1&page%5Bsize%5D=2",
"prev": null,
"next": "/api/v5/restaurants/search.json?page%5Bnumber%5D=2&page%5Bsize%5D=2",
"last": "/api/v5/restaurants/search.json?page%5Bnumber%5D=149&page%5Bsize%5D=2"
}
meta_dataobjectM"meta_data": {
"price_ranges": {}, "total_restaurants": 2  (int)}
adsRestaurant ads dataobjectM"ads": {
"data": []
}

Example Request JSON

{
	"page": {
		"number": "1",
		"size": "2"
	},
	"minor_version": "{{ minor_version  }}",
	"sort": "new",
	"city_id": "1",
	"include_packages": false,
	"include_pictures": false,
	"preview_mode": false
}

Example Response (the response same as restaurant list)

{
	"data": [
		{
			"id": "1555",
			"type": "restaurants",
			"attributes": {
				"lowest_ayce_price": "990฿",
				"lowest_pp_price": null,
				"lowest_xp_price": null,
				"lowest_hs_price": null,
				"lowest_bfp_price": null,
				"lowest_sm_price": null,
				"lowest_hah_price": null,
				"price_per_person": {
					"amount": "990.0",
					"currency": "THB",
					"symbol": "฿",
					"format": "990฿"
				},
				"price_and_pricing_type": {
					"amount": 990,
					"currency": "THB",
					"symbol": "฿",
					"format": "990฿",
					"pricing_type": "per_person"
				},
				"is_deleted": false,
				"lat": "13.805902",
				"lng": "100.524286",
				"largest_table": 10,
				"branch_id": 78,
				"min_party_size": 2,
				"name": "Orca Baker & Butcher Gateway Bangsue",
				"names": {
					"th": "Orca Baker & Butcher Lasalle's Avenue",
					"en": "Orca Baker & Butcher Gateway Bangsue"
				},
				"slug": "orca-baker-butcher-gateway-bangsue",
				"favorited": false,
				"allow_booking": true,
				"availability": "in stock",
				"reviews_score": 5.0,
				"reviews_count": 10,
				"map_location": "http://www.google.com/maps?q=13.805902,100.524286",
				"promoted_by_hh": true,
				"enable_big_group_feature": true,
				"location": "Lasalle",
				"primary_location": {
					"id": 315,
					"name": "Lasalle"
				},
				"cuisine": "Italian",
				"primary_cuisine": {
					"id": 8,
					"name": "Italian"
				},
				"image_cover_url": {
					"thumb": "",
					"large": "",
					"square": ""
				},
				"canonical_link": "https://hungryhub-build-staging.netlify.app/restaurants/orca-baker-butcher-gateway-bangsue?locale=th",
				"last_booking_was_made": "Tue, 15 Nov 2022 03:47:43 +0000",
				"total_covers": 96,
				"time_slots": {},
				"reservation_system_only": false,
				"phone": "023010210",
				"phone_for_delivery": "023010210"
			},
			"relationships": {
				"pictures": {
					"data": [
						{
							"id": "39832",
							"type": "restaurants-pictures"
						}
					]
				},
				"restaurant_packages": {
					"data": [
						{
							"id": "3576",
							"type": "restaurant-packages"
						},
						{
							"id": "3578",
							"type": "restaurant-packages"
						}
					]
				}
			}
		},
		{
			"id": "1554",
			"type": "restaurants",
			"attributes": {
				"lowest_ayce_price": "990฿",
				"lowest_pp_price": null,
				"lowest_xp_price": null,
				"lowest_hs_price": null,
				"lowest_bfp_price": null,
				"lowest_sm_price": null,
				"lowest_hah_price": null,
				"price_per_person": {
					"amount": "990.0",
					"currency": "THB",
					"symbol": "฿",
					"format": "990฿"
				},
				"price_and_pricing_type": {
					"amount": 990,
					"currency": "THB",
					"symbol": "฿",
					"format": "990฿",
					"pricing_type": "per_person"
				},
				"is_deleted": false,
				"lat": "13.741448",
				"lng": "100.511455",
				"largest_table": 10,
				"branch_id": 76,
				"min_party_size": 2,
				"name": "Ryoshi Sushi I'm Chinatown",
				"names": {
					"th": "เรียวชิ ซูชิ เกตเวย์ ไชน่าทาวน์",
					"en": "Ryoshi Sushi I'm Chinatown"
				},
				"slug": "ryoshi-sushi-i-m-chinatown",
				"favorited": false,
				"allow_booking": true,
				"availability": "in stock",
				"reviews_score": 5.0,
				"reviews_count": 1,
				"map_location": "http://www.google.com/maps?q=13.741448,100.511455",
				"promoted_by_hh": true,
				"enable_big_group_feature": true,
				"location": "Lasalle",
				"primary_location": {
					"id": 315,
					"name": "Lasalle"
				},
				"cuisine": "Japanese",
				"primary_cuisine": {
					"id": 11,
					"name": "Japanese"
				},
				"image_cover_url": {
					"thumb": "",
					"large": "",
					"square": ""
				},
				"canonical_link": "https://hungryhub-build-staging.netlify.app/restaurants/ryoshi-sushi-i-m-chinatown?locale=th",
				"last_booking_was_made": "Mon, 06 Jul 2020 08:18:26 +0000",
				"total_covers": 19,
				"time_slots": {},
				"reservation_system_only": false,
				"phone": "020666742",
				"phone_for_delivery": "020666742"
			},
			"relationships": {
				"pictures": {
					"data": [
						{
							"id": "39797",
							"type": "restaurants-pictures"
						},
						{
							"id": "39798",
							"type": "restaurants-pictures"
						}
					]
				},
				"restaurant_packages": {
					"data": [
						{
							"id": "3571",
							"type": "restaurant-packages"
						},
						{
							"id": "3573",
							"type": "restaurant-packages"
						}
					]
				}
			}
		}
	],
	"links": {
		"self": "/api/v5/restaurants/search.json?page%5Bnumber%5D=1&page%5Bsize%5D=2",
		"first": "/api/v5/restaurants/search.json?page%5Bnumber%5D=1&page%5Bsize%5D=2",
		"prev": null,
		"next": "/api/v5/restaurants/search.json?page%5Bnumber%5D=2&page%5Bsize%5D=2",
		"last": "/api/v5/restaurants/search.json?page%5Bnumber%5D=149&page%5Bsize%5D=2"
	},
	"success": true,
	"message": null,
	"meta_data": {
		"price_ranges": {},
		"total_restaurants": 2
	},
	"ads": {
		"data": []
	}
}

Search Restaurants By Name

Path parameter

Field NameDescriptionData typeM/OSample Value
pageobjectM"page": {
"number": "1", (page number)
"size": "2" (size per page)
}
minor_versionintM"minor_version": 3,
sortSort bystringM"sort": "new",
name_likestringM"name_like": "Cafe",
include_packagesbooleanM"include_packages": false,
include_picturesbooleanM"include_pictures": false,
preview_modebooleanM"preview_mode": false

Response parameter

Field NameDescriptionData typeM/OSample Value
dataList of restaurantArray ObjectMData : [{}]
idInside data object is restaurant detailsintM1
typeInside data object is restaurant detailsstringMrestaurants
attributesInside data object is restaurant detailsobjectMhttps://gist.github.com/nesyaafreeda/6a227822a70b42f3bfaf50fb10160e79
relationshipsRestaurant relationshipsobjectM"relationships": {
"pictures": { "data": []
},
"restaurant_packages": {       "data": []
},
"last_reviews": {
   "data": []
},
"blogger_reviews": {
   "data": []
}
}

picturesAll restaurant picture data is hereobjectM"pictures": { "data": [
{
"id": "40837",
"type":"restaurants-pictures" },
]
},
restaurant_packagesAll restaurant packages dataobjectM"restaurant_packages": { "data": [
{
"id": "3576",
"type": "restaurant-packages"}] }
last_reviewsRestaurant last views dataobjectM"last_reviews": { "data": [] }
blogger_reviewsRestaurant blogger review dataobjectM"blogger_reviews": { "data": []
}
linksAll restaurant linksObject, stringM"links": {
"self": "/api/v5/restaurants/search.json?page%5Bnumber%5D=1&page%5Bsize%5D=2",
"first": "/api/v5/restaurants/search.json?page%5Bnumber%5D=1&page%5Bsize%5D=2",
"prev": null,
"next": "/api/v5/restaurants/search.json?page%5Bnumber%5D=2&page%5Bsize%5D=2",
"last": "/api/v5/restaurants/search.json?page%5Bnumber%5D=149&page%5Bsize%5D=2"
}
meta_dataobjectM"meta_data": {
"price_ranges": {}, "total_restaurants": 2  (int)}
adsRestaurant ads dataobjectM"ads": {
"data": []
}

Example Request JSON

{
	"page": {
		"number": "1",
		"size": "2"
	},
	"minor_version": 3,
	"sort": "new",
	"name_like": "Cafe",
	"include_packages": false,
	"include_pictures": false,
	"preview_mode": false
}

Example Response JSON

{
	"data": [
		{
			"id": "1555",
			"type": "restaurants",
			"attributes": {
				"lowest_ayce_price": "990฿",
				"lowest_pp_price": null,
				"lowest_xp_price": null,
				"lowest_hs_price": null,
				"lowest_bfp_price": null,
				"lowest_sm_price": null,
				"lowest_hah_price": null,
				"price_per_person": {
					"amount": "990.0",
					"currency": "THB",
					"symbol": "฿",
					"format": "990฿"
				},
				"price_and_pricing_type": {
					"amount": 990,
					"currency": "THB",
					"symbol": "฿",
					"format": "990฿",
					"pricing_type": "per_person"
				},
				"is_deleted": false,
				"lat": "13.805902",
				"lng": "100.524286",
				"largest_table": 10,
				"branch_id": 78,
				"min_party_size": 2,
				"name": "Orca Baker & Butcher Gateway Bangsue",
				"names": {
					"th": "Orca Baker & Butcher Lasalle's Avenue",
					"en": "Orca Baker & Butcher Gateway Bangsue"
				},
				"slug": "orca-baker-butcher-gateway-bangsue",
				"favorited": false,
				"allow_booking": true,
				"availability": "in stock",
				"reviews_score": 5.0,
				"reviews_count": 10,
				"map_location": "http://www.google.com/maps?q=13.805902,100.524286",
				"promoted_by_hh": true,
				"enable_big_group_feature": true,
				"location": "Lasalle",
				"primary_location": {
					"id": 315,
					"name": "Lasalle"
				},
				"cuisine": "Italian",
				"primary_cuisine": {
					"id": 8,
					"name": "Italian"
				},
				"image_cover_url": {
					"thumb": "",
					"large": "",
					"square": ""
				},
				"canonical_link": "https://hungryhub-build-staging.netlify.app/restaurants/orca-baker-butcher-gateway-bangsue?locale=th",
				"last_booking_was_made": "Tue, 15 Nov 2022 03:47:43 +0000",
				"total_covers": 96,
				"time_slots": {},
				"reservation_system_only": false,
				"phone": "023010210",
				"phone_for_delivery": "023010210"
			},
			"relationships": {
				"pictures": {
					"data": [
						{
							"id": "39832",
							"type": "restaurants-pictures"
						}
					]
				},
				"restaurant_packages": {
					"data": [
						{
							"id": "3576",
							"type": "restaurant-packages"
						},
						{
							"id": "3578",
							"type": "restaurant-packages"
						}
					]
				}
			}
		},
		{
			"id": "1554",
			"type": "restaurants",
			"attributes": {
				"lowest_ayce_price": "990฿",
				"lowest_pp_price": null,
				"lowest_xp_price": null,
				"lowest_hs_price": null,
				"lowest_bfp_price": null,
				"lowest_sm_price": null,
				"lowest_hah_price": null,
				"price_per_person": {
					"amount": "990.0",
					"currency": "THB",
					"symbol": "฿",
					"format": "990฿"
				},
				"price_and_pricing_type": {
					"amount": 990,
					"currency": "THB",
					"symbol": "฿",
					"format": "990฿",
					"pricing_type": "per_person"
				},
				"is_deleted": false,
				"lat": "13.741448",
				"lng": "100.511455",
				"largest_table": 10,
				"branch_id": 76,
				"min_party_size": 2,
				"name": "Ryoshi Sushi I'm Chinatown",
				"names": {
					"th": "เรียวชิ ซูชิ เกตเวย์ ไชน่าทาวน์",
					"en": "Ryoshi Sushi I'm Chinatown"
				},
				"slug": "ryoshi-sushi-i-m-chinatown",
				"favorited": false,
				"allow_booking": true,
				"availability": "in stock",
				"reviews_score": 5.0,
				"reviews_count": 1,
				"map_location": "http://www.google.com/maps?q=13.741448,100.511455",
				"promoted_by_hh": true,
				"enable_big_group_feature": true,
				"location": "Lasalle",
				"primary_location": {
					"id": 315,
					"name": "Lasalle"
				},
				"cuisine": "Japanese",
				"primary_cuisine": {
					"id": 11,
					"name": "Japanese"
				},
				"image_cover_url": {
					"thumb": "",
					"large": "",
					"square": ""
				},
				"canonical_link": "https://hungryhub-build-staging.netlify.app/restaurants/ryoshi-sushi-i-m-chinatown?locale=th",
				"last_booking_was_made": "Mon, 06 Jul 2020 08:18:26 +0000",
				"total_covers": 19,
				"time_slots": {},
				"reservation_system_only": false,
				"phone": "020666742",
				"phone_for_delivery": "020666742"
			},
			"relationships": {
				"pictures": {
					"data": [
						{
							"id": "39797",
							"type": "restaurants-pictures"
						},
						{
							"id": "39798",
							"type": "restaurants-pictures"
						}
					]
				},
				"restaurant_packages": {
					"data": [
						{
							"id": "3571",
							"type": "restaurant-packages"
						},
						{
							"id": "3573",
							"type": "restaurant-packages"
						}
					]
				}
			}
		}
	],
	"links": {
		"self": "/api/v5/restaurants/search.json?page%5Bnumber%5D=1&page%5Bsize%5D=2",
		"first": "/api/v5/restaurants/search.json?page%5Bnumber%5D=1&page%5Bsize%5D=2",
		"prev": null,
		"next": "/api/v5/restaurants/search.json?page%5Bnumber%5D=2&page%5Bsize%5D=2",
		"last": "/api/v5/restaurants/search.json?page%5Bnumber%5D=149&page%5Bsize%5D=2"
	},
	"success": true,
	"message": null,
	"meta_data": {
		"price_ranges": {},
		"total_restaurants": 2
	},
	"ads": {
		"data": []
	}
}

Filter Restaurants By Service Type (Dine In)

Path parameter

Field NameDescriptionData typeM/OSample Value
pageobjectM"page": {
"number": "1", (page number)
"size": "2" (size per page)
}
minor_versionintM"minor_version": 3,
sortSort bystringM"sort": "new",
service_typestringM"service_type": "delivery" OR
"service_type": "dine_in",
include_packagesbooleanM"include_packages": false,
include_picturesbooleanM"include_pictures": false,
preview_modebooleanM"preview_mode": false

Response parameter(the response same as restaurant list)

Field NameDescriptionData typeM/OSample Value

Example Request JSON

{
	"page": {
		"number": "1",
		"size": "2"
	},
	"minor_version": 3,
	"sort": "new",
"service_type": "delivery", -> change this to "service_type": "dine_in" if you search dine in restaurant
	"include_packages": false,
	"include_pictures": false,
	"preview_mode": false
}

Example Response

(the response same as restaurant list)

Filter Restaurants By Service Type (Delivery)

Path parameter

Field NameDescriptionData typeM/OSample Value
pageobjectM"page": {
"number": "1", (page number)
"size": "2" (size per page)
}
minor_versionintM"minor_version": 3,
sortSort bystringM"sort": "new",
service_typestringM"service_type": "delivery" OR
"service_type": "dine_in",
include_packagesbooleanM"include_packages": false,
include_picturesbooleanM"include_pictures": false,
preview_modebooleanM"preview_mode": false

Response parameter(the response same as restaurant list)

Field NameDescriptionData typeM/OSample Value

Example Request JSON

{
	"page": {
		"number": "1",
		"size": "2"
	},
	"minor_version": 3,
	"sort": "new",
"service_type": "delivery", -> change this to "service_type": "dine_in" if you search dine in restaurant
	"include_packages": false,
	"include_pictures": false,
	"preview_mode": false
}

Example Response

(the response same as restaurant list)

Filter Restaurants By Cuisines (Cuisine IDs)

Filter Restaurants By Cuisines (Cuisine IDs)

Path parameter

Field NameDescriptionData typeM/OSample Value
pageobjectM"page": {
"number": "1", (page number)
"size": "2" (size per page)
}
minor_versionintM"minor_version": 3,
sortSort bystringM"sort": "new",
tag_idsArray integerM"tag_ids": [191,37],
include_packagesbooleanM"include_packages": false,
include_picturesbooleanM"include_pictures": false,
preview_modebooleanM"preview_mode": false

Response parameter(the response same as restaurant list)

Field NameDescriptionData typeM/OSample Value

Example Request JSON

{
	"page": {
		"number": "1",
		"size": "2"
	},
	"minor_version": 3,
	"sort": "new",
 "tag_ids": [191,37],
	"include_packages": false,
	"include_pictures": false,
	"preview_mode": false
}

Example Response

(the response same as restaurant list)

Filter Restaurants By Price Range (1000 - 15000)

Filter Restaurants By Price Range (1000 - 15000)

Path parameter

Field NameDescriptionData typeM/OSample Value
pageobjectM"page": {
"number": "1", (page number)
"size": "2" (size per page)
}
minor_versionintM"minor_version": 3,
sortSort bystringM"sort": "new",
priceobjectM"price":{
"Operator":"between",
"x": 1000,
"y": 15000
}
include_packagesbooleanM"include_packages": false,
include_picturesbooleanM"include_pictures": false,
preview_modebooleanM"preview_mode": false

Response parameter(the response same as restaurant list)

Field NameDescriptionData typeM/OSample Value

Example Request JSON

{
	"page": {
		"number": "1",
		"size": "2"
	},
	"minor_version": 3,
	"sort": "new",
"price":{
	"operator": "between",
	"x": 1000,
	"y": 15000
},
	"include_packages": false,
	"include_pictures": false,
	"preview_mode": false
}

Example Response

(the response same as restaurant list)

Filter Restaurants By Package Type (All You Can Eat & Party Pack)

Get package type

Path parameter

Field NameDescriptionData typeM/OSample Value
city_idintOptional1

Response parameter

Field NameDescriptionData typeM/OSample Value
dataarray of stringMandatory
idintMandatory1
typepackagestringMandatorypackage_type
attributesobjectMandatory
titleTittle citystringMandatoryAll You Can Eat
descriptiondescriptionstringMandatory
package_type_codestringMandatoryayce
cover_imgCover image urlobjectMandatory
urlstringMandatory

Example Request: -

Example Response

{
	"data": [
		{
			"id": "1",
			"type": "package_type",
			"attributes": {
				"title": "All You Can Eat",
				"description": "สั่งได้ไม่อั้น ทานได้เต็มที่ ที่ร้านโปรดของคุณ!",
				"cover_img": {
					"url": "/uploads/package_type/cover_img/1/Frame_39852.png"
				},
				"color_code": "FBEE4D",
				"package_type_code": "ayce",
				"alt_text": null
			}
		},
		{
			"id": "2",
			"type": "package_type",
			"attributes": {
				"title": "Party Pack",
				"description": "ชุดอาหารสุดคุ้ม เลือกเมนูได้ตามที่ต้องการ แถมคุมงบได้ง่ายขึ้น!",
				"cover_img": {
					"url": "/uploads/package_type/cover_img/2/Group_40052.png"
				},
				"color_code": "00D3C2",
				"package_type_code": "pp",
				"alt_text": null
			}
		}
	],
	"success": true,
	"message": null
}

Get Locations By City (Bangkok)

Get All Locations

Path parameter

Field NameDescriptionData typeM/OSample Value
page[number]Limit pageintegermandatory1
page[size]paginationintegermandatory100
sortSort bystringmandatoryname_asc

Response parameter

Field NameDescriptionData typeM/OSample Value
dataarray of stringmandatory
idstringmandatory264
typestringmandatorylocations
attributesstringmandatory
nameName in thaistringmandatory"สะพานควาย",
name_enName in englishstringmandatorySaphan Khwai
total_restaurantsintegermandatory312

Example Request

{{ _.base_url }}/api/v5/locations.json?page[size]=100&page[number]=1&sort=name_asc

Example Response

{
	"data": [
		{
			"id": "324",
			"type": "locations",
			"attributes": {
				"name": "กัลปพฤกษ์",
				"name_en": "Kalapapruek",
				"total_restaurants": 312
			}
		},
		{
			"id": "386",
			"type": "locations",
			"attributes": {
				"name": "กาญจนาภิเษก",
				"name_en": "kanchanaphisek",
				"total_restaurants": 312
			}
		},
		{
			"id": "420",
			"type": "locations",
			"attributes": {
				"name": "กิ่งแก้ว",
				"name_en": "King Keaw",
				"total_restaurants": 312
			}
		},
		
		
	],
	"links": {
		"self": "/api/v5/locations.json?page%5Bnumber%5D=1&page%5Bsize%5D=100&page%5Bnumber%5D=1&page%5Bsize%5D=100&sort=name_asc",
		"first": "/api/v5/locations.json?page%5Bnumber%5D=1&page%5Bsize%5D=100&page%5Bnumber%5D=1&page%5Bsize%5D=100&sort=name_asc",
		"prev": null,
		"next": "/api/v5/locations.json?page%5Bnumber%5D=1&page%5Bsize%5D=100&page%5Bnumber%5D=2&page%5Bsize%5D=100&sort=name_asc",
		"last": "/api//v5/locations.json?page%5Bnumber%5D=1&page%5Bsize%5D=100&page%5Bnumber%5D=2&page%5Bsize%5D=100&sort=name_asc"
	},
	"success": true,
	"message": null
}

Get Locations By City (Bangkok)

Get All Cuisines

Path parameter

Field NameDescriptionData typeM/OSample Value
page[number]Limit pageintegermandatory1
page[size]paginationintegermandatory100
sortSort bystringmandatoryname_asc

Response parameter

Field NameDescriptionData typeM/OSample Value
dataarray of stringmandatory
idstringmandatory454
typeType responsestringmandatorycuisines
attributesstringmandatory
nameName in thaistringmandatoryก๋วยเตี๋ยว
name_enName in englishstringmandatoryNoodle
total_restaurantsTotal restaurantsintegermandatory312
coverImage coverobject
urlstring
thumb_urlstring

Example Request

{{ _.base_url }}/api/v5/cuisines.json?page[size]=100&page[number]=1&sort=name_asc

Example Response

{
	"data": [
		{
			"id": "454",
			"type": "cuisines",
			"attributes": {
				"name": "Staycation",
				"name_en": "Staycation",
				"total_restaurants": 312,
				"cover": {
					"url": "https://hhstaging.hungryhub.com/uploads/restaurant_tag/cover/454/bromo.jpeg",
					"thumb_url": "https://hhstaging.hungryhub.com/uploads/restaurant_tag/cover/454/bromo.jpeg"
				}
			}
		},
		{
			"id": "762",
			"type": "cuisines",
			"attributes": {
				"name": "Testing",
				"name_en": "Testing",
				"total_restaurants": 312,
				"cover": {
					"url": "https://hhstaging.hungryhub.com/uploads/restaurant_tag/cover/762/825.jpg",
					"thumb_url": "https://hhstaging.hungryhub.com/uploads/restaurant_tag/cover/762/825.jpg"
				}
			}
		},
		{
			"id": "14",
			"type": "cuisines",
			"attributes": {
				"name": "ก๋วยเตี๋ยว",
				"name_en": "Noodle",
				"total_restaurants": 312,
				"cover": {
					"url": "https://hhstaging.hungryhub.com/uploads/restaurant_tag/cover/14/cuisine-noodle.jpeg",
					"thumb_url": "https://hhstaging.hungryhub.com/uploads/restaurant_tag/cover/14/cuisine-noodle.jpeg"
				}
			}
		},
		
	],
	"links": {
		"self": "/api/v5/cuisines.json?page%5Bnumber%5D=1&page%5Bsize%5D=100&page%5Bnumber%5D=1&page%5Bsize%5D=100&sort=name_asc",
		"first": "/api/v5/cuisines.json?page%5Bnumber%5D=1&page%5Bsize%5D=100&page%5Bnumber%5D=1&page%5Bsize%5D=100&sort=name_asc",
		"prev": null,
		"next": null,
		"last": "/api/v5/cuisines.json?page%5Bnumber%5D=1&page%5Bsize%5D=100&page%5Bnumber%5D=1&page%5Bsize%5D=100&sort=name_asc"
	},
	"success": true,
	"message": null
}

Filter Restaurants By Locations (Location IDs)

Path parameter

Field NameDescriptionData typeM/OSample Value
pageobjectM"page": {
"number": "1", (page number)
"size": "2" (size per page)
}
minor_versionintM"minor_version": 3,
sortSort bystringM"sort": "new",
tag_idsArray integerM"tag_ids": [191,37],
include_packagesbooleanM"include_packages": false,
include_picturesbooleanM"include_pictures": false,
preview_modebooleanM"preview_mode": false

Response parameter(the response same as restaurant list)

Field NameDescriptionData typeM/OSample Value

Example Request JSON

{
	"page": {
		"number": "1",
		"size": "2"
	},
	"minor_version": 3,
	"sort": "new",
"tag_ids": [191,37],
	"include_packages": false,
	"include_pictures": false,
	"preview_mode": false
}

Example Response

(the response same as restaurant list)

Get Locations By City (Bangkok)

Get Package Types

Get Package types

Path parameter

Field NameDescriptionData typeM/OSample Value
city_idintmandatory1

Response parameter

Field NameDescriptionData typeM/OSample Value
dataArray of objmandatory
idstringmandatory1
attributesobjmandatory
idstringmandatory1
tittleTittle packagestringmandatoryAll You Can Ea
descriptionDescription packagestringmandatoryUnlimited dining at your favorite restaurants!
cover_imgImage packagestringobjhttps://hhstaging.hungryhub.com/uploads/package_type/cover_img/1/preview-gallery-Frame_3981__1_.png
color_codeCode colorstringmandatoryhttps://hhstaging.hungryhub.com/uploads/package_type/cover_img/1/preview-gallery-Frame_3981__1_.png
package_type_codePackage typestringmandatoryayce
alt_textstringmandatory"text in en

Example Request

{{ _.base_url }}/api/v5/package_types.json?city_id=1

Example Response

{
	"data": [
		{
			"id": "1",
			"type": "package_type",
			"attributes": {
				"id": 1,
				"title": "All You Can Eat",
				"description": "Unlimited dining at your favorite restaurants!",
				"cover_img": {
					"url": "https://hhstaging.hungryhub.com/uploads/package_type/cover_img/1/preview-gallery-Frame_3981__1_.png"
				},
				"color_code": "FBEE4D",
				"package_type_code": "ayce",
				"alt_text": "text in en"
			}
		},
		{
			"id": "2",
			"type": "package_type",
			"attributes": {
				"id": 2,
				"title": "Party Pack",
				"description": "Pick and choose from a large menu at a controlled price!",
				"cover_img": {
					"url": "https://hhstaging.hungryhub.com/uploads/package_type/cover_img/2/PP.png"
				},
				"color_code": "00D3C2",
				"package_type_code": "pp",
				"alt_text": "Coba"
			}
		},
		{
			"id": "3",
			"type": "package_type",
			"attributes": {
				"id": 3,
				"title": "Xperience",
				"description": "Pair dining deals with your favorite experiences!",
				"cover_img": {
					"url": "https://hhstaging.hungryhub.com/uploads/package_type/cover_img/3/XP.png"
				},
				"color_code": "8FDCE4",
				"package_type_code": "xp",
				"alt_text": null
			}
		},
		{
			"id": "4",
			"type": "package_type",
			"attributes": {
				"id": 4,
				"title": "Hungry Lunch",
				"description": "Pair dining deals with your favorite experiences!",
				"cover_img": {
					"url": "https://hhstaging.hungryhub.com/uploads/package_type/cover_img/4/default-restaurant-logo.png"
				},
				"color_code": "6ABFFF",
				"package_type_code": "hs",
				"alt_text": null
			}
		},
		{
			"id": "5",
			"type": "package_type",
			"attributes": {
				"id": 5,
				"title": "Buffet Plus",
				"description": "Special buffets with exclusive perks!",
				"cover_img": {
					"url": "https://hhstaging.hungryhub.com/uploads/package_type/cover_img/5/BY.png"
				},
				"color_code": "FFAA4B",
				"package_type_code": "bfp",
				"alt_text": null
			}
		},
		{
			"id": "7",
			"type": "package_type",
			"attributes": {
				"id": 7,
				"title": "Hungry@Home",
				"description": "Exclusive deals ready for delivery and self pick-up!",
				"cover_img": {
					"url": "https://hhstaging.hungryhub.com/uploads/package_type/cover_img/7/HH__1_.png"
				},
				"color_code": "BC64FF",
				"package_type_code": "hah",
				"alt_text": null
			}
		}
	]
}

Get Detail Booking Based On UUID

Path parameter

Field NameDescriptionData typeM/OSample Value
booking_idintegerMandatory539495
payloadtokenobjMandatory"M2Y4N2ZiYjljLTgxYTUtMTFlZC1hMWViLTAyNDJhYzEyMDAwMg=="

Response parameter

Field NameDescriptionData typeM/OSample Value
dataMandatory
idBooking idintMandatory539495
typestringMandatoryreservation
attributesobjMandatory
restaurant_idrestaurant_idstringMandatory816
dateBooking datestringMandatory
nameUser namestringMandatorymonyta
special_requestAny special request to restaurantstringMandatoryspicy
adultCustomer adultintMandatory1
kidsCustomer kidsintMandatory1
qrcodeQrcode bookingbase64Mandatorydata:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAfQAAAH0AQAAAADjreInAAACE0lEQVR4nO3cQW7CMBBAURsq0R3cINwkvVnIzcpNyA3Krkilbjy2aztEFRIJxeh70ybhaVhZ48kMC3PT+lio2xYej8fj8Xg8Ho/H4/F4PP5Kb3S2Xuy9cLFRp/zpZvr4eDy+aB/Lup9KNhR3cZCHy/j0MFN8PB5fsm+T7KLfPbTeqb3e+oc+Q3mbMT4ej38i3+omSzfuHR+Px5fsY/7xP/HxeHwhvnFNbfK/1D92qv694csh7zPGx+Pxpfr4fuU1/UgnBZFzfLqdKT4ejy/U67yx/kvuSf207vOP1aDtfvr4eDz+CXzns4xlOK50vv/DfzQviDze98fj8Xf3Rmv3/nbbX6xi/lGn6YbdVxr6P/B4/KivZXc4uf5TWz/N+j/sjVAQmSc+Ho8v09v9ofXljiT/2Pfbha1/fKcFkTni4/H4Qn2/d9g/druozFGvzNmlGzH/kE80viAyeXw8Hl+0d6eTaph/HNQxDNS5VZF/4PH41I/N34b8Yy0DdX65A83k8fF4fNE+n7+V5eZfjnptTvH9LfUPPB5/6dP5WxXLpclAv52/pf6Bx+P/9r5cauS4Yl/oyu7B/Asej7/Kh4JqJwMxvsOsoX8dj8eP+GYw3eIPNFV/flna/o/8he708fF4fKn+Yv429K+7/MN3iNB/isfjB35s/jb83Mc63LjMUB7m++PxeDwej8fj8Xg8Ho/H40fXD9X1YqrKyLVOAAAAAElFTkSuQmCC
phoneCustomer phonestringMandatory0812343
emailCustomer emailstringMandatorytest@gmail.com
service_typeService typestringMandatorydine_in
service_type_humanizestringMandatoryDine_in
distance_to_restaurantDelivery onlyintMandatory2
encrypted_idEncrypted booking idstringMandatory6gmO1
qr_code_for_paymentqrcodestringMandatorynull
charge_priceCharge priceintMandatory2980
total_priceTotal priceintMandatory3000
charge_amount_typeType chargestringMandatoryrelative
charge_percentPercent chargeintMandatory100
charge_typeCharge typestringMandatoryon_charge
delivery_fee_in_bahtDelivery feestringMandatory0
delivery_fee_per_km_in_bahtDelivery fee in kmstringMandatory10
skip_start_timebooleanMandatoryfalse
true_wallet_urlUrl true walletstringMandatory
shopee_pay_urlUrl shopee paystringMandatory
corporate_event_idMandatory
reservation_encrypted_idEncrypt booking idstringMandatory6gmO1
partner_user_idpartner user idstringMandatoryM2Y4N2ZiYjljLTgxYTUtMTFlZC1hMWViLTAyNDJhYzEyMDAwMg==

Example Request

curl --request GET \
  --url https://hhstaging.hungryhub.com/api/v5/reservations/555026.json \
  --header 'Content-Type: application/json' \
  --header 'X-HH-Language: en-US' \
  --data '{

		"token": "M2Y4N2ZiYjljLTgxYTUtMTFlZC1hMWViLTAyNDJhYzEyMDAwMg=="

}'

Example Response

{
	"data": {
		"id": "539495",
		"type": "reservations",
		"attributes": {
			"restaurant_id": 816,
			"date": "2021-03-05",
			"name": monyta,
			"special_request": "กระเพราเนื้อไม่ใส่น้ำมันนะครับ ผัดน้ำเปล่าเลยครับ ( แกงเขียวหวานไก่ (พร้อมข้าวสวยหอมมะลิ) X1,ข้าวกะเพราเนื้อวากิว + ไข่ออนเซ็น X1,สลัดซีซ่าร์ X1,ซุปเห็ดทรัฟเฟิล 1 ถ้วย + ขนมปังกระเทียม X1,สเต๊กปลาแซลมอน เสิร์ฟพร้อมซอสเทอริยากิ X1,กุ้งแม่น้ำย่าง 4 ตัว + น้ำจิ้มซีฟู้ด X1,ช็อคโกแลตลาวา เสิร์ฟพร้อมซอสราสเบอร์รี่ X1)",
			"adult": 1,
			"kids": 0,
			"qrcode": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAfQAAAH0AQAAAADjreInAAACE0lEQVR4nO3cQW7CMBBAURsq0R3cINwkvVnIzcpNyA3Krkilbjy2aztEFRIJxeh70ybhaVhZ48kMC3PT+lio2xYej8fj8Xg8Ho/H4/F4PP5Kb3S2Xuy9cLFRp/zpZvr4eDy+aB/Lup9KNhR3cZCHy/j0MFN8PB5fsm+T7KLfPbTeqb3e+oc+Q3mbMT4ej38i3+omSzfuHR+Px5fsY/7xP/HxeHwhvnFNbfK/1D92qv694csh7zPGx+Pxpfr4fuU1/UgnBZFzfLqdKT4ejy/U67yx/kvuSf207vOP1aDtfvr4eDz+CXzns4xlOK50vv/DfzQviDze98fj8Xf3Rmv3/nbbX6xi/lGn6YbdVxr6P/B4/KivZXc4uf5TWz/N+j/sjVAQmSc+Ho8v09v9ofXljiT/2Pfbha1/fKcFkTni4/H4Qn2/d9g/druozFGvzNmlGzH/kE80viAyeXw8Hl+0d6eTaph/HNQxDNS5VZF/4PH41I/N34b8Yy0DdX65A83k8fF4fNE+n7+V5eZfjnptTvH9LfUPPB5/6dP5WxXLpclAv52/pf6Bx+P/9r5cauS4Yl/oyu7B/Asej7/Kh4JqJwMxvsOsoX8dj8eP+GYw3eIPNFV/flna/o/8he708fF4fKn+Yv429K+7/MN3iNB/isfjB35s/jb83Mc63LjMUB7m++PxeDwej8fj8Xg8Ho/H40fXD9X1YqrKyLVOAAAAAElFTkSuQmCC",
			"phone": "+66857732771",
			"email": "hihihi@gmail.com",
			"service_type": "dine_in",
			"service_type_humanize": "Dine In",
			"delivery_address_humanize": null,
			"distance_to_restaurant": null,
			"encrypted_id": "6gmO1",
			"qr_code_for_payment": null,
			"charge_price": 2980,
			"total_price": 1000,
			"charge_amount_type": "relative",
			"charge_percent": 100,
			"charge_type": "on_charge",
			"delivery_fee_in_baht": "0",
			"delivery_fee_per_km_in_baht": "20",
			"skip_start_time": false,
			"true_wallet_url": "",
			"shopee_pay_url": "",
			"corporate_event_id": null,
			"reservation_encrypted_id": "6gmO1",
			"partner_user_id": null
		}
	},
	"success": true
}

Get Booking Histories

Path parameter

Field NameDescriptionData typeM/OSample Value
tokenToken from authstringMandatoryM2Y4N2ZiYjljLTgxYTUtMTFlZC1hMWViLTAyNDJhYzEyMDAwMg==
sortSortingstringOptionalcreated_at_desc

Response parameter

Field NameDescriptionData typeM/OSample Value
dataArray of obj
idBooking idstring555026
typereservationstringreservation
attributesobject
idBooking idint555026
restaurant_idRestaurant idstring443
created_atBooking creation dates2022-11-15T20:00:00+07:00
dateBooking datestring2022-11-18
nameBooking namestringtesting
special_requestSpecial requeststring
adultCustomer adultint2
kidsCustomer kidsint0
phoneCustomer phonestring66628212472
emailCustomer emailstringtest@gmail.com
service_typeService typestringdine_in
service_type_humanizestringDine_in
distance_to_restaurantFor delivery distancestring2
encrypted_idEncrypted bookingstringy3J8P
qr_code_for_paymentQr code paymenrbase64
charge_pricepriceint1780
total_priceTotal priceint1780
charge_amount_typeCharge typestringrelative
charge_percentCharge percentint100
charge_typeCharge type
delivery_fee_in_bahtDelivery feestring0
delivery_fee_per_km_in_bahtDelivery fee per kmstring10
skip_start_timebooleanfalse
true_wallet_urlUrl true walletstring
shopee_pay_urlUrl shopee paystring
corporate_event_idEven idstring
reservation_encrypted_idstringy3J8P
partner_user_idUuid from partner when authstring3f87fbb9c-81a5-11ed-a1eb-0242ac120002
delivery_feeobject
amountint10
formatstring฿10
currencystringTHB
image_cover_urlobject
thumbstringhttps://images.hungryhub.com/uploads/restaurants/3958/photos/99187/RackMultipart20230621-211-1r7uiyi.jpg
largestringhttps://images.hungryhub.com/uploads/restaurants/3958/photos/99187/RackMultipart20230621-211-1r7uiyi.jpg
squarestringhttps://images.hungryhub.com/uploads/restaurants/3958/photos/99187/RackMultipart20230621-211-1r7uiyi.jpg
original_delivery_feeobject
amountint10
formatstring฿10
currencystringTHB
start_timeStart time bookingstring18:15
statusStatus bookingstringarrived
status_as_symbolstringArrived
share_urlShere urlstringhttps://hhstaging.hungryhub.com/share-to-friends.html?reservation_id=y3J8P
modify_urlstringhttps://hhstaging.hungryhub.com/reservations/my-reservation/y3J8P.html
estimation_delivered_atFor delivery servicestring19:00
driver_tracking_linkFor delivery servicestring
review_urlReviewers urlstringhttps://hhstaging.hungryhub.com/bookings/y3J8P/reviews/new.htm
packagesList packageArray of obj
namePackage namestringMojjo All You Can Eat with Free Flow Mocktail
amountAmount packagestring890
net_priceNet pricestring฿890
quantityqtystring2
idPackage idstring1149
is_add_onAdd on packagebooleanfalse
pricing_typeType pricingstringper_person
sectionssection
kids_price_rateKids rateint50
kids_price_v2Kids v2Array of obj[
{
"price_policy":"Height not over 80 cm",
"price_value":"Free"
},
{
"price_policy":"Height between 81-100 cm",
"price_value":"฿99"
},
{
"price_policy":"Height between 101-130 cm",
"price_value":"฿445"
}

use_kids_priceUse kids pricebooleantrue
rulesRules restaurantArray of obj[
{
"price_description":"",
"price":"฿900",
"min_seat":2,
"max_seat":"Infinity",
"per_pack":null,
"duration":90
}
]
skip_time_selectionstring
is_accept_many_quantityAccept many qtybooleanfalse
custom_net_pricestring
delivery_statusFor delivery servicestring
driverDriver nameobject
price_amountamountstring1780.0
price_currencycurrencystringTHB
typeType packagestringAll You Can Eat
pricing_typePackage typestringper_person
type_shortPackage type shortstringayce
restaurant_nameRestaurant namestringMojjo Rooftop Lounge & Bar
restaurant_name_enRestaurant name englishstringMojjo Rooftop Lounge & Bar
my_ratingUser ratingint0
hungry_pointsHungry pointsint20
has_prepaymentSelection for paymentbooleanfalse
used_voucherUsed voucherarray
payment_typePayment typestring
reedem_pointspointsstring
dining_occasionint
map_locationMaps restaurantstringmandatoryhttp://www.google.com/maps?q=13.729206,100.569088
metadataPagination for historyobjectmandatory
scaffold_urlUrl history bookingstringmandatoryhttps://hhstaging.hungryhub.com/api/v5/reservations/history.json?page=__pagy_page__
first_urlFirst urlstringmandatoryhttps://hhstaging.hungryhub.com/api/v5/reservations/history.json?page=1
prev_urlPreview urlstringmandatoryhttps://hhstaging.hungryhub.com/api/v5/reservations/history.json?page=
page_urlstringmandatoryhttps://hhstaging.hungryhub.com/api/v5/reservations/history.json?page=1
next_urlNext urlstringmandatoryhttps://hhstaging.hungryhub.com/api/v5/reservations/history.json?page=
last_urlLast urlstringmandatoryhttps://hhstaging.hungryhub.com/api/v5/reservations/history.json?page=1
countCount historyintmandatory1
pagepageintmandatory1
itemsTotal itemsintmandatory1
varsobjectmandatory
pageintmandatory1
itemsTotal itemsintmandatory20
outsizeintmandatory0
sizeFormat paginationarray[
1,
4,
4,
1
]
page_paramparamsstringpage
paramsobject
anchorstring
link_extrastring
i18n_keystringpagy.item_name
cycleboolean
metadataarray[
"scaffold_url",
"first_url",
"prev_url",
"page_url",
"next_url",
"last_url",
"count",
"page",
"items",
"vars",
"pages",
"last",
"from",
"to",
"prev",
"next",
"series"
]
stepsbooleanfalse
overflowstring"empty_page"
countint1
pagesint1
lastint1
fromint1
toint1
prevint
nextint
seriesarray[
"1"
]

Example Request

curl --request GET \
  --url https://hhstaging.hungryhub.com/api/v5/reservations/history.json \
  --header 'Content-Type: application/json' \
  --header 'X-HH-Language: en-US' \
  --data '{
	"token": "M2Y4N2ZiYjljLTgxYTUtMTFlZC1hMWViLTAyNDJhYzEyMDAwMg=="
}'

Example Response

{
	"data": [
		{
			"id": "555026",
			"type": "reservation",
			"attributes": {
				"id": 555026,
				"restaurant_id": 643,
				"date": "2022-11-18",
				"name": "Monyta",
				"special_request": "",
				"adult": 2,
				"kids": 0,
				"phone": "+66628212472",
				"email": "monyta@hungryhub.com",
				"service_type": "dine_in",
				"service_type_humanize": "Dine In",
				"delivery_address_humanize": null,
				"distance_to_restaurant": "0.0",
				"encrypted_id": "y3J8P",
				"qr_code_for_payment": null,
				"charge_price": 1780,
				"total_price": 1780,
				"charge_amount_type": "relative",
				"charge_percent": 100,
				"charge_type": "on_charge",
				"delivery_fee_in_baht": "0",
				"delivery_fee_per_km_in_baht": "10",
				"skip_start_time": false,
				"true_wallet_url": "",
				"shopee_pay_url": "",
				"corporate_event_id": null,
				"reservation_encrypted_id": "y3J8P",
				"aoa_user_id": "3f87fbb9c-81a5-11ed-a1eb-0242ac120002",
				"delivery_fee": {
					"amount": 0,
					"format": "฿0",
					"currency": "THB"
				},
                "image_cover_url": {
					"thumb":              "https://images.hungryhub.com/uploads/restaurants/3958/photos/99187/RackMultipart20230621-211-1r7uiyi.jpg",
					"large": "https://images.hungryhub.com/uploads/restaurants/3958/photos/99187/RackMultipart20230621-211-1r7uiyi.jpg",
					"square": "https://images.hungryhub.com/uploads/restaurants/3958/photos/99187/RackMultipart20230621-211-1r7uiyi.jpg"
				},
				"original_delivery_fee": {
					"amount": 0,
					"format": "฿0",
					"currency": "THB"
				},
				"start_time": "18:15",
				"status": "Arrived",
				"status_as_symbol": "arrived",
				"share_url": "https://hhstaging.hungryhub.com/share-to-friends.html?reservation_id=y3J8P",
				"modify_url": "https://hhstaging.hungryhub.com/reservations/my-reservation/y3J8P.html",
				"estimation_delivered_at": "",
				"driver_tracking_link": "",
				"review_url": "https://hhstaging.hungryhub.com/bookings/y3J8P/reviews/new.html",
				"packages": [
					{
						"name": "Mojjo All You Can Eat with Free Flow Mocktail",
						"amount": "890.0",
						"net_price": "฿890",
						"quantity": 1,
						"id": 1149,
						"is_add_on": false,
						"pricing_type": "per_person",
						"sections": [],
						"kids_price_rate": 50,
						"kids_price_v2": [
							{
								"price_policy": "Height not over 80 cm",
								"price_value": "Free"
							},
							{
								"price_policy": "Height between 81-100 cm",
								"price_value": "฿99"
							},
							{
								"price_policy": "Height between 101-130 cm",
								"price_value": "฿445"
							}
						],
						"use_kids_price": true,
						"rules": [
							{
								"price_description": "",
								"price": "฿900",
								"min_seat": 2,
								"max_seat": "Infinity",
								"per_pack": 1,
								"duration": 90
							}
						],
						"skip_time_selection": false,
						"is_accept_many_quantity": false,
						"custom_net_price": ""
					}
				],
				"delivery_status": "",
				"driver": {},
				"price_amount": "1780.0",
				"price_currency": "THB",
				"type": "All You Can Eat",
				"pricing_type": "per_person",
				"type_short": "ayce",
				"restaurant_name": "Mojjo Rooftop Lounge & Bar",
				"restaurant_name_en": "Mojjo Rooftop Lounge & Bar",
				"my_rating": 0,
				"hungry_points": 25,
				"has_prepayment": false,
				"used_vouchers": [],
				"payment_type": null,
				"redeemed_points": 0,
				"dining_occasion": "",
				"map_location": "http://www.google.com/maps?q=13.729206,100.569088"
			}
		}
	],
	"metadata": {
		"scaffold_url": "https://hhstaging.hungryhub.com/api/v5/reservations/history.json?page=__pagy_page__",
		"first_url": "https://hhstaging.hungryhub.com/api/v5/reservations/history.json?page=1",
		"prev_url": "https://hhstaging.hungryhub.com/api/v5/reservations/history.json?page=",
		"page_url": "https://hhstaging.hungryhub.com/api/v5/reservations/history.json?page=1",
		"next_url": "https://hhstaging.hungryhub.com/api/v5/reservations/history.json?page=",
		"last_url": "https://hhstaging.hungryhub.com/api/v5/reservations/history.json?page=1",
		"count": 1,
		"page": 1,
		"items": 1,
		"vars": {
			"page": 1,
			"items": 20,
			"outset": 0,
			"size": [
				1,
				4,
				4,
				1
			],
			"page_param": "page",
			"params": {},
			"anchor": "",
			"link_extra": "",
			"i18n_key": "pagy.item_name",
			"cycle": false,
			"metadata": [
				"scaffold_url",
				"first_url",
				"prev_url",
				"page_url",
				"next_url",
				"last_url",
				"count",
				"page",
				"items",
				"vars",
				"pages",
				"last",
				"from",
				"to",
				"prev",
				"next",
				"series"
			],
			"steps": false,
            "overflow": "empty_page",
			"count": 1
		},
		"pages": 1,
		"last": 1,
		"from": 1,
		"to": 1,
		"prev": null,
		"next": null,
		"series": [
			"1"
		]
	}
}

Get Reservation Detail

Path parameter

Field NameDescriptionData typeM/OSample Value
booking_idbooking idintegermandatory555026

Response parameter

Field NameDescriptionData typeM/OSample Value
dataArray of stringmandatory
idBooking idmandatory555026
typemandatoryreservation
attributesmandatory
idBooking idintmandatory
Restaurant idrestaurant_idstringmandatory643
dateDate bookingstringmandatory
nameName userstringmandatorymonyta
special_requestmandatory
adultCustomer adultintmandatory2
kidsCustomer kidsintmandatory0
phoneCustomer phonestringmandatory08122912399
emailCustomer emailstringmandatorytest@gmail.com
service_typeService typestringmandatorydine_in
service_type_humanizemandatoryDine_in
distance_to_restaurantFor deliverystringmandatory2
encrypted_idEncrypt userstringmandatoryy3J8P
charge_pricepriceintmandatory1780
total_piceTotal priceintmandatory1780
charge_amount_typeCharge typestringmandatoryrelative
charge_percentintmandatory100
delivery_fee_in_bahtstringmandatory0
delivery_fee_per_km_in_bahtstringmandatory10
reservation_encrypted_idEncrypt booking idstringmandatoryy3J8P
partner_user_idUuid from partnerstringmandatory3f87fbb9c-81a5-11ed-a1eb-0242ac120002
delivery_feeobjmandatory
amountAmount deliveryintmandatory100
formatFormat amountstringmandatory฿0
curencycurencystringmandatoryTHB
start_timeBooking datestringmandatory18:15
statusBooking statusstringmandatoryArrived
status_as_symbolStatus symbolstringmandatoryarrived
share_urlShare packagestringmandatoryhttps://hhstaging.hungryhub.com/share-to-friends.html?reservation_id=y3J8P
modify_urlstringmandatoryhttps://hhstaging.hungryhub.com/reservations/my-reservation/y3J8P.html"
review_urlReview urlstringmandatoryhttps://hhstaging.hungryhub.com/bookings/y3J8P/reviews/new.html
packagesArray of objmandatory
nameName packagestringmandatoryMojjo All You Can Eat with Free Flow Mocktail
amountamountstringmandatory100
net_priceNet pricestringmandatory฿100
quantityquantityintmandatory1
idPackage idintmandatory1149
is_add_onbooleanmandatoryfalse
pricing_typeType of pricingsrtingmandatoryper_person
kids_price_rateintmandatory50
kids_price_v2Tiering price kidsArray of objmandatory
price_policystringmandatoryHeight not over 80 cm
price_valuestringmandatoryfree
use_kids_priceAccept kids pricebooleanmandatorytrue
rulesArray of objmandatory
price_descriptionstringmandatory
pricepricestringmandatory"฿900
min_seatMinimum seatstringmandatory2
max_seatMaximum seatstringmandatoryinfinity
per_packmandatory
durationdurationintmandatory90
delivery_statusFor deliverystringmandatory
price_amountpricestringmandatory1780
price_currencycurrencystringmandatoryTHB
typeType packagestringmandatoryAll You Can Eat
pricing_typeType pricingstringmandatoryper_person
type_shortType package shortstringmandatoryayce
restaurant_nameRestaurant namestringmandatoryMojjo Rooftop Lounge & Bar
restaurant_name_enRestaurant name enstringmandatoryMojjo Rooftop Lounge & Bar
my_ratingratingintmandatory0
hungry_pointsUser pointsintmandatory16
map_locationRestaurant locationstringmandatoryhttp://www.google.com/maps?q=13.729206,100.569088
redeemed_pointspointsintmandatory0
has_prepaymentbooleanmandatoryfalse

Example Response

{
	"data": {
		"id": "555026",
		"type": "reservation",
		"attributes": {
			"id": 555026,
			"restaurant_id": 643,
			"date": "2022-11-18",
			"name": "Monyta",
			"special_request": "",
			"adult": 2,
			"kids": 0,
			"phone": "66628212472",
			"email": "monyta@hungryhub.com",
			"service_type": "dine_in",
			"service_type_humanize": "Dine In",
			"delivery_address_humanize": null,
			"distance_to_restaurant": "0.0",
			"encrypted_id": "y3J8P",
			"qr_code_for_payment": null,
			"charge_price": 1780,
			"total_price": 1780,
			"charge_amount_type": "relative",
			"charge_percent": 100,
			"charge_type": null,
			"delivery_fee_in_baht": "0",
			"delivery_fee_per_km_in_baht": "10",
			"skip_start_time": false,
			"true_wallet_url": "",
			"shopee_pay_url": "",
			"corporate_event_id": null,
			"reservation_encrypted_id": "y3J8P",
			"partner_user_id": "3f87fbb9c-81a5-11ed-a1eb-0242ac120002",
			"delivery_fee": {
				"amount": 0,
				"format": "฿0",
				"currency": "THB"
			},
			"original_delivery_fee": {
				"amount": 0,
				"format": "฿0",
				"currency": "THB"
			},
			"start_time": "18:15",
			"status": "Arrived",
			"status_as_symbol": "arrived",
			"share_url": "https://hhstaging.hungryhub.com/share-to-friends.html?reservation_id=y3J8P",
			"modify_url": "https://hhstaging.hungryhub.com/reservations/my-reservation/y3J8P.html",
			"estimation_delivered_at": "",
			"driver_tracking_link": "",
			"review_url": "https://hhstaging.hungryhub.com/bookings/y3J8P/reviews/new.html",
			"packages": [
				{
					"name": "Mojjo All You Can Eat with Free Flow Mocktail",
					"amount": "890.0",
					"net_price": "฿890",
					"quantity": 1,
					"id": 1149,
					"is_add_on": false,
					"pricing_type": "per_person",
					"sections": [],
					"kids_price_rate": 50,
					"kids_price_v2": [
						{
							"price_policy": "Height not over 80 cm",
							"price_value": "Free"
						},
						{
							"price_policy": "Height between 81-100 cm",
							"price_value": "฿99"
						},
						{
							"price_policy": "Height between 101-130 cm",
							"price_value": "฿445"
						}
					],
					"use_kids_price": true,
					"rules": [
						{
							"price_description": "",
							"price": "฿900",
							"min_seat": 2,
							"max_seat": "Infinity",
							"per_pack": null,
							"duration": 90
						}
					],
					"skip_time_selection": null,
					"is_accept_many_quantity": false,
					"custom_net_price": ""
				}
			],
			"delivery_status": "",
			"driver": {},
			"price_amount": "1780.0",
			"price_currency": "THB",
			"type": "All You Can Eat",
			"pricing_type": "per_person",
			"type_short": "ayce",
			"restaurant_name": "Mojjo Rooftop Lounge & Bar",
			"restaurant_name_en": "Mojjo Rooftop Lounge & Bar",
			"my_rating": 0,
			"hungry_points": 17,
			"has_prepayment": false,
			"used_vouchers": [],
			"payment_type": null,
			"redeemed_points": 0,
			"dining_occasion": "",
			"map_location": "http://www.google.com/maps?q=13.729206,100.569088"
		}
	}
}

Get Detail Restaurant

Path parameter

Field NameDescriptionData typeM/OSample Value
restaurant_idintmandatory937

Response parameter

Field NameDescriptionData typeM/OSample Value
dataArray of stringmandatory
idId restaurantstringmandatory
typeType data (where did data came from)stringmandatoryrestaurants
attributesData detailsobjectmandatory
price_and_pricing_typePrice for restaurant packageobjectmandatory
amountPrice amountnumbermandatory678
currencyPrice currencystringmandatoryTHB
symbolCurrency symbolstringmandatory฿
formatPrice formatstringmandatory฿678
pricing_typePrice typestringmandatory
latRestaurant latitudestringmandatory13.7329712264
lngRestaurant longitudestringmandatory100.5801800799
nameRestaurant namestringmandatoryAudrey Cafe (Thonglor Soi 11)
slugRestaurant slugstringmandatoryaudrey-cafe-thonglor-soi-11
reviews_scoreRestaurant review scorenumbermandatory4.6
reviews_countRestaurant total reviewnumbermandatory9108
primary_locationRestaurant locationobjectmandatory
idLocation idintmandatory69
nameLocation namestringmandatoryThonglor
primary_cuisineRestaurant cuisine listobjectmandatory
idRestaurant cuisine idintmandatory10
nameRestaurant cuisine namestringmandatoryinternational
image_cover_urlImage url listobjectmandatory
thumbRestaurant thumbnailstringmandatory
originalRestaurant imagestringmandatory
squareRestaurant square imagestringmandatory
last_booking_was_madeLast customer booking datestringmandatoryTue, 22 Nov 2022 07:41:27 +0000
expiry_dateRestaurant expiry datestringmandatory
locationsRestaurant location listarraymandatory"locations": [{ "id": 38, "title": "Charoen Krung"},{
"id": 39,
"title": "Charoen Nakorn }]
is_staycationIs restaurant accept staycationbooleanmandatoryfalse
tagRestaurant tag listArray of stringmandatory
logo_urlRestaurant logostringmandatory
mediumRestaurant logo medium sizestringmandatory
thumbRestaurant logo thumbnailstringmandatory
opening_hours_shortRestaurant opening hoursstringmandatory
hashtagsRestaurant hashtag listArray of objoptional"hashtags": [ {
"id": 26 "label": "Mega Bangna", "link_to_group_landing_page": "" }, { "id": 26 "label": "Central Pinklao",
"link_to_group_landing_page": ""
}]
available_package_typesList of available package typeArray of stringmandatory"available_package_types": ["All You Can Eat"Hungry@Home"]
linkRestaurant liststringmandatory
covid19_ratingRestaurant rating on covid 19 protocolobjectmandatory
overall_cleanlinessRestaurant rating about overall cleanlinessstringmandatory2.28
social_distancingRestaurant rating about social distancingstringmandatory2.09
staff_protectionRestaurant rating about staff protectionstringmandatory1.93
relationshipsRestaurant data relationsobjectmandatory
picturesRestaurant pictures listobjectmandatory
dataList of restaurant relationArray of stringmandatory
idId restaurant relationstringmandatory
typeType of restaurant relationstringmandatory

Example Request

{{ _.base_url }}/api/v5/restaurants/32.json

Example Response

{
	"data": { -> object
		"id": "32", -> integer
		"type": "restaurants", -> string
		"attributes": { -> object
			"price_and_pricing_type": { -> object
				"amount": 0, -> integer
				"currency": "THB", -> string
				"symbol": "฿",  -> string
				"format": "0฿",  -> string
				"pricing_type": "per_person"  -> string
			},
			"lat": "13.741754",  -> string
			"lng": "100.585404",  -> string
			"name": "Fifty/Fifty Restaurant and Bar",  -> string
			"slug": "fifty-fifty-restaurant-and-bar",  -> string
			"reviews_score": 0.0, -> float
			"reviews_count": 0, -> integer
			"primary_location": { -> object
				"id": null, -> integer
				"name": null  -> string
			},
			"primary_cuisine": { -> object
				"id": null, -> integer
				"name": null  -> string
			},
			"image_cover_url": { -> object
				"thumb": "",  -> string
				"original": "",  -> string
				"square": ""  -> string
			},
			"last_booking_was_made": "Fri, 19 Sep 2014 11:17:13 +0000",  -> date
			"expiry_date": "2022-12-31",  ->date
			"locations": [], -> array object
			"is_staycation": false, -> boolean
			"tags": [], -> array object
			"logo_url": { -> object
				"medium": "",  -> string
				"thumb": ""  -> string
			},
			"opening_hours_short": "closed",  -> string
			"hashtags": [], -> array object
			"available_package_types": [], -> array object
			"link": "https://hungryhub-build-staging.netlify.app/en/restaurants/fifty-fifty-restaurant-and-bar",  -> string
			"covid19_rating": { -> object
				"overall_cleanliness": "0.0",  -> string
				"social_distancing": "0.0",  -> string
				"staff_protection": "0.0"  -> string
			}
		},
		"relationships": { -> object
			"pictures": { -> object
				"data": [ -> array object
					{
						"id": "2313", -> string
						"type": "restaurants-pictures"  -> string
					},
				]
			}
		}
	},
	"success": true -> boolean
}

Example Request with picture

{{ _.base_url }}/api/v5/restaurants/32?&include_pictures=true

Example Response

https://gist.github.com/nesyaafreeda/6a2323061c01099484c0ee2196e25e21

Get Detail Restaurant with image

Get Restaurant Packages

UPDATES

we add new attribute max_package_quantity_str to store the max package quantity string Example: if the max_package_quantity is 23 on max_package_quantity_str will be "23" if the max_package_quantity is 1000000 on max_package_quantity_str will be "No Limit"

Path parameter

Field NameDescriptionData typeM/OSample Value
restaurant_idparamintMandatory837

Response parameter

Field NameDescriptionData typeM/OSample Value
dataarray of objectMandatory
idId restaurant packageintMandatory837
typeType data (where did data came from)stringMandatoryrestaurant-packages
attributesobjectMandatory
menu_linkPackage menu linkstringMandatoryhttps://hhstaging.hungryhub.com/en/restaurant_packages/304/menu.html?updated_at=hh_package%2Frestaurant_packages%2F304-20220407182758000000
menusRestaurant menu listobjectMandatory
typesRestaurant menu typestringMandatoryimenupro
dataobjMandatory
imenuproImenupro link menuArray of stringMandatory
loadedTo indicate that the menu already loaded or notbooleanMandatory
linkPackage linkstringMandatoryhttps://hhstaging.hungryhub.com/en/restaurant_packages/304/menu.html?updated_at=hh_package%2Frestaurant_packages%2F304-20220407182758000000
slugPackage slugstringMandatory737-AY-003
rankRank restaurantintMandatory200
rank_in_restaurant_scopeRestaurant rankintMandatory1
start_dateStart date packagestringMandatory"2018-09-16"
end_dateEnd date packagestringMandatory"2018-12-16"
require_ccRequired ccbooleanMandatoryfalse
charge_typebooleanMandatory
payment_typeType of paymentstringMandatory"qrcode_and_creditcard”
skip_time_selectionstringMandatory
hh_menu_v2_html_preview_linkIf restaurant menu type use hh menu v2 it will show the linkstringMandatory
available_methodsAvailable payment methodstringMandatory
custom_net_priceCustom price for packagestringMandatory
no_of_courseswe show no of courses to equal package max menu quantity only if package menu type is hh_menu otherwise we show the no_of_courses from database
intMandatory
default_start_timePackage start timestringMandatory
max_package_quantityMaximum package quantityintMandatory1000000
max_package_quantity_strMaximum package quantity stringstringMandatoryNo Limit
charge_policyPayment charge policystringMandatory
charge_policy_linkPayment charge policy linkstringMandatory
menu_quantity_limitHow many menu can be chooseintMandatory
original_pricePackage original priceobjMandatory
pricePackage priceintMandatory1699
currencyPackage price currencystringMandatory"THB"
formatPackage price formatstringMandatory"฿1,699"
hide_menu_pricebooleanMandatory
is_add_onIs this package was add on package?booleanMandatoryfalse
earn_pointIs user can get earn point by buying this packagebooleanMandatoryfalse
custom_labelPackage custom label detail listobjMandatory
namePackage custom label namestringMandatory
icon_urlPackage custom label iconstringMandatory
custom_labelsPackage custom label listArray of stringMandatory
menu_sectionsPackage menu listArray of objMandatory
for_dine_inIs this is dine in packagebooleanMandatorytrue
has_custom_delivery_feeIs the delivery fee in package can be customize?booleanMandatorytrue
take_away_propertyDetail take awayobjMandatory
delivery_fee_in_bahtHow much max free delivery was given in BathintMandatory100
delivery_fee_currencyFree delivery currencystringMandatoryTHB
delivery_fee_per_km_in_bahtHow much free delivery cover in kmintMandatory10
free_delivery_fee_threshold_in_bahtintMandatory10
delivery_radiusRadius delivery in kmintMandatory2
accepted_cardsArray of objMandatorytrue
menu_typestringMandatoryimenupro
last_booking_was_madeLast bookingstringMandatory"Tue, 31 Dec 2019 03:48:28 +0000",
type_codeCode packagestringMandatoryayce
type_namePackage namestringMandatoryAll You Can Eat
ayce_rulesAyce Package rulesArray of objectOptional[

{

"price_description": "", -> string

"price": "690฿", -> string

"min_seat": 2, -> integer

"max_seat": "Infinity", -> string

"duration": 120, -> integer

"tnc_link": "https://hhstaging.hungryhub.com/uploads/restaurants/tc/image/34/tc.png", -> string

"kids_price_rate": 50 -> integer

}

]
bfp_rulesBfp Package rulesArray of objectOptional[ {
"price_description": "",
"price": "฿1,590",
"min_seat": 1,
"max_seat": "Infinity",
"duration": 120,
"tnc_link": "https://images.hhstaging.dev/uploads/hh_package/package/buffet_extra/tnc_image/40/Copper_%E0%B8%82%E0%B8%AD%E0%B8%84%E0%B8%A7%E0%B8%B2%E0%B8%A1%E0%B8%81%E0%B8%A3%E0%B8%B8%E0%B8%93%E0%B8%B2%E0%B8%A5%E0%B8%B9%E0%B8%81%E0%B8%84%E0%B9%89%E0%B8%B23.jpeg", "kids_price_rate": 50
} ]
pp_rulespp package rulesArray of objectOptional[{
"price_description": "฿799 per 2 adults", "price": "฿799",
"per_pack": 2,
"tnc_link": "https://hungryhub.com/uploads/restaurants/tc/image/80/tc.png", "kids_price_rate": 50
}]
rulesPackage rulesArray of objectMandatory[{
"price_description": "฿799 per 2 adults", "price": "฿799",
"min_seat": null,
"max_seat": null,
"per_pack": 2,
"duration": 120,
"kids_price_rate": 50
}]
package_infoPackage informationsObjectMandatory{
"min_pax": 2,
"max_pax": 30,
"time_limit": "2 hours",
"tnc_link": "https://hungryhub.com/uploads/restaurants/tc/image/79/tc.png",
"per_pack": 2,
"kids_price_rate": 50
}
image_cover_urlCover package imageObjectMandatory{
"thumb": "https://images.hhstaging.dev/uploads/restaurants/997/photos/28812/RackMultipart20230420-134-qtys55.jpg",
"large": "https://images.hhstaging.dev/uploads/restaurants/997/photos/28812/RackMultipart20230420-134-qtys55.jpg"
}
restaurant_cuisineRestaurant mandatory cuisineStringOptional"International"
restaurant_locationRestaurant Location tagStringOptional"Bangkok Noi"
restaurant_nameRestaurant nameStringMandatory"Copper Buffet (Hungry Hub Dine In)"
opening_hoursRestaurant Opening HoursArray ObjectOptional[
{
"day_name": "Monday",
"schedule": {
"open": "10:00",
"close": "19:15"
}
}, {
"day_name": "Tuesday",
"schedule": {
"open": "10:00",
"close": "21:00"
}
}
]
is_accept_many_quantityIs package accept many quantityBooleanMandatoryfalse
comemore_paylessIs package have come more payless promoBooleanMandatoryfalse
pricing_groupsPricing group for packageObjectOptional{}
pricing_type_symPackage Pricing type symbolStringMandatoryper_person / per_pack
pricing_typePackage Pricing typeStringmandatoryNET price per person
or
NET price per pack
time_slotsPackage time slotObjectOptional{}
pricing_modePricing modeStringMandatorySingle or Multiple
is_accept_voucherIs package accept voucherBooleanMandatorytrue or false
largest_tableLargest table for this packageIntMandatory20
custom_seatsCustom seatarrayOptional[]
accept_we_travel_togetherAccept we travel togetherBooleanMandatorytrue or false
is_allow_mixAllow mix packagebooleanMandatorytrue or false
restaurant_package_voucher_detailPackage voucher descriptionStringMandatoryThis Promo Code will have the value you specified. This Promo Code can be used with all {restaurant_name} packages. If the customer would like to use a promo code with higher value packages, customers need to pay the remaining difference by themselves. If the customer would like to use a promo code with lower value packages, customer will not be able to get the remaining balance back. This promo code can be used until {expiry_date}.
restaurant_package_voucher_tncPackage voucher terms and conditionStringMandatoryHungry Hub Promo Code is a Promo Code that buyers can make purchases through Hungry Hub as a gift for the recipient for reservations and dine-in at participating restaurants with Hungry Hub and use this promo code in place of a cash discount. Hungry Hub Promo Code buyer (called “buyer” onwards) is the customer who makes a promo code purchase with Hungry Hub. Recipient is the person whom the Buyer wishes to give the Promo Code to (called “Recipient” onward). The Recipient needs to register with Hungry Hub before redeeming the Promo Code. Buyer is required to read and accept these terms and conditions regarding the promo code terms. Hungry Hub may adjust the promo code terms accepted by the buyer, which response to review the promo code terms regularly. Once the buyer has sent the purchase order promo code form to Hungry Hub, it is considered as the buyer has read and accepted the promo code terms. Hungry Hub reserves the right to cancel the promo code or modify the promo code terms, other terms, and privileges as a whole or some part without necessary prior notice. Hungry Hub will not be responsible for any damages, even if those changes occur after the promo code is purchased. Hungry Hub reserves the right to modify or cancel the number of restaurants participating in the promo code conditions. In any circumstance, the decision of form and usage of the promo code will be considered by Hungry Hub. The promo code can be used according to the information from the restaurant indicated on the email only. Such as packages, prices, and the number of people. The recipient is required to use the promo code prior to confirming the reservation. (promo codes cannot be used on its own at the restaurant). The recipient can use multiple promo codes on the same reservation. If the selected restaurant or package has expired or terminated and the recipient wishes to use the Promo Code, the recipient has 1 time to change the restaurant, package, or number of the promo code by contacting Hungry Hub directly. The recipient will be responsible for any additional charges if the value exceeds the promo code received by the recipient. Every use of the Promo Code, once done, cannot be changed. The promo code can only be used with a confirmed reservation from a Hungry Hub participating restaurant. The promo code is valid for 2 months after purchase. The promo code reservations must be reserved at least 1 day in advance. The promo code cannot be refunded or exchanged for cash. Hungry Hub is not responsible for any unauthorized use of the promo code by the buyer. Such as loss, theft, or destruction of the promo code confirmation email. Hungry Hub reserves the right, in its absolute discretion, to withdraw, limit, change or cancel any or all of them in the terms and conditions of the Promo Code without prior notice. If you have any problem with promo code usage, please contact Hungry Hub Contact Center : Line @Hungryhub l Tel : 062-827-4333
payment_typesPayment typeArrayMandatory[
"promptpay",
"credit_card"
]
kids_price_v2Kids priceArray ObjectOptional[
{
"price_policy": "Kids Price", "price_value": "฿795"
}
]

or

[]
use_kids_priceIs package using kids priceBooleanMandatorytrue or false
relationshipsRelationship dataObjectMandatory{
"restaurant": {
"data": {
"id": "837",
"type": "restaurants"
}
}
}

Example Request

{{ _.base_url }}/api/v5/restaurant_packages.json?restaurant_id=837

Example Response

https://gist.github.com/nesyaafreeda/a8ef456554fb2b7b42c66de56f55ce03

Get Restaurant Reviews

Path parameter

Field NameDescriptionData typeM/OSample Value
restaurant_idRestaurant idintegermandatory837
sortOrder bystringmandatorynewest
page[number]paginationintegermandatory1
page[size]Limitintegermandatory10

Response parameter

Field NameDescriptionData typeM/OSample Value
dataArray of stringmandatory
idstringmandatory52740
typestringmandatoryreviews
attributesobjectmandatory
ratingRating review(1-5)stringmandatory5
tittleTittle reviewstringmandatory
create_atDate createdstringmandatory"2022-06-21T05:24:48.000Z"
user_nameUser name reviewstringmandatoryChristian’s messi
review_recomended_forsArray of stringmandatory
idId restaurantstringmandatory59247
review_idId reviewersstringmandatory52740
dimension_idstringmandatory10
created_atDate createdstringmandatory"2022-06-21T05:24:48.000Z"
updated_atDate updatedstringmandatory"2022-06-21T05:24:48.000Z"
reviewreviewersstringmandatoryWadu
encrypted_idstringmandatorylz26r
user_avatarobjectmandatory
thumbImage thumbstringmandatoryhttps://hhstaging.hungryhub.com/uploads/user/avatar/188164/1625285240824_image.jpe
mediumImage mediumstringmandatoryhttps://hhstaging.hungryhub.com/uploads/user/avatar/188164/1625285240824_image.jpe
originalImage originalstringmandatoryhttps://hhstaging.hungryhub.com/uploads/user/avatar/188164/1625285240824_image.jpe
picturesArray of stringmandatory
thumbstringmandatoryhttps://hhstaging.hungryhub.com/uploads/review_photo/photo/39040/00.jpeg
originalstringmandatoryhttps://hhstaging.hungryhub.com/uploads/review_photo/photo/39040/00.jpeg
avatarUrl avatarstringmandatoryhttps://hhstaging.hungryhub.com/assets/v2/mr_hungry-09b1fe8ac22e6907bae45ba17a49a4b3566ab6e9663380a56e35176d803b4466.png
restaurantobjectmandatory
idRestaurant idstringmandatory837
nameRestaurant namestringmandatoryCopper Buffet The Sense Pinklao
linkstringmandatory"copper-buffet-the-sense-pinklao
linkRestaurant linkstringmandatoryhttps://hhstaging.hungryhub.com/restaurants/copper-buffet-the-sense-pinklao/reviews/lz26r

Example Request

{{ _.base_url }}/api/v5/reviews.json?restaurant_id=837&sort=newest&page[number]=1&page[size]=10

Example Response

{
	"data": [
		{
			"id": "52740",
			"type": "reviews",
			"attributes": {
				"rating": 5,
				"title": null,
				"created_at": "2022-06-21T05:24:31.000Z",
				"user_name": "Christian’s messi ",
				"review_recommended_fors": [
					{
						"id": 59247,
						"review_id": 52740,
						"dimension_id": 10,
						"created_at": "2022-06-21T05:24:48.000Z",
						"updated_at": "2022-06-21T05:24:48.000Z"
					}
				],
				"review": "Wadu",
				"encrypted_id": "lz26r",
				"user_avatar": {
					"thumb": "https://hhstaging.hungryhub.com/uploads/user/avatar/188164/1625285240824_image.jpeg",
					"medium": "https://hhstaging.hungryhub.com/uploads/user/avatar/188164/1625285240824_image.jpeg",
					"original": "https://hhstaging.hungryhub.com/uploads/user/avatar/188164/1625285240824_image.jpeg"
				},
				"pictures": [
					{
						"thumb": "https://hhstaging.hungryhub.com/uploads/review_photo/photo/39040/00.jpeg",
						"original": "https://hhstaging.hungryhub.com/uploads/review_photo/photo/39040/00.jpeg",
						"caption": "Copper Buffet The Sense Pinklao Review"
					}
				],
				"avatar": "https://hhstaging.hungryhub.com/assets/v2/mr_hungry-09b1fe8ac22e6907bae45ba17a49a4b3566ab6e9663380a56e35176d803b4466.png",
				"restaurant": {
					"id": 837,
					"name": "Copper Buffet The Sense Pinklao",
					"link": "copper-buffet-the-sense-pinklao"
				},
				"link": "https://hhstaging.hungryhub.com/restaurants/copper-buffet-the-sense-pinklao/reviews/lz26r"
			}
		},

	],
	"links": {
		"self": "/api/v5/reviews.json?page%5Bnumber%5D=1&page%5Bsize%5D=10&page%5Bnumber%5D=1&page%5Bsize%5D=10&restaurant_id=837&sort=newest",
		"first": "/api/v5/reviews.json?page%5Bnumber%5D=1&page%5Bsize%5D=10&page%5Bnumber%5D=1&page%5Bsize%5D=10&restaurant_id=837&sort=newest",
		"prev": null,
		"next": "/api/v5/reviews.json?page%5Bnumber%5D=1&page%5Bsize%5D=10&page%5Bnumber%5D=2&page%5Bsize%5D=10&restaurant_id=837&sort=newest",
		"last": "/api/v5/reviews.json?page%5Bnumber%5D=1&page%5Bsize%5D=10&page%5Bnumber%5D=129&page%5Bsize%5D=10&restaurant_id=837&sort=newest"
	},
	"meta": {
		"total": 1282,
		"average": 4.7,
		"stars_count": {
			"one": 8,
			"two": 11,
			"three": 53,
			"four": 214,
			"five": 996
		}
	},
	"success": true,
	"message": null
}

Authentication

Params

Field NameDescriptionM/OData TypeSample Value
contact_idAOA IdMString78fa2024-5895-e411-b3d5-005056a92b14
first_nameMStringJhon
last_nameOStringFoo
phoneMString0845501895
emailOStringjitanan@yahoo.com
phone_codeOString66
phone_country_codeOStringth

Sample Request POST: {{ _.base_url }}/api/aoa/v1/authentication.json

{
"contact_id":"78fa2024-5895-e411-b3d5-005056a92b14",
"first_name":"นวลทิพ",
"last_name":"ดาบเ ริญช",
"phone":"0845501895",
"phone_code":"66",
"phone_country_code":"th",
"email":"jitanan@yahoo.com"
}

Sample Response

{
	"data": {
		"token": "YXNkYWFzZGFzYXNkZA=="
	},
	"success": true
}