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.

lifestyleOAuth1 credits

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

联系人电话

contactEmail

string