This article shares an example flow that could support a use case for the Operations API.
You are building an app that manages a restaurant's online orders for their catering service.
You can create a new operation to define fulfillment and scheduling rules.
Use Create Operation to establish your operation.
Here you can define scheduling rules for the operation. For example:
The JSON for the body of your Create Operation request will look like this:
Use the Fulfillment Methods API to define the restaurant's fulfillment methods.
Use Update Operation to add the fulfillment methods' IDs to your operation. You will need your operation's ID, retrieve it using List Operations.
Before the restaurant starts selling, ensure your operation is enabled and that online ordering status is set to ENABLED
.
Your operation is ready, and the restaurant can start taking online catering orders.