POST /api/public/v1/bookings/list

Changed on

One page of a location's bookings in every status: one venue day by date, or a view of today and upcoming earliest first or past latest first; date wins when both are given. With sort (time, guests, table, duration; direction defaults to asc), the bookings still holding their tables come first, then that column. Optionally narrowed to guests whose name or phone contains query and by statuses (late and booked split the booked status at now), start-time times windows and currentHour in the venue's zone, sectionIds, tableIds and partySizes. It answers while the location's Bookings switch is off, so bookings already made stay readable. 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
view, 'today' | 'upcoming' | 'past'
date, string date
page, integer
query, string
statuses, string[]
times, object[]
currentHour, boolean
sectionIds, string[]
tableIds, string[]
partySizes, object[]
sort, 'time' | 'guests' | 'table' | 'duration'
direction, 'asc' | 'desc'

Response

OK

object required
bookings, object[] required
hasMore, boolean required

Changes