---
title: orders Query
seo:
  title: orders Query
  description: 'Query: orders Query'
slug: api-reference/orders/queries/orders
sidebar:
  label: orders
search:
  tags:
    - API reference
    - Orders
lastModified: '2026-04-13'
---

List of orders. The query will not initiate any external requests, including filtering available shipping methods, or performing external tax calculations.



Requires one of the following permissions: `MANAGE_ORDERS`.





```graphql
orders(sortBy: OrderSortingInput, filter: OrderFilterInput, where: OrderWhereInput, channel: String, search: String, before: String, after: String, first: Int, last: Int): OrderCountableConnection
```

## Returns

[`OrderCountableConnection`](/api-reference/orders/objects/order-countable-connection)

<details>
<summary>Show return type</summary>


```graphql
type OrderCountableConnection {
  pageInfo: PageInfo!
  edges: [OrderCountableEdge!]!
  totalCount: Int
}
```


</details>

## Arguments

### sortBy [#sort-by]

**`sortBy`** · [`OrderSortingInput`](/api-reference/orders/inputs/order-sorting-input)

Sort orders.

### filter [#filter]

**`filter`** · [`OrderFilterInput`](/api-reference/orders/inputs/order-filter-input)

Filtering options for orders.

:::warning[Deprecated]
Use `where` filter instead.
:::


### where [#where]

**`where`** · [`OrderWhereInput`](/api-reference/orders/inputs/order-where-input)

Where filtering options for orders.

Added in Saleor 3.22

### channel [#channel]

**`channel`** · [`String`](/api-reference/miscellaneous/scalars/string)

Slug of a channel for which the data should be returned.

### search [#search]

**`search`** · [`String`](/api-reference/miscellaneous/scalars/string)

Search orders.

Added in Saleor 3.22

### before [#before]

**`before`** · [`String`](/api-reference/miscellaneous/scalars/string)

Return the elements in the list that come before the specified cursor.

### after [#after]

**`after`** · [`String`](/api-reference/miscellaneous/scalars/string)

Return the elements in the list that come after the specified cursor.

### first [#first]

**`first`** · [`Int`](/api-reference/miscellaneous/scalars/int)

Retrieve the first n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query.

### last [#last]

**`last`** · [`Int`](/api-reference/miscellaneous/scalars/int)

Retrieve the last n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query.

---

Schema: **Saleor 3.23.43**. [Download SDL](/schema/saleor.graphql).
