Introduction

 

Developer Preview
APIs in Developer Preview are subject to change and are not intended for use in production.
Send us your suggestions for improving this API. Your feedback is valuable to us.

 

With the Orders Settings API, you can retrieve and update settings that apply to a site’s eCommerce orders. These settings include adding or removing customer email notifications about order status, defining when to update the store inventory, and creating invoices.

The default orders settings are provided when you first create a Wix eCommerce site.

Terminology

  • Order: The final stage of the eCommerce purchase flow: cart, checkout, and order. An order represents a customer's request to purchase one or more products or services from a seller. It typically includes details such as the type and quantity of items, shipping address, payment information, and any other relevant transaction details.
  • eCommerce: Buying and selling of goods and services over the internet.
  • Invoice: Commercial document issued by a seller to a buyer, providing a detailed account of products or services rendered, along with the corresponding costs.
  • Inventory: List of goods, products, or materials that a business holds for the purpose of resale or use in its operations.

Before you begin

It’s important to note the following points before starting to code:

  • To use the Orders Settings API, import { ordersSettings } from the wix-ecom-backend module:
Copy

Permissions information

The following functions in the Orders Settings 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.

Was this helpful?
Yes
No