Get Hotel List API

Description: Retrieve all of the available hotel(s) for a given set of search criteria. Breakdown hotels into many smaller get hotel list requests

Path: /api/v2/hotel/getHotelList

Method: POST

Content Type/Accept Type: application/json

Request

Attributes

* = required

chevron-rightclientId*hashtag

string

Identity of client

chevron-righttimestamp*hashtag

timestamp

Current timestamp

chevron-righthotelSnListhashtag

array<integer>

List of Go2Joy hotel SN can contain up to 50 hotel SNs at maximum. All Get Hotel List requests can be sent in parallel

criteria*

chevron-rightcriteria.bookingType*hashtag

integer

Type of booking

Possible enum values: 1 = Hourly Booking 2 = Overnight Booking 3 = Daily Booking

chevron-rightcriteria.checkInDatePlan*hashtag

string

Check-in date (user plan)

Format: YYYY-mm-dd

chevron-rightcriteria.endDate*hashtag

string

Check-out date (user plan)

Format: YYYY-mm-dd

chevron-rightcriteria.startTimehashtag

string

Required when choosing Hourly Booking

Format: HH:mm

chevron-rightcriteria.endTimehashtag

string

Required when choosing Hourly Booking

Format: HH:mm

chevron-rightcriteria.provinceSnhashtag

integer

Identity of province

chevron-rightcriteria.districtSnhashtag

integer

Identity of district

chevron-rightcriteria.promotionhashtag

integer

Type of promotion

Possible enum values: 0 = All (default) 1 = FlashSale 2 = Direct discount

chevron-rightcriteria.bedTypeListhashtag

array<integer>

List room’s bed type

Possible enum values: 1 = Single 2 = Double 3 = Twin 4 = Triple 5 = 2 Double

chevron-rightcriteria.facilityListhashtag

array<integer>

List room’s facility

chevron-rightcriteria.viewListhashtag

array<integer>

List room’s view

Possible enum values: 1 = Window 2 = Balcony 3 = City 4 = Garden 5 = Pool 6 = None

chevron-rightcriteria.maxPricehashtag

integer

Max room’s price. Filter based on the best hotel's room rate.

Maximum recommended value is 20.000.000 (VND)

chevron-rightcriteria.minPricehashtag

integer

Min room’s price. Filter based on the best hotel's room rate.

chevron-rightlimithashtag

integer

Number of item per page (default: 10, max: 50)

chevron-rightpagehashtag

integer

Page number (default: 1)

chevron-rightsortTypehashtag

integer

Sort's Type

Possible enum values: 0 = None (default) 1 = Price increasing 2 = Price decreasing 3 = Hotel’s Rating 4 = Hotel’s Review

Example

Response

Attributes

chevron-rightsnhashtag

integer

Identity of hotel

chevron-rightnamehashtag

string

Hotel's name

chevron-rightsoldOuthashtag

boolean

Rooms of all rate plans are sold out

ratePlanList.ratePlan

chevron-rightratePlanList.ratePlan.numOfRoomhashtag

integer

Num of room left. If the value returns as 2147483647 (max int value), the actual value could not be determined.

chevron-rightratePlanList.ratePlan.originalPricehashtag

integer

Original price

chevron-rightratePlanList.ratePlan.currentPricehashtag

integer

Current price

chevron-rightratePlanList.ratePlan.flashSalehashtag

boolean

On/off label flash sale

chevron-rightratePlanList.ratePlan.directDiscounthashtag

boolean

On/off label direct discount

chevron-rightratePlanList.ratePlan.highDemand hashtag

boolean

On/off label high demand

Example