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-blocksNote
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
listingIdintegerOnly blocks on this listing (room type).
hotelIdstringOnly blocks on this hotel's room types (`GET /v1/hotels`).
startDatedateBlocks that end after this date.
endDatedateBlocks that start before this date.
typestring`blocked`, `out_of_service` or `hold`.
limitintegerDefault: 25Page size (max 100). Requests over the cap return 422.
cursorstringOpaque cursor from the previous response's `pagination.nextCursor`. Omit for the first page.
AI