Docs/API Reference/Unit Blocks & Group Holds

List unit blocks: units out of sale for a date range

Unit Blocks & Group Holds · GET /v1/unit-blocks

List unit blocks: units out of sale for a date range

GET/v1/unit-blocks

Note

One entry per block, with every unit it covers. `startDate`/`endDate` return blocks that touch the range. A block's `endDate` is exclusive, like a checkout date. Blocked units count as taken in `GET /v1/availability/{propertyId}` → `units`. Guide: /docs/multi-unit#unit-blocks

Request

curl https://api.repull.dev/v1/unit-blocks \
  -H "Authorization: Bearer $REPULL_API_KEY"

Response

{
  "data": [
    {
      "id": "17961907985432547",
      "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" }
      ],
      "guest": null,
      "holdHours": null,
      "expiresAt": null,
      "provider": "cloudbeds",
      "createdAt": "2027-02-01T14:03:11.000Z",
      "updatedAt": "2027-02-01T14:03:11.000Z"
    }
  ],
  "pagination": { "nextCursor": null, "hasMore": false }
}

Query Parameters

listingIdinteger

Only blocks on this listing (room type).

hotelIdstring

Only blocks on this hotel's room types (`GET /v1/hotels`).

startDatedate

Blocks that end after this date.

endDatedate

Blocks that start before this date.

typestring

`blocked`, `out_of_service` or `hold`.

limitintegerDefault: 25

Page size (max 100). Requests over the cap return 422.

cursorstring

Opaque cursor from the previous response's `pagination.nextCursor`. Omit for the first page.

AI