The Operations API allows you to create and manage operations at restaurants.
An operation refers to different services a restaurant may offer.
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.
With the Operations API, you can:
- Create operations.
- Retrieve and query existing operations.
- Update existing operations.
It’s important to note the following points before starting to code:
- You must install the Wix Restaurants Orders (New) app.
To use the Operations API, import { operations }
from wix-restaurants.v2:
- Operation: Restaurant service that includes various aspects of its online ordering.
- Scheduling: Time-related aspects of order placement.
- Fulfillment methods: Ways in which a restaurant can provide orders to its customers. See Fulfillment Methods.
- Service fees: A rule defines the fee that is applied when specific conditions (also defined by the rule) are met. You can use a rule to apply a service fee to a restaurant order. See Service Fees.