The Availability Exceptions API allows you to create and manage availability exceptions for restaurant operations. Availability exceptions are time periods during which your site can’t fulfill orders for the operation. An availability exception can block all fulfillment methods during the time period, or only specific fulfillment methods.
For example, you could use availability exceptions to:
- Offer pickup only on Valentine's Day, by closing all delivery fulfillment methods on that day.
- Close early on Wednesday, by closing all fulfillment methods after midday that day.
- Close a restaurant over the summer, by blocking all fulfillment methods for that date range.
With the Availability Exceptions API, you can create and manage availability exceptions.
It’s important to note the following points before starting to code:
- You must install the Wix Restaurants Orders (New) app.
- Each availability exception object requires the operationID of a restaurant's operation.
To use the Availability Exceptions API, import { availabilityExceptions }
from wix-restaurants.v2:
- Operation: A distinct service that a restaurant offers. For example, a restaurant may offer a takeaway operation and a catering operation, where each one would work with different time frames, availabilities, and fees.
- Fulfillment method: A method by which a restaurant can serve its customers their orders.