Magidoc

vouchers
Query

List of the shop's vouchers.

Arguments

#

after

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

before

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

filter

Filtering options for vouchers.

first

Return the first n elements from the list.

last

Return the last n elements from the list.

productId

ID of product to filter vouchers on

query

Search vouchers by name or code.

sortBy

Sort voucher.

variantId

ID of variant to filter vouchers on

Response

#

Returns VoucherCountableConnection .

Example

#