---
title: "POST /api/public/v1/bookings/availability"
method: POST
path: "/api/public/v1/bookings/availability"
---

# POST /api/public/v1/bookings/availability

`POST /api/public/v1/bookings/availability`

## Request

- Base URL: `https://app.fortuneos.ai`
- URL: `https://app.fortuneos.ai/api/public/v1/bookings/availability`
- Auth: none declared

The table a booking for this visit would get, or null when no free table fits, every table free for the whole visit that fits the party as `tables`, every table free for it whatever its seats as `freeTables` (the ones a join is made of; both smallest first, each with its `sectionId`), plus warnings such as `outsideOpeningHours`. A `bookingId` checks the visit for that stored booking, so the tables it holds read free, and answers them as `table` while they are free, whatever they seat. Writes nothing, and answers while the location's Bookings switch is off, so a booking already made can still be moved. Refused with BAD_REQUEST as `startInPast` or `invalidDuration`. Refused with FORBIDDEN as `paywallLocked` when the caller is an Owner or Manager of a business the merchant Paywall locks: one with no verified subscription that has taken 5 orders while the Paywall's rollout reaches it, an order counting from its first saved line, whether or not it is paid or completed, until it is archived or cancelled before activation. Nothing is read or written; a verified subscription lifts the lock.

## Request body

- object
  - `locationId` string, required
  - `date` string, date, required
  - `startTime` string, required
  - `durationMinutes` integer
  - `endTime` string
  - `partySize` integer, required
  - `tableId` string
  - `bookingId` string

## Response `200`

OK

- object
  - `table` object, nullable, required
    - `id` string, required
    - `prefix` string, required
    - `number` integer, required
    - `capacity` integer, required
    - `sectionId` string, nullable, required
  - `tables` object[], required
    - `id` string, required
    - `prefix` string, required
    - `number` integer, required
    - `capacity` integer, required
    - `sectionId` string, nullable, required
  - `freeTables` object[], required
    - `id` string, required
    - `prefix` string, required
    - `number` integer, required
    - `capacity` integer, required
    - `sectionId` string, nullable, required
  - `warnings` string[], required

## Changes

- **2026-10-28** `e696d5dad017`: 1 info
  - added the required property `freeTables` to the response with the `200` status
- **2026-10-26** `1a72f117ce4a`: 3 info
  - added the new optional request property `bookingId`
  - added the required property `table/anyOf[subschema #1]/sectionId` to the response with the `200` status
  - added the required property `tables` to the response with the `200` status
- **2026-10-21** `65f8a7781d6b`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/fortis/apis/fortune-os-api/changes/api/public/v1/bookings/availability/post.md)

---

[API](https://skmtc.dev/fortis/apis/fortune-os-api.md) - [All operations](https://skmtc.dev/fortis/apis/fortune-os-api/llms.txt) - [OpenAPI document](https://skmtc.dev/fortis/apis/fortune-os-api/revisions/522f3cea550d?raw)
