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

chevron-rightclientId*hashtag

string

Identity of client

chevron-righttimestamp*hashtag

timestamp

Current timestamp

chevron-rightresourceVersion*hashtag

string

Please set the value “v2“ as your default

chevron-righthotelSn*hashtag

integer

Identity of hotel

chevron-rightbookingType*hashtag

integer

Type of booking

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

chevron-rightcheckInDatePlan*hashtag

string

Check-in date (user plan)

Format: YYYY-mm-dd

chevron-rightendDate*hashtag

string

Check-out date (user plan)

Format: YYYY-mm-dd

chevron-rightstartTimehashtag

string

Required when choosing Hourly Booking

Format: HH:mm

chevron-rightendTimehashtag

string

Required when choosing Hourly Booking

Format: HH:mm

Example

Response

Attributes

roomTypeList.roomType

chevron-rightroomTypeList.roomType.snhashtag

integer

Identity of room type

chevron-rightroomTypeList.roomType.namehashtag

string

Name of room type

roomTypeList.roomType.ratePlanList.ratePlan

chevron-rightroomTypeList.roomType.ratePlanList.ratePlan.numOfRoomhashtag

integer

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

chevron-rightroomTypeList.roomType.ratePlanList.ratePlan.statushashtag

integer

Rate plan status

Possible enum values: 1 = Available 2 = Lock

chevron-rightroomTypeList.roomType.ratePlanList.ratePlan.firstHourshashtag

integer

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

chevron-rightroomTypeList.roomType.ratePlanList.ratePlan.maxNumHourshashtag

integer

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

chevron-rightroomTypeList.roomType.ratePlanList.ratePlan.originalPricehashtag

integer

Original price

chevron-rightroomTypeList.roomType.ratePlanList.ratePlan.currentPricehashtag

integer

Current price

chevron-rightroomTypeList.roomType.ratePlanList.ratePlan.flashSalehashtag

boolean

On/off label flash sale

chevron-rightroomTypeList.roomType.ratePlanList.ratePlan.directDiscounthashtag

boolean

On/off label direct discount

chevron-rightroomTypeList.roomType.ratePlanList.ratePlan.highDemand hashtag

boolean

On/off label high demand

Example