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

AirAsia API List

DescriptionURLPayloadResponse
GET Authentication{{ base_api }}/authentication`{ "source": "openrice", "contact_id": "2", "first_name": "Patrick", "last_name": "Star", "phone": "08123456789", "phone_code": "66", "phone_country_code": "th", "email": "patrick@mail.com", "packages": [ { "id": 3270, "quantity": 5, "price" : 200, "currency": "฿" }, { "id": 3271, "quantity": 5, "price" : 500, "currency": "฿" } ], "total_price": 1700
}``{ "success": true, "message": null, "data": { "vendor_token": "Mg==" }
}`
GET City list{{ base_api }}/cities.json-`{ "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 restaurant list by City ID{{ base_api }}/restaurants/search.json?page[size]=10&page[number]=1&city_id=1`{ "page": { "number": "1", "size": "2" }, "minor_version": "{{ minor_version }}", "sort": "new", "city_id": "1", "include_packages": false, "include_pictures": false, "preview_mode": false
}``{ "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, currently we have 2 services type:
  • Dine In → dine_in
  • Delivery → delivery | {{ base_api }}/restaurants/search.json?page[size]=10&page[number]=2&service_type=dine_in | { "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 } | { "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 restaurant list by name | {{ base_api }}/restaurants/search.json?page[size]=10&page[number]=1&name_like=Cafe | { "page": { "number": "1", "size": "2" }, "minor_version": 3, "sort": "new", "name_like": "Cafe", "include_packages": false, "include_pictures": false, "preview_mode": false } | { "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": [] } } |