Magidoc

VoucherInput
Input Object

Fields

#

applyOncePerCustomer

Voucher should be applied once per customer.

applyOncePerOrder

Voucher should be applied to the cheapest item or entire order.

categories

[ ID !]

Categories discounted by the voucher.

code

Code to use the voucher.

collections

[ ID !]

Collections discounted by the voucher.

countries

[ String !]

Country codes that can be used with the shipping voucher.

discountValue

Value of the voucher.

discountValueType

Choices: fixed or percentage.

endDate

End date of the voucher in ISO 8601 format.

minAmountSpent

Min purchase amount required to apply the voucher.

minCheckoutItemsQuantity

Minimal quantity of checkout items required to apply the voucher.

name

Voucher name.

products

[ ID !]

Products discounted by the voucher.

startDate

Start date of the voucher in ISO 8601 format.

type

Voucher type: PRODUCT, CATEGORY SHIPPING or ENTIRE_ORDER.

usageLimit

Limit number of times this voucher can be used in total.

variants

[ ID !]

Variants discounted by the voucher.

Usages

#

References

#

  • Argument input of field voucherCreate from type Mutation
  • Argument input of field voucherUpdate from type Mutation