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