Retrieve Calendars

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

MethodEndpointDescription
GETv2023.07.31/availabilityReturns availability calendar and availability configuration for Inventory
GETv2023.07.31/availability/{unitId}Returns availability calendar and availability configuration for Unit in Inventory

Path Parameters

Path ParameterRequired / OptionalDescription
{unitId}RequiredUnique Identifier for Unit in Inventory

Query String Parameters

ParameterRequired / OptionalDescriptionData Type
pageOptionalThe page to be shownint
pageSizeOptionalLimits the number of returned resultsint
lastUpdateDateOptionalOnly return objects which have been modified after a certain datedate-time
mcUserIdOptionalUnique Identifier for Supplierint
McUserIdsOptionalUnique Identifiers for Suppliersarray
unitIdOptionalUnique Identifier for Unit in Inventoryint
unitIdsOptionalUnique Identifier for Units in Inventoryarray
calendarLengthOptionalThe desired length of the calendar to be returned if it is availableint
restrictionsOptionalIf present or true, will enforce gap day restrictions in the calendarboolean
startOptionalThe desired start for the availability checkdate-time
deletedOptionalOnly 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.

Response Definition

Response ItemDescriptionData Type
"calendars"Contains an array of calendar elements, each representing availability and booking settings for a Unit in Inventoryarray

"calendars" Object

Response ItemDescriptionData Type
"unit_id"Unique identifier for a unit associated with the calendar dataint
"start"Start date and time of the calendar availability periodstring
"end"End date and time of the calendar availability periodstring
"availability"A string representing the availability of a unit for each day in the calendar periodstring
"min_days_between_departure_and_arrival"Minimum number of days required between the departure date and the arrival date for the unitint
"min_days_between_booking_and_arrival"Minimum number of days required between the booking date and the arrival dateint
"stay_arrival_min_nights_default"The default minimum number of nights allowed for a guest stay upon arrivalint
"mc_user_id"Unique identifier for the Supplier associated with the unit and calendar dataint

Sample Request

curl --request GET \
     --url 'https://api.ciiruspartners.com/v2023.07.31/availability?page=1&pageSize=50'

Sample Response

{
    "calendars": [
        {
            "unit_id": 219266,
            "start": "2023-07-25T16:00:00+00:00",
            "end": "2026-07-24T10:00:00+00:00",
            "availability": "AAAAAAAAAAAAAAAAAABBBBBBBAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABBBBBBBBBBBBBBAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBAAAAAAAAAAAAAAAAAAAAABBBBBBBBBBAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
            "min_days_between_departure_and_arrival": 0,
            "min_days_between_booking_and_arrival": 2,
            "stay_arrival_min_nights_default": 7,
            "mc_user_id": 42330
        },
      ...
    ],
    "next_page_url": "https://api.ciiruspartners.com/v20230731/availability?page=2&pageSize=1",
    "total_page_count": 3

📘

Currently only 'A', 'B', 'F', 'G', and 'M' are supported

AAvailable
BCalendar Booking
DArrival Days
EDeparture Days
FBooking Fence
GCalendar Booking Gap Day
gGap Days When Placing A Booking
MMinimum or Maximum Nights

The gap day restrictions will only be shown if the query parameter 'restrictions' is passed 'true'