Core resources
Administration
Booking flow
Fetch the availability of multiple units over a long period of time.
perform_sync
boolean
Whether to sync external calendars before fetching availability. Defaults to false
product_id
required
Array<uuid>
The product IDs to fetch availability for.
show_booked_as
"booked" | "unavailable"
How to interpret confirmed bookings. Defaults to unavailable
show_closed_as
"closed" | "unavailable"
How to interpret blocked / closed periods. Defaults to unavailable
show_pending_as
"CANCELLED" | "TENTATIVE" | "CONFIRMED"
How to interpret pending events. Defaults to TENTATIVE
200
List with availability intervals per unit:
Array<{ product_id: uuid; intervals: Array<{ start: string; end: string; status: "available" | "tentative" | "unavailable" | "booked" | "reserved"; }> }>
GET
/availability
curl -X GET "https://api.bookingmood.com/v1/availability?product_id=00000000-0000-0000-0000-000000000000" \ -H "Authorization: Bearer YOUR_API_KEY"
[{]"product_id": "00000000-0000-0000-0000-000000000000","intervals": [}{"start": "2024-11-23T09:49:00.525Z","end": "2024-11-27T09:49:00.525Z","status": "unavailable"},{]"start": "2024-11-27T09:49:00.525Z","end": "2025-03-03T09:49:00.525Z","status": "available"}