eCommerce Orders: Sample Use Cases and Flows

This article shares some possible use cases your app could support, as well as a sample flow that could support each use case. This can be a helpful jumping off point as you plan your app's implementation.

Using an order ID across different eCommerce APIs

Some eCommerce functionality is accessible by using an order's ID and passing it to other eCommerce APIs. Here are a few examples:

Record an external order

When an order is made on an external system, you may want to record it and its payment details on your app.

To record an external order:

  1. Call Create Order and pass all the details of the external order.
  2. Save the order id from the Create Order API's response.
  3. Pass the order id, along with the external order's payments details, to Add Payments. This will add a record of the payment associated with the order.
Did this help?