This article presents a possible use case and corresponding sample flow that you can support. This can be a helpful jumping-off point as you plan your implementation.
A company wants to build an app that allows customers to see available time slots and make reservations at any restaurant on a Wix site.
The Wix user must do the following:
Install the Table Reservations app.
Configure at least 1 location in the dashboard.
Ensure manual approval is disabled for online reservations at all locations. (It is disabled by default.)
To create an app that allows customers to make reservations at restaurants listed on a site’s business info page, follow this basic flow:
List Reservation Locations
in the Reservation Locations API to get a list of restaurant locations and present them to the customer to choose from.Get Time Slots
in the Time Slots API. Set slotsBefore
and slotsAfter
to your preferred values.Get Time Slots
, find the start dates of time slots with the status AVAILABLE
and present them for the customer to choose from.Create Held Reservation
in the Reservations API with the selected reservation location ID, date, and party size.Reserve Reservation
in the Reservations API to add the additional details to the reservation and change its status to RESERVED
.