GET /v1/scheduling/resources/availability
Free time blocks of the block resources of a branch, day by day, with the room left and the price of each block.
GET
Free blocks of block resources
Returns, for each day of the range, the blocks each
The branch, or the
block resource of the branch still has room for. A block that is outside the resource’s hours, too soon, or already full does not show up.
Resources booked by night never appear here. For them use GET resources/stays/availability.
Endpoint
Required scope
scheduling:availability:read
Query params
branch_id,date_from,date_to: required. Dates areYYYY-MM-DDin the branch timezone, both included. The range covers at most 31 days (date_toup to 30 days afterdate_from); a longer one returns400 INVALID_DATE_RANGE.resource_id: only that resource.party_size: how many people the block must fit. Defaults to 1.duration_minutes: one of the resource’sdurations_minutes. Defaults to the first one listed.exclude_booking_id: the booking you are moving. It does not count against the room, so its own block shows up as free.
Example request
curl
Response
200 OK
slots[].start_timeandend_timeare local times in the branch timezone.startandendare the same instants in UTC.remaining: room left in the block. In asharedresource it is the capacity minus the most people booked at the same time inside the block.price: price of the block for the requested duration and party size.
date and start_time to POST booking/resource-bookings.
400 Bad Request
404 Not Found
resource_id, does not exist or belongs to another company. On this endpoint the reason comes in message (BRANCH_NOT_FOUND or RESOURCE_NOT_FOUND).
401 Unauthorized · 403 Forbidden
Same semantics as the rest of the public API.Authorizations
Query Parameters
Response
200
Free blocks of block resources