This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.
Retrieves a list of orders, given the provided paging, filtering, and sorting.
Search Orders runs with these defaults, which you can override:
createdDate
is sorted in DESC
ordercursorPaging.limit
is 100
filter: {"status": {"$ne": "INITIALIZED"}}
- other order statuses can be queried, but orders with status: "INITIALIZED"
are never returnedFor field support for filters and sorting, see Orders: Supported Filters and Sorting.
To learn about working with Search endpoints, see API Query Language, and Sorting and Paging.
You can only call this method when authenticated as a Wix app or Wix user identity.
function searchOrders(
options: SearchOrdersOptions,
): Promise<SearchOrdersResponse>;
import { orders } from "@wix/ecom";
async function searchOrders(options) {
const response = await orders.searchOrders(options);
}
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.