Skip to main content

vouchers

List all vouchers. Requires MANAGE_DISCOUNTS permission.

vouchers(
sortBy: VoucherSortingInput
query: String
productId: ID
variantId: ID
filter: VoucherFilterInput
before: String
after: String
first: Int
last: Int
): VoucherCountableConnection!

Arguments​

vouchers.sortBy ● VoucherSortingInput input​

vouchers.query ● String scalar​

vouchers.productId ● ID scalar​

vouchers.variantId ● ID scalar​

vouchers.filter ● VoucherFilterInput input​

vouchers.before ● String scalar​

Returns the items in the list that come before the specified cursor.

vouchers.after ● String scalar​

Returns the items in the list that come after the specified cursor.

vouchers.first ● Int scalar​

Returns the first n items from the list.

vouchers.last ● Int scalar​

Returns the items in the list that come after the specified cursor.

Type​

VoucherCountableConnection object​

A connection to a list of items.

Was this page helpful?