Availability
Availability Calendar
This endpoint is highly optimised and will return a single object per day. It's designed to be queried for large date ranges and the result is used to populate an availability calendar.
When the end user selects an open date you can call on /availability endpoint to get the availabilityId to create the booking.
The product id.
6b903d44-dc24-4ca4-ae71-6bde6c4f4854The option id.
DEFAULTStart date to query for (YYYY-MM-DD).
2022-05-23End date to query for (YYYY-MM-DD).
2022-05-29OK
Schema for the /avalibility/calendar endpoint. For querying general open slots per day on a large range of days versus availability per departure time.
A single date to query. Must be ISO 8601 compliant date.
2022-05-12Whether there is availability for this date / slot.
The status of that date. Possible values are:
AVAILABLE This availability is available for sale
FREESALE This availability has no capacity and is available.
SOLD_OUT There are no more spots available for this date / slot.
LIMITED This availability is available but has less than 50% capacity left.
CLOSED Availability is closed for this day / slot.
AVAILABLEPossible values: This SHOULD NOT be returned when status is FREESALE. This SHOULD be a shared pool for all Unit types in the Option. If availability is tracked per-Unit then this value MUST be equal to the available quantity for the Unit that has the most remaining.
10The total capacity on this day.
10Example response
Availability Check
This endpoint is slightly slower as it will return an object for each individual departure time (or day). You have to perform this step to retrieve an availabilityId in order to confirm a sale, so if you just want to use this endpoint and skip the calendar endpoint then that's perfectly ok.
You must pass in one of the following combinations of parameters for this endpoint:
localDatelocaleDateStartandlocalDateEndavailabilityIds
The product id.
6b903d44-dc24-4ca4-ae71-6bde6c4f4854The option id.
DEFAULTStart date to query for (YYYY-MM-DD). Required if localDateEnd is set.
2022-05-23End date to query for (YYYY-MM-DD). Required if localDateStart is set.
2022-05-29Filter the results by the given ids.
["2022-05-23T00:00:00+01:00"]OK
Schema for the /avalibility/calendar endpoint. It's designed to be queried for large date ranges and the result is used to populate an availability calendar.
The availability id, you''ll need this when booking. MUST be a unique identifier within the scope of an option.
2022-05-23T00:00:00+01:00The start time for this availability. This will be in the local time zone of the product. Must be an ISO 8601 compliant date and time.
2022-05-23T00:00:00+01:00The end time for this availability. This will be in the local time zone of the product. Must be an ISO 8601 compliant date and time.
2022-05-24T00:00:00+01:00A boolean field indicating whether this is an all day availability and not a fixed departure time. If this value is true then there will be no other availability object on the same day.
Whether there is availability for this date / slot.
The status of that date. Possible values are:
AVAILABLE This availability is available for sale
FREESALE This availability has no capacity and is available.
SOLD_OUT There are no more spots available for this date / slot.
LIMITED This availability is available but has less than 50% capacity left.
CLOSED Availability is closed for this day / slot.
AVAILABLEPossible values: This SHOULD NOT be returned when status is FREESALE. This SHOULD be a shared pool for all Unit types in the Option. If availability is tracked per-Unit then this value MUST be equal to the available quantity for the Unit that has the most remaining.
10The total capacity on this day.
10Maximum number of units that can be sold within one booking on this day / slot.
10The time by which the booking must be confirmed at
2022-05-22T23:00:00ZExample response
Last updated