GET /v1/scheduling/resources/stays/availability
Quote a stay: for a check-in and check-out date, every night resource of a branch with whether it fits, its check-in and check-out windows, its price and the room left each night.
GET
Quote a stay on night resources
A stay on a
night resource runs from a check-in day to a check-out day. The nights are the days in between: check-in Thursday 3 and check-out Saturday 5 is two nights (Thursday and Friday).
This endpoint quotes that stay on every active night resource of the branch at once, sorted by the order the business set. Each resource says whether it fits, and when it does not, why. Reading a quote does not hold anything: book with POST booking/resource-bookings.
Endpoint
Required scope
scheduling:availability:read
Query params
branch_id,check_in,check_out: required. Days areYYYY-MM-DDin the branch timezone.check_outmust be aftercheck_in, and a stay is at most 92 nights.party_size: how many guests the stay must fit each night. Defaults to 1.resource_id: only quote that resource. It must be a night resource of the branch. An inactive resource returns an emptyresourcesarray.exclude_booking_id: the booking you are moving. Its nights do not count, so it can be quoted on new dates without colliding with itself.
Example request
curl
Response
200 OK
price: price of the whole stay: nights × the amount of the resource’s only pricing tier, timesparty_sizewhenpricing.modeisper_person. There is no per-night field; divide bynightsif you need it.prepayment: amount the customer pays up front when the resource asks for one.0when it does not.check_in_windowandcheck_out_window: local times the guest can arrive on the check-in day and leave on the check-out day. Send acheck_in_timeinside the first one when booking; leave it out and the stay starts when the window opens.nights[].remaining: room left that night, before this stay.- A resource that does not fit carries no windows, price or prepayment.
reason is null when the resource fits, or one of:
FULL:<date>: the first night without room.CLOSED_CHECK_IN/CLOSED_CHECK_OUT: the resource takes no check-ins, or no check-outs, that day (closed day, holiday).MIN_NIGHTS/MAX_NIGHTS: the stay is shorter or longer than the resource’sstayallows.PARTY_SIZE: the party does not fit one booking of the resource.TOO_SOON/TOO_FAR: the check-in is before the minimum notice, or past how far ahead the business takes bookings.
400 Bad Request
RESOURCE_BOOKING_UNIT_MISMATCH when resource_id is a block resource.
404 Not Found
BRANCH_NOT_FOUND, or RESOURCE_NOT_FOUND when resource_id does not exist or belongs to another branch.
401 Unauthorized · 403 Forbidden
Same semantics as the rest of the public API.Authorizations
Query Parameters
Response
200
Quote a stay on night resources