Introduction

The Orders API allows apps or site owners to customize management of the order lifecycle, including viewing, updating, and canceling. In the dashboard, business staff can create new orders, view and edit existing orders, track fulfillment, and manage the payments cycle.

An order holds information about purchased items, price and tax summaries, shipping and billing information, any applied discounts, and the status of payment and fulfillment.

With the Orders API you can:

  • Get and search for orders.
  • Update and cancel an order.
  • Create an order for your records.
  • Listen to events when an order is approved, updated, or canceled.
  • Listen to events when an order's transactions are updated. This event is part of the Order Transactions API.

To use the Orders API, import { orders } from the wix-ecom-backend module:

Copy

Permissions information

Functions in the Orders API are restricted and only run if you elevate permissions using the wix-auth elevate() function.

Warning: Elevating a function allows it to be called by any site visitor. Exercise caution to prevent security vulnerabilities.

Did this help?