---
title: "Multi-unit Bookings, Blocks & Holds — Documentation"
canonical: "https://repull.dev/docs/multi-unit"
description: "Book several rooms in one PMS booking, take units out of sale with unit blocks and holds, and hold rooms for groups. Provider support and errors."
updated: "2026-12-04T21:50:32.403Z"
commit: "05317760b17f5bea607efd630dee2eff2bb5ec44"
---

# 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](https://repull.dev/docs/hotels.md). 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**

```bash
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": "..."
#   }
# }
```

**TypeScript**

```typescript
const res = await fetch('https://api.repull.dev/v1/listings/30908', {
  headers: { Authorization: `Bearer ${process.env.REPULL_API_KEY}` },
})
const { capabilities } = await res.json()

if (!capabilities.reservations.multiUnit) {
  // Book one unit per request instead, or do it in the PMS.
}
if (!capabilities.inventory.unitBlocks) {
  // capabilities.inventory.notes says why: provider, connection or write policy.
  throw new Error(capabilities.inventory.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**

```bash
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 }
    ]
  }'
```

**TypeScript**

```typescript
import { randomUUID } from 'node:crypto'

const idempotencyKey = randomUUID() // reuse it on every retry of this booking

const res = await fetch('https://api.repull.dev/v1/reservations', {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.REPULL_API_KEY}`,
    'Content-Type': 'application/json',
    'Idempotency-Key': idempotencyKey,
  },
  body: JSON.stringify({
    checkIn: '2027-03-10',
    checkOut: '2027-03-12',
    guest: { firstName: 'Ada', lastName: 'Feather', email: 'ada@example.com' },
    units: [
      // Two Deluxe Queen rooms, 2 adults in EACH; the PMS picks the rooms.
      { listingId: 30908, quantity: 2, adults: 2 },
      // One named room of another room type.
      { listingId: 30909, unitId: '679315-4', adults: 1, children: 1 },
    ],
  }),
})
const booking = await res.json()

if (res.status === 201) {
  console.log('PMS booking', booking.pms.reservationId)
  for (const r of booking.reservations) {
    console.log(r.id, r.listingId, r.unit?.name, r.totalPrice)
  }
}
```

### A line of `units`

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `listingId` | `integer` | Yes | The listing (room type). |
| `quantity` | `integer` | No | How many rooms of it, 1 to 100. Default 1. Must be 1 with \`unitId\`. |
| `unitId` | `string` | No | Book this room (\`GET /v1/listings/{id}/units\` → \`id\`). Otherwise the PMS assigns rooms. |
| `adults` | `integer` | No | Adults in EACH room of the line, 1 or more. |
| `children` | `integer` | No | 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](https://repull.dev/docs/reservations/create.md)).

### 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.

```json
{
  "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](https://repull.dev/docs/errors/pms_group_booking.md): 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.

| `type` | Use it for |
| --- | --- |
| `blocked` | Out of sale: an owner stay, an event, house use. |
| `out_of_service` | Out of order: maintenance, renovation, damage. |
| `hold` | Kept for a named guest (`guest`) for `holdHours` (1 to 8,760). When it lapses the PMS puts the rooms back on sale. |

**cURL**

```bash
# 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"
```

**TypeScript**

```typescript
const headers = {
  Authorization: `Bearer ${process.env.REPULL_API_KEY}`,
  'Content-Type': 'application/json',
}

// Units come from GET /v1/listings/{id}/units
const unitsRes = await fetch('https://api.repull.dev/v1/listings/30908/units', { headers })
const { data: units } = await unitsRes.json()

const res = await fetch('https://api.repull.dev/v1/unit-blocks', {
  method: 'POST',
  headers,
  body: JSON.stringify({
    type: 'out_of_service',
    startDate: '2027-03-10',
    endDate: '2027-03-12', // exclusive, like a checkout date
    reason: 'Repainting',
    units: units.slice(2, 4).map((u: { id: string }) => ({ listingId: 30908, unitId: u.id })),
  }),
})
const block = await res.json()

// Later: back on sale
await fetch(`https://api.repull.dev/v1/unit-blocks/${block.id}`, { method: 'DELETE', headers })
```

### 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).

**cURL**

```bash
# 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"
```

**TypeScript**

```typescript
const headers = {
  Authorization: `Bearer ${process.env.REPULL_API_KEY}`,
  'Content-Type': 'application/json',
}

const holdRes = await fetch('https://api.repull.dev/v1/group-holds', {
  method: 'POST',
  headers,
  body: JSON.stringify({
    name: 'Feather offsite',
    status: 'tentative',
    startDate: '2027-03-10',
    endDate: '2027-03-12', // the day after the last held night
    units: [
      { listingId: 30908, quantity: 5 },
      { listingId: 30909, quantity: 2, startDate: '2027-03-11' },
    ],
    // groupCode: 'FEATHER27', // an existing Cloudbeds group, if you have one
  }),
})
const hold = await holdRes.json()

// Each guest of the group books against the hold
await fetch('https://api.repull.dev/v1/reservations', {
  method: 'POST',
  headers: { ...headers, 'Idempotency-Key': crypto.randomUUID() },
  body: JSON.stringify({
    groupHoldId: hold.id,
    checkIn: '2027-03-10',
    checkOut: '2027-03-12',
    guest: { firstName: 'Grace', lastName: 'Hopper', email: 'grace@example.com' },
    units: [{ listingId: 30908, quantity: 1, adults: 2 }],
  }),
})

// Held vs booked, per room type and night
const latest = await (await fetch(`https://api.repull.dev/v1/group-holds/${hold.id}`, { headers })).json()
for (const n of latest.units) console.log(n.listingId, n.date, `${n.booked}/${n.held}`)

// Release what is left
await fetch(`https://api.repull.dev/v1/group-holds/${hold.id}`, { method: 'DELETE', headers })
```

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

```json
{
  "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.

> **Note: 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](https://repull.dev/docs/errors/pms_rejected.md) 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](https://repull.dev/docs/connect/write-policy.md). 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

| Code | Status | Meaning |
| --- | --- | --- |
| [`pms_write_unsupported`](https://repull.dev/docs/errors/pms_write_unsupported.md) | 422 | The 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_booking`](https://repull.dev/docs/errors/pms_group_booking.md) | 409 | You 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_off`](https://repull.dev/docs/errors/pms_writes_off.md) | 409 | The 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_rejected`](https://repull.dev/docs/errors/pms_rejected.md) | 422 | The 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_unavailable`](https://repull.dev/docs/errors/pms_unavailable.md) | 409 | The PMS has no units left for those dates (or the named unit is taken). Nothing was booked. |

## Support by provider

| Provider | Several units in one booking | Unit blocks | Holds for a guest | Group holds | Notes |
| --- | --- | --- | --- | --- | --- |
| 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.com | Inbound only | – | – | – | A guest’s multi-room booking arrives as one reservation per room. |
| tiket.com | Inbound 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.

## Related

- [Hotels & multi-unit listings](https://repull.dev/docs/hotels.md): hotels, room types, units, rooms left per night.
- [Creating reservations](https://repull.dev/docs/reservations/create.md): every field, idempotency, partial success.
- [PMS reservation support](https://repull.dev/docs/reservations/pms-support.md): what each PMS can create, change and cancel.
- [Cloudbeds](https://repull.dev/docs/pms/cloudbeds.md): connecting Cloudbeds.
- [API reference: unit blocks and group holds](https://repull.dev/docs/api/inventory/unit-blocks-list.md).
