Hotel Products

Get hotel available product list,The returned result is an array, and the order of the array corresponds to the date

Request Method#

POST

uri: /ari/products

Content-Type:application/json


Request parameter description#

RequestHeader#

Common Request Header[Reference]

RequestBody#

ParameterTypeRequiredMaximum lengthExampleDescription
hotelIdStringY3212**567Huazhu Hotel ID
echoTokenStringN647550f7497b2d4dd9beea83cd2fe8cd76Signal notification identifier, if it is a synchronized product that receives a signal notification from Huazhou, you need to bring the unique identifier of the notification

Response parameter description#

Common Response Parameters[Reference]

content#

ParameterTypeRequiredMaximum lengthExampleDescription
hotelIdStringY3212**567Huazhu Hotel ID
productsList<Product >N-Product information list

Product#

ParameterTypeRequiredMaximum lengthExampleDescription
roomTypeCodeStringY64DR1roomTypeCode
roomTypeNameStringY200Superior Big Bed RoomroomTypeName
rateCodeStringY64Base-NTRrateCode
rateCodeNameStringN500Early decision and early benefitRate Code Name
checkinTypeStringY16DAYCheck-in type, case-sensitive Enumeration Dictionary
promotionBooleanY-falseWhether it is a promotion, true indicates a promotion rateCode, false indicates a regular rateCode
promotionCodeStringN-2072200893Promotion Code, some promotion promotion are true but the promotionCode is null, which is compatible with the original member intercommunication level verification. If there is no such logic, do not pay attention to it
stayWindowStayWindowN-Check-in window attribute. ARI data in this range needs to be landed synchronously. null indicates that there is no limit (90 days can be booked, and the booking time is not limited per day).
bookWindowBookWindowN-Booking window property, prompting the user to pay attention to the available time range, or not to display the quotation within this time range, null means no restriction(90-day bookable, unlimited booking time per day).
hourageIntegerN-2The number of rental hours, vaild when checkin type parameter is "HOUR", currently supports 2 4 6 (hours)
tagsList<String>N-["NightSnack"]For channel display (the relevant use logic must comply with the business agreement, and the loss caused by non-compliance shall be borne by the corresponding responsibility), label: label value, refer to enumeration
occupancyOccupancyN-Number of Occupancy Information

StayWindow#

ParameterTypeRequiredMaximum lengthExampleDescription
startDateDateN-2021-10-01Effective date, format yyyy-MM-dd, null means unlimited (90 days can be ordered)
endDateDateN-2021-10-02Expiration date, format yyyy-MM-dd, including this day, null means unlimited (90 days can be booked)
excludedDateList<String>N-Date removed, excluded date between start date and end date, format yyyy-MM-dd
weekControlStringN71111111Week Control, starting from Sunday, 1 means effective, 0 means invalid, and empty means effective
eachDayCheckinStartTimeStringN808:00The earliest check-in time per day, the format is HH:mm(including the minute). The default value is null, which means there is no limit
eachDayCheckinEndTimeStringN818:00The latest check-in time per day, format: HH:mm, including mm this minute, default null means no limit
eachDayCheckoutEndTimeStringN818:00The latest check-out time per day, format: HH:mm, including the minute of mm, default null means no limit
onlyDawnBooleanN8truetrue indicates only bookable in early morning, false and null have no special meaning

BookWindow#

ParameterTypeRequiredMaximum lengthExampleDescription
startDateDateN-2021-10-01For the start date that can be booked on the first day of stay, the format is yyyy-MM-dd, and null means there is no limit (90 days can be booked)
endDateDateN-2021-10-02For the first day of check-in, the end date can be booked, the format is yyyy-MM-dd, including this day, null means no limit (90 days can be booked)
excludedDateList<String>N-Date removed, excluded date between startDate and endDate, format yyyy-MM-dd
eachDayStartTimeStringN808:00The earliest bookable time per day, format: HH:mm, including the minute of mm, default null means no limit
eachDayEndTimeStringN818:00The latest bookable time per day, format: HH:mm, including mm this minute, default null means no limit

Occupancy#

ParameterTypeRequiredMaximum lengthExampleDescription
maxAdultIntegerN-2Maximum number of adults
maxChildIntegerN-2Maximum number of children
maxOccupancyIntegerY-2Maximum occupancy

ResponseCode#

Exception CodeException TypeDescription
1000Success
4101Invalid hotel IdHotel ID does not exist
4102Hotel is closedHotel closed
4103No match foundNo data found matching criteria
OtherGlobal Exception CodeGlobal Exception Code[Reference]

Message example#

Case1: Query hotel products#

Request Example#
{
"hotelId":"31****2"
}
Response Success Example#
{
"code": 1000,
"content": {
"hotelId": "31****2",
"products": [
{
"bookWindow": {
"eachDayEndTime": "23:59",
"eachDayStartTime": "00:00",
"endDate": "2021-12-31",
"startDate": "2021-03-25"
},
"checkinType": "DAY",
"promotion": true,
"promotionCode": "313610001",
"rateCode": "313610001-RACK",
"rateCodeName": "Night snack fee OTA official website",
"roomTypeCode": "PKX1",
"roomTypeName": "Business King Room",
"stayWindow": {
"endDate": "2021-12-31",
"startDate": "2021-03-25",
"weekControl": "1111111"
},
"tags": [
"NightSnack"
],
"occupancy": {
"maxOccupancy": 2,
"maxAdult": 1,
"maxChild": 1
}
},
{
"bookWindow": {
"endDate": "2031-06-11",
"startDate": "2019-01-01"
},
"checkinType": "DAY",
"promotion": false,
"rateCode": "Base-OTC-STD-BF1",
"rateCodeName": "Group OTA Pay-As-You-go Order + 1",
"roomTypeCode": "DRS0",
"roomTypeName": "Standby DRS0",
"stayWindow": {
"endDate": "2022-04-30",
"startDate": "2021-10-01",
"weekControl": "1100111"
}
},{
"bookWindow": {
"eachDayEndTime": "18:00",
"eachDayStartTime": "8:00",
"endDate": "2099-01-01",
"startDate": "2019-01-01"
},
"checkinType": "HOUR",
"hourage": 2,
"promotion": false,
"rateCode": "Hour-HTC2-MAN",
"rateCodeName": "OTA rent 2 hours",
"roomTypeCode": "DRS0",
"roomTypeName": "Standby DRS0",
"stayWindow": {
"endDate": "2099-01-01",
"startDate": "2021-02-19",
"weekControl": "1111111"
}
},
{
"bookWindow": {
"endDate": "2099-01-01",
"startDate": "2019-01-01"
},
"checkinType": "DAY",
"promotion": false,
"rateCode": "Base-OTC-STD-BF2",
"rateCodeName": "Group OTA Pay-as-you-go Double Morning+1",
"roomTypeCode": "PK1",
"roomTypeName": "Deluxe Big Bed Room",
"stayWindow": {
"endDate": "2099-01-01",
"startDate": "2019-01-01",
"weekControl": "1111111"
}
}
]
},
"echoToken": "hhub-crs-distributor-021ad114-459874-11"
}
Response Success Example#
{
"code":4103,
"message":"No match found"
}