Skip to content

๐Ÿช‘ Reservations โ€‹

KitchenAsty includes a table reservation system with availability checking and staff management.

Admin Reservations

๐Ÿช‘ Tables โ€‹

Each location has tables with a name and capacity:

FieldDescription
nameTable identifier (e.g., "Table 1")
capacityMaximum party size
isActiveAvailable for booking
locationIdWhich location this table belongs to

Table names are unique within a location.

๐Ÿ“‹ Booking Flow โ€‹

  1. ๐Ÿ” Check availability โ€” GET /api/reservations/availability?locationId=...&date=...&time=...&partySize=...
  2. โœ๏ธ Create reservation โ€” POST /api/reservations with location, date, time, and party size
  3. โœ… Staff confirms โ€” Update status to CONFIRMED via admin
  4. ๐Ÿฝ๏ธ Day of visit โ€” Staff marks as SEATED, then COMPLETED

๐Ÿ” Availability Check โ€‹

The availability endpoint returns whether tables are available for the requested date, time, and party size. It checks:

  • ๐Ÿช‘ Tables with sufficient capacity
  • ๐Ÿšซ No conflicting reservations at the same time
  • โœ… Table is active

Storefront Reservations

๐Ÿ”„ Reservation Status Lifecycle โ€‹

PENDING โ†’ CONFIRMED โ†’ SEATED โ†’ COMPLETED
                   โ†˜ CANCELLED (from any status)
StatusDescription
PENDINGโณ Customer submitted, awaiting staff confirmation
CONFIRMEDโœ… Staff confirmed the reservation
SEATED๐Ÿช‘ Customer has arrived and been seated
COMPLETEDโœ”๏ธ Meal finished, table cleared
CANCELLEDโŒ Reservation cancelled

๐Ÿ“ Reservation Fields โ€‹

FieldDescription
customerIdLogged-in customer
locationIdRestaurant location
tableIdAssigned table (optional, can be assigned later)
dateReservation date
timeReservation time (e.g., "19:00")
partySizeNumber of guests
commentSpecial requests

๐Ÿ‘ฅ Staff Management โ€‹

Staff can:

  • ๐Ÿ“‹ View all reservations for their location
  • โœ… Confirm or cancel pending reservations
  • ๐Ÿช‘ Assign tables
  • ๐Ÿ”„ Update status as the reservation progresses
  • ๐Ÿ—‘๏ธ Delete reservations

๐Ÿ“ก API โ€‹

See Reservations API for the complete endpoint reference.