Skip to main content

VoucherCreate

Creates a new voucher.

Requires MANAGE_DISCOUNTSpermission.

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

DEPRECATED

This field will be removed in Saleor 4.0. Use errors field instead.

VoucherCreate.errors ● [DiscountError!]! non-null object discounts

VoucherCreate.voucher ● Voucher object discounts

Returned By

voucherCreate mutation