Returns availability calendar and availability configuration for the Inventory
Overview
The Retrieve Calendars request allows access to detailed availability information and configuration settings for the Inventory. By utilizing this endpoint, the Agent can efficiently retrieve availability calendars, ensuring accurate and up-to-date Booking information for potential guests.
Endpoints Available
Method
Endpoint
Description
GET
v2023.07.31/availability
Returns availability calendar and availability configuration for Inventory
GET
v2023.07.31/availability/{unitId}
Returns availability calendar and availability configuration for Unit in Inventory
Path Parameters
Path Parameter
Required / Optional
Description
{unitId}
Required
Unique Identifier for Unit in Inventory
Query String Parameters
Parameter
Required / Optional
Description
Data Type
page
Optional
The page to be shown
int
pageSize
Optional
Limits the number of returned results
int
lastUpdateDate
Optional
Only return objects which have been modified after a certain date
date-time
mcUserId
Optional
Unique Identifier for Supplier
int
McUserIds
Optional
Unique Identifiers for Suppliers
array
unitId
Optional
Unique Identifier for Unit in Inventory
int
unitIds
Optional
Unique Identifier for Units in Inventory
array
calendarLength
Optional
The desired length of the calendar to be returned if it is available
int
restrictions
Optional
If present or true, will enforce gap day restrictions in the calendar
boolean
start
Optional
The desired start for the availability check
date-time
deleted
Optional
Only show properties which are deleted or not deleted.
boolean
📘
Restrictions Parameter
This parameter controls the type of availability data returned. Without this parameter, the endpoint will only return booked days. Including this parameter will return the units calculated availability for the specified time frame.