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

  1. Step 1: Quote N rooms#

    Call GET /quote with rooms=N and the whole group's adults and children. Each option adds four fields:

    Multi-room quote fields
    FieldMeaning
    roomsThe rooms asked for.
    rooms_fitN 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_totalstay_total x rooms: the room price of all the rooms. stay_total stays one unit.
    suggested_splitTulo's default party per room, room 1 first. Only when the party splits across N rooms.

    units_required is the fewest rooms of that type the party needs: start the guest's room count there. Offer only options with rooms_fit: true. A dorm (bed) type fits only as one room and has no selection_total for 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 }
            ]
          }
        ]
      }
    }
  2. Step 2: Grey out nights for N rooms#

    GET /calendar with rooms=N marks a night bookable only when at least N units are open, and every other night says why in reason: stop_sell, fully_booked, not_enough_rooms or no_rate. Treat any reason, including one you do not know, as not bookable.

  3. Step 3: Create the booking#

    Send rooms[] instead of the top-level room_type_id, adults, children and beds. Sending both is 422 validation_failed. The quote's suggested_split is 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-Key and the same body replays the booking and books nothing new. This body is the request_multi_room test vector.

  4. Step 4: Handle not enough rooms#

    When a night cannot take every room, nothing is booked and Tulo answers 409 no_availability with details:

    HTTP
    HTTP/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
      }
    }

    reason is not_enough_rooms, fully_booked or stop_sell. Send the guest back to the dates or the room count, naming first_blocked_night and available_count. A single-room create keeps its plain 409 without these fields.

  5. Step 5: Show the rooms#

    A booking made with two or more rooms carries room_count (rooms still booked) and rooms[]: every room, cancelled ones too, in position order, each with its own state, party, stay_total and times. The top-level adults, children and stay_total are totals over the rooms still booked, and room_type_id is room 1's. Physical room numbers are never sent. A single-room booking reads exactly as before.

    Room states
    stateMeaning
    bookedBooked, not yet checked in.
    checked_inThis room's guests have checked in.
    checked_outThis room's guests have checked out.
    cancelledThe property cancelled this room.
    no_showThe property marked that this room's guests did not arrive.
  6. 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 shows state cancelled or no_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}/cancel cancels every room. For one room, the guest contacts the property. See Webhook events.

Questions? Email support@mail.tulo.homes or WhatsApp +260 77 235 2417.