Skip to main content
Version: 3.x

VoucherCreate

Creates a new voucher.

Requires MANAGE_DISCOUNTSpermission.

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

DEPRECATED

This 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


Was this page helpful?