---
id: search
sidebar_label: Searching
title: Searching for orders
hide_title: true
---

import Ingress from "../../src/components/ingress/ingress.react";

<Ingress title="Searching for orders">
  Select <strong>Orders</strong> in the top menu to search every order your groups give you access to. Type anything you know about the order, or narrow the result with filters and field queries.
</Ingress>

## Free text search

The search field matches almost anything stored on an order, for example:

- An order number or reference
- An email address
- A customer's name or national registration number
- An address

The result is ranked, so the orders the search considers most relevant come first.

## Exact search

If a search returns more than you want, make it exact. Either tick the **Exact match** checkbox, or put quotes around the text: `"01234567"` matches that string and nothing else.

## Wildcards

Add `*` to match part of a word. `*gmail.com` finds every order with a value that ends in gmail.com.

## Search with AI

Select **Search with AI** and describe what you are looking for in plain language, in English or your own language. The search turns your description into filters and a query. AI results may be inaccurate, so check the filters it applied before you act on the result.

## Quick filters

Use the dropdown filters next to the search field to filter by created date, expiry date, notification due date, store, or order status.

## Field queries

When the filters are not enough, query a specific field in the search box. The syntax is `field:value`, and you can combine queries with `AND` and `OR`.

| Query                                | Finds                                 |
| ------------------------------------ | ------------------------------------- |
| `storeId:1158`                       | All orders for store 1158             |
| `storeId:1158 AND status:Activated`  | Activated orders for store 1158       |
| `storeId:1158 OR storeId:9664`       | Orders for either store               |
| `totalAmount:>2000 AND currency:SEK` | Orders in SEK with a total above 2000 |

### Searchable fields

| Field                              | Description                                                                                                                                                                                                         |
| ---------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| storeId                            | The id of your store.                                                                                                                                                                                               |
| orderNumber                        | The order number, or reference, of the order.                                                                                                                                                                       |
| currentPurchase.purchaseId         | The purchase id of the order.                                                                                                                                                                                       |
| connectedPurchases.purchaseId      | The purchase id of a purchase connected to the order.                                                                                                                                                               |
| paymentMethod                      | The payment method. `Invoice` `Account` `Installment` `Swish` `Card` `MobilePay` `BankTransfer`                                                                                                                     |
| totalAmount                        | The total amount of the purchase.                                                                                                                                                                                   |
| notActivatedAmount                 | The amount that is not yet activated.                                                                                                                                                                               |
| currency                           | The currency code. `SEK` `NOK` `DKK` `EUR`                                                                                                                                                                          |
| status                             | The order status. `NotActivated` `Activated` `PartActivated` `Returned` `Expired` `OnHold` `VerificationNeeded` `Closed`. See [order statuses](/docs/merchanthub/faq#what-are-the-different-order-statuses). |
| placedAt                           | The date the order was placed.                                                                                                                                                                                      |
| expiresAt                          | The date the order expires if it is not activated.                                                                                                                                                                  |
| customerDetails.name               | The full name of the customer.                                                                                                                                                                                      |
| customerDetails.firstName          | The first name of the customer.                                                                                                                                                                                     |
| customerDetails.lastName           | The last name of the customer.                                                                                                                                                                                      |
| customerDetails.registrationNumber | The registration number of the customer.                                                                                                                                                                            |
| customerDetails.countryCode        | The country code of the customer's address.                                                                                                                                                                         |
| customerDetails.addressLine1       | The first address line of the customer's address.                                                                                                                                                                   |
| customerDetails.addressLine2       | The second address line of the customer's address.                                                                                                                                                                  |
| customerDetails.city               | The city of the customer's address.                                                                                                                                                                                 |
| customerDetails.postalCode         | The postal code of the customer's address.                                                                                                                                                                          |
| customerDetails.email              | The email address of the customer.                                                                                                                                                                                  |
| customerDetails.mobilePhoneNumber  | The mobile phone number of the customer.                                                                                                                                                                            |
| deliveryAddress.addressLine1       | The first address line of the delivery address.                                                                                                                                                                     |
| deliveryAddress.addressLine2       | The second address line of the delivery address.                                                                                                                                                                    |
| deliveryAddress.coAddress          | The c/o line of the delivery address.                                                                                                                                                                               |
| deliveryAddress.receiverName       | The receiver name of the delivery address.                                                                                                                                                                          |
| deliveryAddress.city               | The city of the delivery address.                                                                                                                                                                                   |
| deliveryAddress.postalCode         | The postal code of the delivery address.                                                                                                                                                                            |
| deliveryAddress.countryCode        | The country code of the delivery address.                                                                                                                                                                           |
| rows.articleNumber                 | The article number of a row on the order.                                                                                                                                                                           |
| rows.description                   | The description of a row on the order.                                                                                                                                                                              |
| rows.purchaseId                    | The purchase id that a row on the order belongs to.                                                                                                                                                                 |

## Next steps

- Open an order to [activate it](/docs/merchanthub/orders/activation), [edit its articles](/docs/merchanthub/orders/adjustments), or [make a return](/docs/merchanthub/orders/returns).
- The same search works for settlements on the [reports page](/docs/merchanthub/reports/overview).
