Skip to main content

Availabilities

Overview

This resource represents the Availabilities for a given Rental. The map represents consecutive 1096 days starting from start_date and tells whether a given day is available (there is no Booking for that day) or unavailable (there is already a Booking for that day).

Availabilities are regenerated after creation of Bookings and at the beginning of each month and start_date always points to the beginning of current month.

Particularly useful when implementing a UI containing calendar that allows to select dates for a Booking - using this map you can block unavailable dates.

However, this resource doesn't cover all cases why a given day might be unavailable (e.g. it doesn't cover Rates Rules). You might want to check Change Overs to have a map covering these cases.

Parameters

NameTypeRead/WriteDescription
accountIntegerReadAccount's ID related to the Availability
rentalIntegerReadRental's ID related to the Availability
idIntegerReadAvailability's id.
mapStringReadAvailability's map of booking status. There is a total of 1096 characters, each representing one day. List of statuses described in enums section.
start_dateDateReadAvailability's start date.
created_atTimeReadAvailability's creation time.
updated_atTimeReadAvailability's update time.

List availabilities

List all availabilities for a given account.

GET /availabilities
response.json
{
"links": {
"availabilities.rental": "https://www.bookingsync.com/api/v3/rentals/{availabilities.rental}"
},
"availabilities": [
{
"links": {
"rental": 2
},
"id": 2,
"map": "11111000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"start_date": "2025-03-01",
"updated_at": "2025-03-24T22:18:28.683Z"
}
]
}

Get a single availability

Returns a single availability identified by ID.

GET /availabilities/:availability_id
response.json
{
"links": {
"availabilities.rental": "https://www.bookingsync.com/api/v3/rentals/{availabilities.rental}"
},
"availabilities": [
{
"links": {
"rental": 2
},
"id": 2,
"map": "11111000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"start_date": "2025-03-01",
"updated_at": "2025-03-24T22:18:28.685Z"
}
]
}

Customize availability maps

Mapping parameters allow to customize availability start point and status display.

Examples:

GET /availabilities?include_tentative=false&boolean=true&from=20140324
GET /availabilities/1?include_tentative=false&boolean=true&from=20140324

Mapping parameters

NameTypeDefaultDescription
fromDateBeginning of current monthStarts mapping at the given date. Default is beginning of current month.
include_tentativeBooleantrueIncludes tentative bookings by default. If switched to false, tentative statuses will be rendered as 0.
booleanBooleanfalseRender map using only 0 and 1 characters. In this mode, every blocking status will be rendered as 1. List of statuses described in enums section.
priced_onlyBooleanfalseShow days without nightly rate as unavailable.