This article shares a possible use case your app could support, as well as a sample flow that could support this use case. This can be a helpful jumping-off point as you plan your app's 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 site owner must do the following:
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
.