> Documentation index: [Saleor](/llms.txt) · [This section](/api-reference/deprecated/llms.txt)
> Source: https://docs.saleor.io/api-reference/deprecated/discounts/queries/sales

# sales Query

DEPRECATED

Use the `promotions` query instead.

List of the shop's sales.

Requires the MANAGE\_DISCOUNTS permission.

```graphql
sales(
  filter: SaleFilterInput
  sortBy: SaleSortingInput
  query: String
  channel: String
  before: String
  after: String
  first: Int
  last: Int
): SaleCountableConnection @deprecated
```

Details

```graphql
type SaleCountableConnection {
  pageInfo: PageInfo!
  edges: [SaleCountableEdge!]!
  totalCount: Int
}
```

<a id="arguments"></a>

### Arguments

<a id="filter"></a>

#### [`filter`](#filter) ● [`SaleFilterInput`](/api-reference/discounts/inputs/sale-filter-input.md)

Filtering options for sales.

<a id="sort-by"></a>

#### [`sortBy`](#sort-by) ● [`SaleSortingInput`](/api-reference/discounts/inputs/sale-sorting-input.md)

Sort sales.

<a id="channel"></a>

#### [`channel`](#channel) ● [`String`](/api-reference/miscellaneous/scalars/string.md)

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

<a id="before"></a>

#### [`before`](#before) ● [`String`](/api-reference/miscellaneous/scalars/string.md)

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

<a id="after"></a>

#### [`after`](#after) ● [`String`](/api-reference/miscellaneous/scalars/string.md)

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

<a id="first"></a>

#### [`first`](#first) ● [`Int`](/api-reference/miscellaneous/scalars/int.md)

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

<a id="last"></a>

#### [`last`](#last) ● [`Int`](/api-reference/miscellaneous/scalars/int.md)

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

Show deprecatedHide deprecated

<a id="query"></a>

#### [`query`](#query) ● [`String`](/api-reference/miscellaneous/scalars/string.md)

DEPRECATED

Use `filter.search` input instead.

Search sales by name, value or type.

<a id="type"></a>

### Type

<a id="salecountableconnection"></a>

#### [`SaleCountableConnection`](/api-reference/discounts/objects/sale-countable-connection.md)
