Skip to main content

VoucherCreate Object

Creates a new voucher.

Requires the 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

errors ● [DiscountError!]!

voucher ● Voucher

Show deprecatedHide deprecated

discountErrors ● [DiscountError!]!

DEPRECATED

Use errors field instead.

Returned By

voucherCreate mutation