To retrieve on-request rates, additional implementation is required in the following areas: Price Search, Price Confirm and Booking Search
Request Example
{
"Header": {
"ClientID": "DidaApiTestID",
"LicenseKey": "TestKey"
},
"HotelIDList": [542586],
"CheckInDate": "2021-09-13",
"CheckOutDate": "2021-09-14",
"IsRealTime": {
"Value": true,
"RoomCount": 1
},
"RealTimeOccupancy": {
"ChildCount": 0,
"AdultCount": 2,
"ChildAgeDetails": []
},
"Nationality": "CN",
"Currency": "CNY",
"IsNeedOnRequest": true
}
Response example
{
"Success": {
"PriceDetails": {
"CheckOutDate": "2021-09-14 00:00:00",
"CheckInDate": "2021-09-13 00:00:00",
"HotelList": [{
"HotelID": 542586,
"Destination": {
"CityCode": "930"
},
"RatePlanList": [{
"TotalPrice": 127.07,
"RoomStatus": 1,
"BreakfastType": 2,
"BedType": 2,
"RoomOccupancy": {
"ChildCount": 0,
"AdultCount": 2,
"RoomNum": 1
},
"PriceList": [{
"StayDate": "2021-09-13 00:00:00",
"Price": 127.07,
"MealAmount": 2,
"MealType": 2
}
],
"RatePlanCancellationPolicyList": [{
"Amount": 127.07,
"FromDate": "2021-09-11 00:00:00"
}
],
"IsOnRequest": true,
"StandardOccupancy": 2,
"InventoryCount": 10,
"MaxOccupancy": 2,
"Currency": "CNY",
"RatePlanName": "限时特惠",
"RatePlanID": "-8930392398183591101"
}
],
"HotelName": "Wan Li Duo Hotel (Mingshu)"
}
]
}
}
}
Response example
{
"PreBook": true,
"CheckInDate": "2021-09-13",
"CheckOutDate": "2021-09-14",
"NumOfRooms": 1,
"HotelID": 542586,
"Header": {
"LicenseKey": "TestKey",
"ClientID": "DidaApiTestID"
},
"OccupancyDetails": [{
"ChildCount": 0,
"AdultCount": 2,
"RoomNum": 1
}
],
"Currency": "CNY",
"Nationality": "CN",
"RatePlanID": "-8930392398183591101",
"IsNeedOnRequest": true
}
Response example
{
"Success": {
"PriceDetails": {
"CheckOutDate": "2021-09-14 00:00:00",
"CheckInDate": "2021-09-13 00:00:00",
"HotelList": [{
"HotelID": 542586,
"Destination": {
"CityCode": "930"
},
"RatePlanList": [{
"TotalPrice": 127.07,
"RoomStatus": 1,
"BreakfastType": 2,
"BedType": 2,
"RoomOccupancy": {
"ChildCount": 0,
"AdultCount": 2,
"RoomNum": 0
},
"PriceList": [{
"StayDate": "2021-09-13 00:00:00",
"Price": 127.07,
"MealAmount": 2,
"MealType": 2
}
],
"RatePlanCancellationPolicyList": [{
"Amount": 127.07,
"FromDate": "2021-09-11 00:00:00"
}
],
"IsOnRequest": true,
"StandardOccupancy": 2,
"InventoryCount": 10,
"MaxOccupancy": 2,
"Currency": "CNY",
"RatePlanName": "限时特惠",
"RatePlanID": "-8930392398183591101"
}
],
"HotelName": "Wan Li Duo Hotel (Mingshu)"
}
]
}
}
}
Response
The "Status" parameter is used with a new enum value [6]:
For bookings that are on-request: Cancellation is possible and works the same way as a normal booking cancellation. For bookings that are instantly confirmed: Cancellation is not supported.