POST /api/public/v1/bookings/availability

Changed on

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

  • Base URL
    https://app.fortuneos.ai
  • Auth
    none declared

Request body

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

Response

OK

object required
table, object nullable required
tables, object[] required
freeTables, object[] required
warnings, string[] required

Changes

    • info

      added the required property freeTables to the response with the status

    • info

      added the new optional request property bookingId

    • info

      added the required property table/anyOf[subschema #1]/sectionId to the response with the status

    1 more change in this revision