Several rooms in one booking
A group can book several rooms of one room type as one booking, with one guest contact and one Idempotency-Key. Tulo books every room or none.
Added in 1.4.0 · additive: a single-room integration sees no change
Step 1: Quote N rooms#
Call
GET /quotewithrooms=Nand the whole group'sadultsandchildren. Each option adds four fields:Multi-room quote fields Field Meaning rooms The rooms asked for. rooms_fit N units are open on every night and the party splits across them: each room at least one adult and within the type's capacity. False with available_units below rooms means not enough rooms. selection_total stay_total x rooms: the room price of all the rooms. stay_total stays one unit. suggested_split Tulo's default party per room, room 1 first. Only when the party splits across N rooms. units_requiredis the fewest rooms of that type the party needs: start the guest's room count there. Offer only options withrooms_fit: true. A dorm (bed) type fits only as one room and has noselection_totalfor more than one.GET /quote?check_in=2026-12-01&check_out=2026-12-03&adults=5&children=1&rooms=3 (abridged) · JSON{ "quote": { "check_in": "2026-12-01", "check_out": "2026-12-03", "nights": 2, "adults": 5, "children": 1, "room_options": [ { "room_type_id": "9a8b7c6d-5e4f-4a3b-8c2d-1e0f9a8b7c6d", "name": "Garden double", "unit": "room", "available_units": 4, "stay_total": 90000, "party_fits": false, "units_required": 3, "rooms": 3, "rooms_fit": true, "selection_total": 270000, "suggested_split": [ { "adults": 2, "children": 1 }, { "adults": 2, "children": 0 }, { "adults": 1, "children": 0 } ] } ] } }Step 2: Grey out nights for N rooms#
GET /calendarwithrooms=Nmarks a nightbookableonly when at least N units are open, and every other night says why inreason:stop_sell,fully_booked,not_enough_roomsorno_rate. Treat any reason, including one you do not know, as not bookable.Step 3: Create the booking#
Send
rooms[]instead of the top-levelroom_type_id,adults,childrenandbeds. Sending both is422 validation_failed. The quote'ssuggested_splitis a ready split; the guest may change it within the type's capacity.- rooms[].room_type_idstring (uuid) · required
The same room type in every entry. Not a shared (dorm) type: book beds with
beds.- rooms[].adultsinteger · required
At least one adult in every room.
1 to 50
- rooms[].childreninteger
Children in this room.
0 to 50 · default 0
- rooms[].guest_namestring
Who sleeps in this room, a name only. Room 1 is the lead guest's by default.
at most 120 characters
POST /bookings body · JSON{ "check_in": "2026-12-01", "check_out": "2026-12-03", "rooms": [ { "room_type_id": "9a8b7c6d-5e4f-4a3b-8c2d-1e0f9a8b7c6d", "adults": 2, "children": 1 }, { "room_type_id": "9a8b7c6d-5e4f-4a3b-8c2d-1e0f9a8b7c6d", "adults": 2, "guest_name": "Chanda Phiri" }, { "room_type_id": "9a8b7c6d-5e4f-4a3b-8c2d-1e0f9a8b7c6d", "adults": 1 } ], "guest": { "name": "Mwila Banda", "phone": "0971234567" } }There is no limit on the number of rooms beyond what is open. A retry with the same
Idempotency-Keyand the same body replays the booking and books nothing new. This body is therequest_multi_roomtest vector.Step 4: Handle not enough rooms#
When a night cannot take every room, nothing is booked and Tulo answers
409 no_availabilitywith details:HTTPHTTP/1.1 409 Conflict { "error": { "code": "no_availability", "message": "not enough rooms of this type are open for every night of the stay", "reason": "not_enough_rooms", "first_blocked_night": "2026-12-02", "available_count": 2, "room_type_id": "9a8b7c6d-5e4f-4a3b-8c2d-1e0f9a8b7c6d", "rooms": 3 } }reasonisnot_enough_rooms,fully_bookedorstop_sell. Send the guest back to the dates or the room count, namingfirst_blocked_nightandavailable_count. A single-room create keeps its plain409without these fields.Step 5: Show the rooms#
A booking made with two or more rooms carries
room_count(rooms still booked) androoms[]: every room, cancelled ones too, inpositionorder, each with its ownstate, party,stay_totaland times. The top-leveladults,childrenandstay_totalare totals over the rooms still booked, androom_type_idis room 1's. Physical room numbers are never sent. A single-room booking reads exactly as before.Room states state Meaning booked Booked, not yet checked in. checked_in This room's guests have checked in. checked_out This room's guests have checked out. cancelled The property cancelled this room. no_show The property marked that this room's guests did not arrive. Step 6: Follow changes to one room#
At the desk the property can cancel one room (or mark it as not arrived), check rooms in and out one by one, add a room, move a room and name who sleeps where. The booking stays
confirmed, and you receive a webhook with the whole booking as it is now:booking.room_cancelled: one room cancelled or marked as not arrived. That room showsstatecancelledorno_show, and the totals no longer count it.booking.updated: something else inside the booking changed. Read the booking in the payload as the new state; there is no diff.
A website cannot cancel one room through the API:
POST /bookings/{id}/cancelcancels every room. For one room, the guest contacts the property. See Webhook events.
