Multi-unit bookings, blocks & holds

TL;DR

On a hotel-model PMS, book several rooms in one booking with units on POST /v1/reservations; each room comes back as its own reservation. Take rooms out of sale with /v1/unit-blocks (blocked, out_of_service, or a hold for a guest), and keep rooms for weddings, tours and events with /v1/group-holds, then book against them with groupHoldId. Check capabilities on the listing first. Cloudbeds supports all of it today.

The model

This page builds on Hotels & multi-unit listings. In short:

  • Hotel: the property (GET /v1/hotels). Everything on this page stays inside one hotel.
  • Listing: a room type ("Deluxe Queen"). You book, block and hold by listing id.
  • Unit: one physical room of a room type, from GET /v1/listings/{id}/units. Use a unit id to book or block that exact room.

Check what a listing supports first

GET /v1/listings/{id} (and GET /v1/connect/{provider} for any listing of a connection) answers before you write. A flag is true only when the provider, the connection and its write policy all allow it; a false flag is the error you would otherwise get.

curl "https://api.repull.dev/v1/listings/30908" \
  -H "Authorization: Bearer sk_live_YOUR_KEY"

# "capabilities": {
#   "reservations": {
#     "managedBy": "pms",
#     "provider": "cloudbeds",
#     "create": true,
#     "multiUnit": true,
#     "groupHoldBooking": true,
#     ...
#   },
#   "inventory": {
#     "provider": "cloudbeds",
#     "unitBlocks": true,
#     "unitBlockHolds": true,
#     "groupHolds": true,
#     "notes": "..."
#   }
# }
  • capabilities.reservations.multiUnit: units on POST /v1/reservations.
  • capabilities.reservations.groupHoldBooking: groupHoldId on POST /v1/reservations.
  • capabilities.inventory.unitBlocks: unit blocks of type blocked and out_of_service, and removing them.
  • capabilities.inventory.unitBlockHolds: unit blocks of type hold.
  • capabilities.inventory.groupHolds: creating and releasing group holds.
  • capabilities.inventory.notes: what the flags do not say, and why something is off.

Several units in one booking

Send units instead of a single listingId. Each line is a room type, how many rooms of it, and the guests in each of those rooms. A line with unitId books that one room. All lines must be in the same hotel.

curl -X POST "https://api.repull.dev/v1/reservations" \
  -H "Authorization: Bearer sk_live_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: 5d0c8f2a-6b1e-4c39-9a7d-2f4e8b1c6a90" \
  -d '{
    "checkIn": "2027-03-10",
    "checkOut": "2027-03-12",
    "guest": { "firstName": "Ada", "lastName": "Feather", "email": "ada@example.com" },
    "units": [
      { "listingId": 30908, "quantity": 2, "adults": 2 },
      { "listingId": 30909, "unitId": "679315-4", "adults": 1, "children": 1 }
    ]
  }'

A line of units

listingIdintegerRequired

The listing (room type).

quantityinteger

How many rooms of it, 1 to 100. Default 1. Must be 1 with `unitId`.

unitIdstring

Book this room (`GET /v1/listings/{id}/units` → `id`). Otherwise the PMS assigns rooms.

adultsinteger

Adults in EACH room of the line, 1 or more.

childreninteger

Children in EACH room of the line, 0 or more.

Up to 50 lines. listingId at the top level becomes optional when units is sent. The guest, dates, status, notes and Idempotency-Key work exactly as for a single booking (see Creating reservations).

What comes back

The PMS makes one booking (pms.reservationId). Repull records every room as its own reservation, so each one has its listing, its room, its price and its own webhooks. All of them are in reservations; the first is also the top-level reservation.

{
  "id": "241401",
  "confirmationCode": "CB3279855914878-1",
  "listingId": "30908",
  "platform": "direct",
  "status": "confirmed",
  "checkIn": "2027-03-10",
  "checkOut": "2027-03-12",
  "guestId": "91240",
  "totalPrice": 356,
  "currency": "EUR",
  "unit": { "id": "679314-0", "name": "DQ(1)" },
  "reservations": [
    { "id": "241401", "confirmationCode": "CB3279855914878-1", "listingId": "30908", "status": "confirmed", "unit": { "id": "679314-0", "name": "DQ(1)" }, "totalPrice": 356 },
    { "id": "241402", "confirmationCode": "CB3279855914878-2", "listingId": "30908", "status": "confirmed", "unit": { "id": "679314-1", "name": "DQ(2)" }, "totalPrice": 356 },
    { "id": "241403", "confirmationCode": "CB3279855914878-3", "listingId": "30909", "status": "confirmed", "unit": { "id": "679315-4", "name": "DK(5)" }, "totalPrice": 418 }
  ],
  "pms": {
    "provider": "cloudbeds",
    "reservationId": "3279855914878",
    "applied": ["reservation"],
    "errors": [],
    "partial": false,
    "failedSections": []
  }
}

Changing or cancelling one room

Changing or cancelling a single room of a booking made with several units is refused with 409 pms_group_booking: the PMS changes the booking as a whole. Make the change in the PMS; it reaches Repull with the next sync and reservation.updated or reservation.cancelled fires.

Unit blocks

A unit block takes specific rooms out of sale for a date range. One block can cover rooms of several room types of the same hotel. endDate is exclusive, like a checkout date. Blocks made in the PMS show up in GET /v1/unit-blocks too.

typeUse it for
blockedOut of sale: an owner stay, an event, house use.
out_of_serviceOut of order: maintenance, renovation, damage.
holdKept for a named guest (guest) for holdHours (1 to 8,760). When it lapses the PMS puts the rooms back on sale.
# Two rooms out of service for repainting (nights of 10 and 11 March)
curl -X POST "https://api.repull.dev/v1/unit-blocks" \
  -H "Authorization: Bearer sk_live_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "type": "out_of_service",
    "startDate": "2027-03-10",
    "endDate": "2027-03-12",
    "reason": "Repainting",
    "units": [
      { "listingId": 30908, "unitId": "679314-2" },
      { "listingId": 30908, "unitId": "679314-3" }
    ]
  }'

# Put them back on sale
curl -X DELETE "https://api.repull.dev/v1/unit-blocks/17961907985432547" \
  -H "Authorization: Bearer sk_live_YOUR_KEY"

Holding rooms for a guest

A hold keeps rooms while a guest decides. guest (at least lastName) and holdHours are required; on Cloudbeds send the guest's email and phone as well. The block's expiresAt says when it lapses.

curl -X POST "https://api.repull.dev/v1/unit-blocks" \
  -H "Authorization: Bearer sk_live_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "type": "hold",
    "startDate": "2027-03-10",
    "endDate": "2027-03-12",
    "units": [
      { "listingId": 30908, "unitId": "679314-0" },
      { "listingId": 30909, "unitId": "679315-0" }
    ],
    "guest": { "firstName": "Ada", "lastName": "Feather", "email": "ada@example.com", "phone": "+14035551234" },
    "holdHours": 48
  }'

Blocks and availability

Blocked rooms count as taken. In GET /v1/availability/{propertyId} a blocked room shows available: false in that night's units. Removing the block with DELETE /v1/unit-blocks/{id} puts the rooms back on sale.

Group holds

A group hold keeps a number of rooms of one or more room types for a group (a wedding, a tour, a conference), without naming the rooms or the guests yet. Then each guest books against the hold with groupHoldId, and what the group did not book is released.

  • status: confirmed (contracted), tentative (the default) or inquiry (a lead).
  • startDate is the first held night; endDate is the day after the last one.
  • units: quantity rooms of each listing for every night. A line can narrow its own startDate / endDate within the hold's dates.
  • groupCode: an existing group in the PMS to attach the hold to (see Cloudbeds below).
# Hold 5 Deluxe Queen rooms for both nights, and 2 Deluxe Kings for the second night
curl -X POST "https://api.repull.dev/v1/group-holds" \
  -H "Authorization: Bearer sk_live_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Feather offsite",
    "status": "tentative",
    "startDate": "2027-03-10",
    "endDate": "2027-03-12",
    "units": [
      { "listingId": 30908, "quantity": 5 },
      { "listingId": 30909, "quantity": 2, "startDate": "2027-03-11" }
    ]
  }'

# Book one of the group's rooms against the hold
curl -X POST "https://api.repull.dev/v1/reservations" \
  -H "Authorization: Bearer sk_live_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: 0b7e4c1d-93a2-4f68-8e5b-6c2d1a9f3e47" \
  -d '{
    "groupHoldId": "AB12CD",
    "checkIn": "2027-03-10",
    "checkOut": "2027-03-12",
    "guest": { "firstName": "Grace", "lastName": "Hopper", "email": "grace@example.com" },
    "units": [{ "listingId": 30908, "quantity": 1, "adults": 2 }]
  }'

# After the cut-off: release whatever the group did not book
curl -X DELETE "https://api.repull.dev/v1/group-holds/AB12CD" \
  -H "Authorization: Bearer sk_live_YOUR_KEY"

A group hold reports, per room type and night, how many rooms are held and how many are already booked against it:

{
  "id": "AB12CD",
  "name": "Feather offsite",
  "status": "tentative",
  "groupCode": "FEATHER27",
  "startDate": "2027-03-10",
  "endDate": "2027-03-12",
  "releaseDate": null,
  "units": [
    { "listingId": "30908", "date": "2027-03-10", "held": 5, "booked": 1 },
    { "listingId": "30908", "date": "2027-03-11", "held": 5, "booked": 1 },
    { "listingId": "30909", "date": "2027-03-11", "held": 2, "booked": 0 }
  ],
  "provider": "cloudbeds",
  "createdAt": "2027-02-01T15:00:00.000Z",
  "updatedAt": "2027-02-02T09:12:40.000Z"
}

DELETE /v1/group-holds/{id} releases the rooms nobody booked. Bookings already made against the hold stay. Holds made in the PMS show up in GET /v1/group-holds too.

Cloudbeds: every hold belongs to a group

In Cloudbeds a group hold lives inside a group. Send groupCode to use a group you already have. Without it, a group is created for you where the Cloudbeds account allows it; where it does not, the answer is 422 pms_rejected saying to create the group in Cloudbeds first. Create it there and send its code.

Write policy

Booking, blocking and holding all write to the PMS, so they follow the connection's write policy. With reservations.api turned off, every write on this page answers 409 pms_writes_off and nothing is sent to the PMS. Reads keep working.

Errors

CodeStatusMeaning
pms_write_unsupported422The provider cannot do this (for example a unit block on Mews), or no PMS manages the listing. The `fix` says what to do instead. Nothing was sent.
pms_group_booking409You tried to change or cancel one unit of a booking made with several units. Change it in the PMS; the change reaches Repull with the next sync.
pms_writes_off409The connection’s write policy has `reservations.api` turned off, so the API does not change bookings or inventory in this PMS. Turn it on, or make the change in the PMS.
pms_rejected422The PMS refused it; its reason is in `message`. For a Cloudbeds group hold, this is also the answer when Cloudbeds will not create the group: create it in Cloudbeds and send its `groupCode`.
pms_unavailable409The PMS has no units left for those dates (or the named unit is taken). Nothing was booked.

Support by provider

ProviderSeveral units in one bookingUnit blocksHolds for a guestGroup holdsNotes
Cloudbeds✓✓✓✓Blocks are Cloudbeds room blocks, holds are courtesy holds (the guest’s email and phone are needed, up to 8,760 hours), group holds are allotment blocks inside a Cloudbeds group.
Mews––––Not yet. Book one unit per request.
Booking.comInbound only–––A guest’s multi-room booking arrives as one reservation per room.
tiket.comInbound only–––A guest’s multi-room booking arrives as one reservation per room.
Vacation-rental PMSs––––Hostaway, Guesty, Beds24 and the rest: not yet. Book one listing per request; block dates with availability.

Where a provider has no ✓, the write answers 422 pms_write_unsupported with a fix, never a partial result. The same goes for a listing no PMS manages. Cloudbeds multi-room bookings and unit blocks were run end to end on a Cloudbeds sandbox; Cloudbeds group holds are verified against Cloudbeds' API documentation.

AI