Sample Flows

This article shares an example flow that could support a use case for the Operations API.

Create an operation for a restaurant's online ordering service

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.

Step 1 | Create your operation

Use Create Operation to establish your operation.

Here you can define scheduling rules for the operation. For example:

  • Customers must submit orders at least 3 days in advance, but no more than 14 days in advance.
  • Orders will be fulfilled in two-hours windows, such as Thursday 8:00-10:00.

The JSON for the body of your Create Operation request will look like this:

コピー
1
  1. Use the Fulfillment Methods API to define the restaurant's fulfillment methods.

  2. Use Update Operation to add the fulfillment methods' IDs to your operation. You will need your operation's ID, retrieve it using List Operations.

Step 3 | Restaurant is ready to accept orders

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.

役に立ちましたか?
はい
いいえ