> For the complete documentation index, see [llms.txt](https://klook.gitbook.io/openapi/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://klook.gitbook.io/openapi/api-core-mandatory/availability.md). Agents can also search and read this documentation through its [MCP server](https://klook.gitbook.io/openapi/~gitbook/mcp).

# Availability

The first step when making a sale is to check for availability. Note if `allowFreesale` is set to true on the [product](https://klook.gitbook.io/openapi/api-core-mandatory/products.md) then this step is optional but it is advised you check it anyway if you can to check for closures. This is also the same endpoint Klook will be using to sync both remaining inventory & price. The sync frequency are configurable by Klook based on individual connections. Eg; sync every 4 hours for the next 365 days.&#x20;

OCTO has two main availability calls:

[~~Availability Calendar~~](#availability-calendar) ~~endpoint is designed to be highly optimized and returns 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.~~

[Availability Check](#availability-check) endpoint may be slightly slower as it will return an object for each individual departure time (or day).

## ~~Availability Calendar~~

## Availability Check

{% hint style="danger" %}
**Klook has to perform** [**Availability Check**](#availability-check) **to retrieve an** `availabilityId` **in order to make a** [**Booking Reservation**](https://klook.gitbook.io/openapi/api-core-mandatory/bookings.md#booking-reservation)**, so this endpoint is critical for the booking flow.**
{% endhint %}

{% openapi src="/files/BAUZaCkdT0X95aKrgRk0" path="/availability" method="post" %}
[OCTO-API-OCTO-API-1.0-resolved.json](https://2041476995-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FF8xpmnLvijHXFmAy6fZh%2Fuploads%2FSu4S7Q4WG7aA3BKeTV8C%2FOCTO-API-OCTO-API-1.0-resolved.json?alt=media\&token=09ae6e1c-9970-44bb-9515-f80d58408d62)
{% endopenapi %}
