Core resources


Administration


Booking flow

Query availability

Fetch the availability of multiple units over a long period of time.

Parameters

perform_syncboolean

Whether to sync external calendars before fetching availability. Defaults to false

product_idrequiredArray<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

Responses

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"
Example response
[
{
"product_id": "00000000-0000-0000-0000-000000000000",
"intervals": [
{
"start": "2024-12-06T04:58:26.878Z",
"end": "2024-12-10T04:58:26.878Z",
"status": "unavailable"
},
{
"start": "2024-12-10T04:58:26.878Z",
"end": "2025-03-16T04:58:26.878Z",
"status": "available"
}
]
}
]