VoucherCreate
Creates a new voucher.
Triggers the following webhook events:
- VOUCHER_CREATED (async): A voucher was created.
type VoucherCreate {
discountErrors: [DiscountError!]! @deprecated
errors: [DiscountError!]!
voucher: Voucher
}
Fields
VoucherCreate.discountErrors
● [DiscountError!]!
deprecated non-null object
DEPRECATEDThis field will be removed in Saleor 4.0. Use
errors
field instead.
VoucherCreate.errors
● [DiscountError!]!
non-null object
VoucherCreate.voucher
● Voucher
object
Returned by
voucherCreate
mutation