Reservation Detail

Get hotel reservation information for a specified reservation number

Request Method#

POST

uri: /reservation/detail

Content-Type: application/json


Request parameter description#

RequestHeader#

Common Request Header [reference]

RequestBody#

ParameterTypeRequiredMaximum lengthExample
resIdStringY64

Response parameter description#

Common Response Parameters [reference]

content#

ParameterTypeRequiredMaximum lengthExampleDescription
hotelIdStringY3212 * * 567Hotel ID
checkInTypeStringY16DAYcheck-in type, DAY: full-time room HOUR: Hourly rate room
reservationsList<ReservationInfo>Y-room list information, only single hotel and single product reservation are supported for the time being, only one collection is required
distributorResIdStringY64Channel reservation number
paymentTypeStringY16Enum value:
Enumeration Dictionary
guestCommentStringN512no smokingGuest notes, **Unsupported character: โ€œ\
hotelCommentStringN512No invoicing requiredReservation notes, invisible for guest
resIdStringY64Huazhu reservation number
resCodeStringN32reservation code, not required
bookingTimeLongY-Reservation time, total milliseconds from 00: 00: 00 GMT on January 1, 1970
statusStringY32Order Status:
HOTEL_RESERVATION Booking Success Reference Enumeration: Order Status
occupyRoomFlagIntegerN-Not support yet
actualTotalPriceBigDecimalN-ActualTotalPrice cannot be blank when couponUseinfos has value. ActualTotalPrice is the sum of daily pricing, it represents the total cost of reservation.
couponUseInfosList<CouponUseInfo>N-Coupon Information

ReservationInfo#

ParameterTypeRequiredMaximum lengthExampleDescription
roomTypeCodeStringY64DR1Room Code
rateCodeStringY64Base-NTRrateCode
checkinDateY-2021-10-01Check-in date in yyyy-MM-dd format
checkoutDateY-2021-10-02Check-out date, format: yyyy-MM-dd, price does not include date of departure, Hourly rate room leaves the same day as checkin.
amountBeforeTaxList<BigDecimal>N-[ 100, 120]Price excluding tax
amountAfterTaxList<BigDecimal>Y-[ 100, 130]Price including tax
currencyCodeStringY8CNYThe currency corresponding to the price, refer to the international standard: ISO-4217
roomCountIntegerY-2Number of rooms
guaranteePolicyCodeStringY32Guarantee policy code, Enumeration Dictionary
cancelPolicyCodeStringY64Cancel policy code, reference code rules
estimatedArrivalTimeStringY-18:30The estimation of guest arrival time at the property when specified, the time format is HH:mm, the default time is 12:00.
adultCountIntegerY-1Number of adults per room, the limit depends on hotel details
childCountIntegerN-2Number of children per room, the limit depends on hotel details
childAgesList<Integer>N-list of length 2

CouponUseInfo:#

ParameterTypeRequiredMaximum lengthExampleDescription
couponIdStringY32Coupon ID
actualDiscountAmountBigDecimalY-The amount of the discounted value. For example, if a guest redeems a $10 coupon in the reservation, the amount would be $10

ResponseCode#

Exception CodeException TypeDescription
1000Success
5301Reservation not belong to requesterOrder does not match current channel
5302Reservation not foundOrder not found
OthersGlobal Exception CodeGlobal Exception [Reference]

Message example#

Case1: regular Query#

Request Example#

{
"resId": "R200031####135470001"
}

Example of successful response#

{
"code": 1000,
"content ": {
"hotelId": "12**567 ",
"checkInType": "DAY ",
"paymentType": "OPN ",
"reservations ": [
{
"rateCode": "BAR1 ",
"roomTypeCode": "TR1 ",
"checkin": "2021-10-06 ",
"checkout": "2021-10-08 ",
"currencyCode": "CNY ",
"amountBeforeTax ": [
500,
500
],
"amountAfterTax ": [
549,
549
],
"roomCount": 1
"adultCount": 2
"guaranteePolicyCode": "PN ",
"cancelPolicyCode": "AD0_0 ",
"estimatedArrivalTime": "18:30"
}
],
"distributorResId": "13248292900 ",
"guestComment": "I'm a guest note",
"hotelComment": "I am the order note, the guest can't see it",
"status": "HOTEL_ROOM_CHECK_OUT ",
"resId": "R200031####135470001 ",
"bookingTime": 1635754390000
}
}

Response Failure Example#

{
"code": 5302,
"message": "Reservation not found"
}