Get Room Type List API

Description: Get list room type by hotel id and booking type

Path: /api/v2/hotel/getRoomTypeList

Method: POST

Content Type/Accept Type: application/json

Request

Attributes

* = required

clientId*

string

Identity of client

timestamp*

timestamp

Current timestamp

resourceVersion*

string

Please set the value “v2“ as your default

hotelSn*

integer

Identity of hotel

bookingType*

integer

Type of booking

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

checkInDatePlan*

string

Check-in date (user plan)

Format: YYYY-mm-dd

endDate*

string

Check-out date (user plan)

Format: YYYY-mm-dd

startTime

string

Required when choosing Hourly Booking

Format: HH:mm

endTime

string

Required when choosing Hourly Booking

Format: HH:mm

Example

Response

Attributes

roomTypeList.roomType

roomTypeList.roomType.sn

integer

Identity of room type

roomTypeList.roomType.name

string

Name of room type

roomTypeList.roomType.ratePlanList.ratePlan

roomTypeList.roomType.ratePlanList.ratePlan.numOfRoom

integer

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

roomTypeList.roomType.ratePlanList.ratePlan.status

integer

Rate plan status

Possible enum values: 1 = Available 2 = Lock

roomTypeList.roomType.ratePlanList.ratePlan.firstHours

integer

Minimum number of hours allowed to book this room for Hourly Booking

roomTypeList.roomType.ratePlanList.ratePlan.maxNumHours

integer

Maximum number of hours allowed to book this room for Hourly Booking

roomTypeList.roomType.ratePlanList.ratePlan.originalPrice

integer

Original price

roomTypeList.roomType.ratePlanList.ratePlan.currentPrice

integer

Current price

roomTypeList.roomType.ratePlanList.ratePlan.flashSale

boolean

On/off label flash sale

roomTypeList.roomType.ratePlanList.ratePlan.directDiscount

boolean

On/off label direct discount

roomTypeList.roomType.ratePlanList.ratePlan.highDemand

boolean

On/off label high demand

Example