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-12-06T03:50:01.061Z","end": "2024-12-10T03:50:01.061Z","status": "unavailable"},{]"start": "2024-12-10T03:50:01.061Z","end": "2025-03-16T03:50:01.061Z","status": "available"}