Booking
Create booking
Create or resume a booking for one rate and return a payment link with the accepted terms. The same user and stay always return the same order; a stay that is already paid returns 409.
Input
hotelIdintegerrequiredHotel id.
roomIdstringrequiredroomId from rates.
ratePlanCodestringrequiredratePlanCode from rates.
checkInstringrequiredCheck-in date, yyyy-MM-dd.
checkOutstringrequiredCheck-out date, yyyy-MM-dd. Stays are 1 to 15 nights.
roomsintegerrequiredNumber of rooms.
adultsintegerrequiredAdults per room.
childrenAgesinteger[]Age of each child per room.
guestsobject[]requiredAt least one guest per room, no more than the room sleeps. Names in Latin letters as on the passport; transliterate accents (Müller → Mueller).
guests[].firstNamestringrequiredFirst name.
guests[].lastNamestringrequiredLast name.
guests[].roomNointegerrequiredRoom the guest stays in, starting at 1.
contactNamestringrequiredContact person for the booking.
contactPhonestringrequiredContact phone number.
contactEmailstringContact email.
specialRequestsstringRequests for the hotel, in English. Not guaranteed.
Output
Returns the Booking result object as structuredContent. Errors are described in the overview.