Hotels
Get live hotel rates
Live rooms and rate plans for up to 15 hotels, prices in currency (CNY by default, or USD) at Stripe's exchange rate. rooms, adults and childrenAges are per room: every room has the same occupancy. Each room carries its catalogue facts (static) and the cheapest rate per meal plan × free-cancellation variant, with roomId and ratePlanCode for book_hotel. boardCode is the meal plan (RO room only; BB breakfast; HB breakfast + dinner; FB breakfast + lunch + dinner; BL lunch; BD dinner; HBBL breakfast + lunch; HBLD lunch + dinner; AI all inclusive); boardCount is how many guests per room it covers: fewer than adults per room means the meals don't cover everyone (BB with boardCount 1 for 2 adults is breakfast for 1 of 2). Takes about 15 seconds; query a few hotels at a time. Returns the 5 cheapest rooms per hotel unless maxRoomsPerHotel says otherwise.
Input
hotelIdsinteger[]requiredHotels to price. Each call takes about 15 seconds.
checkInstringrequiredCheck-in date, yyyy-MM-dd.
checkOutstringrequiredCheck-out date, yyyy-MM-dd. Stays are 1 to 15 nights.
roomsintegerrequiredNumber of rooms; every room has the same occupancy
adultsintegerrequiredAdults per room, not in total (2 rooms for 4 adults = rooms 2, adults 2)
childrenAgesinteger[]Age of each child in one room (0-17), per room
nationalitystringGuest nationality, ISO 3166-1 alpha-2 in upper case, e.g. CN. Some rates are restricted by nationality; booking doesn't send it, so such a rate may change or be refused at booking
currency"CNY" | "USD"Currency to show prices in. Prices are converted from the supplier's at Stripe's exchange rate; the response's fx says how.
bookableOnlybooleanKeep only rates that are bookable on every night.
boardCodes("RO" | "BB" | "HB" | "FB" | "BL" | "BD" | "HBBL" | "HBLD" | "AI")[]Keep only these meal plans: RO room only, BB breakfast, HB half board, FB full board, AI all inclusive, and so on.
freeCancellationbooleanKeep only rates that can still be cancelled free of charge right now.
maxRoomsPerHotelintegerReturn the N cheapest rooms per hotel. Defaults to 5.
Output
Returns the Rates result object as structuredContent. Errors are described in the overview.