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

List of the shop's vouchers.



Requires one of the following permissions: `MANAGE_DISCOUNTS`.





```graphql
vouchers(filter: VoucherFilterInput, sortBy: VoucherSortingInput, query: String, channel: String, before: String, after: String, first: Int, last: Int): VoucherCountableConnection
```

## Returns

[`VoucherCountableConnection`](/api-reference/discounts/objects/voucher-countable-connection)

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


```graphql
type VoucherCountableConnection {
  pageInfo: PageInfo!
  edges: [VoucherCountableEdge!]!
  totalCount: Int
}
```


</details>

## Arguments

### filter [#filter]

**`filter`** · [`VoucherFilterInput`](/api-reference/discounts/inputs/voucher-filter-input)

Filtering options for vouchers.

### sortBy [#sort-by]

**`sortBy`** · [`VoucherSortingInput`](/api-reference/discounts/inputs/voucher-sorting-input)

Sort voucher.

### query [#query]

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

Search vouchers by name or code.

:::warning[Deprecated]
Use `filter.search` input instead.
:::


### channel [#channel]

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

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

### 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).
