TOOL API
tuniuHotelCreateOrder
Creates a hotel booking order on Tuniu once the user has confirmed the room and stay dates. Before calling it, fetch the hotel details and available rates with tuniuHotelDetail and take preBookParam from roomTypes[].ratePlans[]; price verification is done automatically, so there is no need to call tuniuHotelVerifyPrice. If the rate cache has expired, call tuniuHotelDetail again with the same check-in and check-out dates to refresh it. Each guest in roomGuests needs a firstName and lastName, and if the selected rate requires an English name or an email address, collect those from the user first, since the tool returns an error when they are missing.
Call information
- Tool slug
- tuniu.tuniuHotelCreateOrder
- Provider
- Tuniu
- Average response
- 0 ms
- Calls in 7 days
- 0
Input parameters
hotelIdrequired酒店ID
roomIdrequired房型ID
preBookParamrequired预订参数,用于标识具体报价方案
checkInDaterequired入住日期,格式 YYYY-MM-DD
checkOutDaterequired离店日期,格式 YYYY-MM-DD
roomCountrequired预订房间数量
roomGuestsrequired每间房的入住人信息,数组长度应等于 roomCount,每个元素包含该房间的入住人列表
contactNamerequired联系人姓名
contactPhonerequired联系人电话
contactEmailstring