Delivery Order API: Sample Flows

This article presents possible use cases and corresponding sample flows that you can support. It provides a useful starting point as you plan your implementation.

Schedule a delivery for a new order

When a customer places a delivery order on a restaurant's site, your app can send the order to the restaurant's delivery provider, so a courier picks it up when the food is ready.

To schedule a delivery for a new order:

  1. Listen for new orders from the eCommerce Orders API. Use the orders whose delivery method uses the delivery provider.
  2. Call List Delivery Providers, and specify the order's business location ID as businessLocationId. Make sure the provider's activationStatus is ACTIVE, and save its appId.
  3. Call Schedule Delivery with the order ID as wixOrderId, the provider's appId as providerAppDefId, and the time the food is ready as pickupTime.
  4. Show the restaurant the estimated pickupTime and dropOffTime from the response.
  5. If the call returns a DELIVERY_REJECTED error, check the reasons in the error details. For example, for OUTSIDE_OF_DELIVERY_TIME, call Schedule Delivery again with a different time.

Show delivery providers in your app

A restaurant management app can show the restaurant which delivery providers it can use at each location, and send it to the provider's dashboard to finish setting one up.

To show delivery providers in your app:

  1. Retrieve the restaurant's business locations.
  2. For each location, call List Delivery Providers and specify the location's ID as businessLocationId.
  3. Show each provider's name and iconUrl, together with its activationStatus.
  4. For providers whose activationStatus is INACTIVE, tell the restaurant to complete the setup in the site dashboard, such as online payments and tips. Show a link to dashboardUrl for managing the provider account, and a link to supportUrl for help.

Last updated: 26 November 2026

Did this help?