Dida API Supplier Document 1.To access Dida's non-instant confirmation resources, additional API development is required, mainly involving the following three APIs: PriceSearch, PriceConfirm, and HotelBookingSearch
2.If theIsNeedOnRequestfield is not provided, Dida will only return instant confirmation rates by default
3.TheIsNeedOnRequestfield in the Price Search stage and the Price Confirm stage is independent. If you do not pass theIsNeedOnRequestfield or setIsNeedOnRequest = falseduring the Price Search stage, but passIsNeedOnRequest = trueduring the Price Confirm stage, Dida will still provide eligible non-instant confirmation orders during the Price Confirm stage
4.If you have any further questions regarding theIsNeedOnRequestfield, please contact your dedicated Dida Account Manager
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.