vouchers
List of the shop's vouchers.
vouchers(
filter: VoucherFilterInput
sortBy: VoucherSortingInput
query: String
channel: String
before: String
after: String
first: Int
last: Int
): VoucherCountableConnection
Arguments
vouchers.filter ● VoucherFilterInput input
Filtering options for vouchers.
vouchers.sortBy ● VoucherSortingInput input
Sort voucher.
vouchers.query ● String scalar
Search vouchers by name or code.
DEPRECATED: this field will be removed in Saleor 4.0. Use
filter.searchinput instead.
vouchers.channel ● String scalar
Slug of a channel for which the data should be returned.
vouchers.before ● String scalar
Return the elements in the list that come before the specified cursor.
vouchers.after ● String scalar
Return the elements in the list that come after the specified cursor.
vouchers.first ● Int scalar
Retrieve the first n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query.
vouchers.last ● Int scalar
Retrieve the last n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query.
Type
VoucherCountableConnection object
Was this page helpful?