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.

Note: Search Orders does not return orders with status: "INITIALIZED", regardless of the filter applied. To retrieve an order with status: "INITIALIZED", use Get Order.

To learn how to query or search orders, see API Query Language.

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

This method may require higher-level permissions than the caller has, based on their identity and roles and permissions. In these cases, you can ensure the method is called with the required level of authorization by using one of the following:

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?