searchOrders( )


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 order
  • cursorPaging.limit is 100
  • filter: {"status": {"$ne": "INITIALIZED"}} - other order statuses can be queried, but orders with status: "INITIALIZED" are never returned

For 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.

PropertyCapabilitiesFilters
channelInfo.typeSearch: ✗
Sort: ASC, DESC
$eq, $in, $ne, $nin
fulfillmentStatusSearch: ✗
Sort: ASC, DESC
$eq, $in, $ne, $nin
paymentStatusSearch: ✗
Sort: ASC, DESC
$eq, $in, $ne, $nin
shippingInfo.region.nameSearch: ✗
Sort: ASC, DESC
$eq, $in, $ne, $nin
shippingInfo.titleSearch: ✗
Sort: ASC, DESC
$eq, $in, $ne, $nin
statusSearch: ✗
Sort: ASC, DESC
$eq, $in, $ne, $nin
_createdDateSearch: ✗
Sort: ASC, DESC
$eq, $ne, $exists, $in, $any, $lt, $lte, $gt, $gte
_updatedDateSearch: ✗
Sort: ASC, DESC
$eq, $ne, $exists, $in, $any, $lt, $lte, $gt, $gte
balanceSummary.authorized.amountSearch: ✗
Sort: ASC, DESC
$eq, $ne, $exists, $in, $any, $begins, $gt, $lt, $lte, $gte
balanceSummary.pending.amountSearch: ✗
Sort: ASC, DESC
$eq, $ne, $exists, $in, $any, $begins, $gt, $lt, $lte, $gte
balanceSummary.pendingRefund.amountSearch: ✗
Sort: ASC, DESC
$eq, $ne, $exists, $in, $any, $begins, $gt, $lt, $lte, $gte
billingInfo.contactDetails.firstNameSearch: ✗
Sort: ASC, DESC
$eq, $ne, $exists, $in, $any, $begins, $gt, $lt, $lte, $gte
billingInfo.contactDetails.lastNameSearch: ✗
Sort: ASC, DESC
$eq, $ne, $exists, $in, $any, $begins, $gt, $lt, $lte, $gte
businessLocation._idSearch: ✗
Sort: ASC, DESC
$eq, $ne, $exists, $in, $any, $begins, $gt, $lt, $lte, $gte
businessLocation.nameSearch: ✗
Sort: ASC, DESC
$eq, $ne, $exists, $in, $any, $begins, $gt, $lt, $lte, $gte
buyerInfo.emailSearch: ✗
Sort: ASC, DESC
$eq, $ne, $exists, $in, $any, $begins, $gt, $lt, $lte, $gte
numberSearch: ✗
Sort: ASC, DESC
$eq, $ne, $exists, $in, $any, $lt, $lte, $gt, $gte
priceSummary.total.amountSearch: ✗
Sort: ASC, DESC
$eq, $ne, $exists, $in, $any, $begins, $gt, $lt, $lte, $gte
purchasedDateSearch: ✗
Sort: ASC, DESC
$eq, $ne, $exists, $in, $any, $lt, $lte, $gt, $gte
shippingInfo.logistics.deliveryTimeSearch: ✗
Sort: ASC, DESC
$eq, $ne, $exists, $in, $any, $begins, $gt, $lt, $lte, $gte
shippingInfo.logistics.deliveryTimeSlot.fromSearch: ✗
Sort: ASC, DESC
$eq, $ne, $exists, $in, $any, $lt, $lte, $gt, $gte
shippingInfo.logistics.deliveryTimeSlot.toSearch: ✗
Sort: ASC, DESC
$eq, $ne, $exists, $in, $any, $lt, $lte, $gt, $gte
taxInfo.totalExempt.amountSearch: ✗
Sort: ASC, DESC
$eq, $ne, $exists, $in, $any, $begins, $gt, $lt, $lte, $gte
taxInfo.totalTax.amountSearch: ✗
Sort: ASC, DESC
$eq, $ne, $exists, $in, $any, $begins, $gt, $lt, $lte, $gte
archivedSearch: ✗
Sort: ✗
$eq, $ne, $exists, $in, $any
seenByAHumanSearch: ✗
Sort: ✗
$eq, $ne, $exists, $in, $any
_idSearch: ✗
Sort: ✗
$eq, $in, $ne, $nin
buyerInfo.contactIdSearch: ✗
Sort: ✗
$eq, $in, $ne, $nin
buyerInfo.memberIdSearch: ✗
Sort: ✗
$eq, $in, $ne, $nin
channelInfo.externalOrderIdSearch: ✗
Sort: ✗
$eq, $in, $ne, $nin
checkoutIdSearch: ✗
Sort: ✗
$eq, $in, $ne, $nin
createdBy.userIdSearch: ✗
Sort: ✗
$eq, $in, $ne, $nin
lineItems.subscriptionInfo._idSearch: ✗
Sort: ✗
$eq, $in, $ne, $nin
lineItems.catalogReference.appIdSearch: ✗
Sort: ✗
$hasAll, $hasSome
lineItems.catalogReference.catalogItemIdSearch: ✗
Sort: ✗
$hasAll, $hasSome
lineItems.locations._idSearch: ✗
Sort: ✗
$hasAll, $hasSome
fulfillmentStatusesAggregate.statusesSearch: ✗
Sort: ASC, DESC
$hasAll, $hasSome
lineItems.productName.originalSearch: ✗
Sort: ASC, DESC
$hasAll, $hasSome
Authentication
  • When developing websites or building an app with Blocks, this method may require elevated permissions, depending on the identity of the user calling it and the calling user's permissions.
  • When building apps without Blocks or for headless projects, you can only call this method directly when authenticated as a Wix app or Wix user identity. When authenticated as a different identity, you can call this method using elevation.
  • Elevation permits users to call methods they typically cannot access. Therefore, you should only use it intentionally and securely.
Permissions
Read Orders
Learn more about app permissions.
Method Declaration
Copy
Method Parameters
searchCursorSearchRequired

Search options.

Returns
Return Type:Promise<SearchOrdersResponse>
Errors

This method doesn't return any custom errors, but may return standard errors. Learn more about standard Wix errors.

Did this help?