Skip to main content
Version: 3.x

vouchers

List of the shop's vouchers.

Requires one of the following permissions: MANAGE_DISCOUNTS.

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

Arguments

filter (VoucherFilterInput)

Filtering options for vouchers.

sortBy (VoucherSortingInput)

Sort voucher.

query (String)

Search vouchers by name or code.

DEPRECATED: this field will be removed in Saleor 4.0. Use filter.search input instead.

channel (String)

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

before (String)

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

after (String)

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

first (Int)

Return the first n elements from the list.

last (Int)

Return the last n elements from the list.

Type

VoucherCountableConnection