Skip to main content

VoucherUpdate

Updates a voucher.

Requires MANAGE_DISCOUNTSpermission.

Triggers the following webhook events:

  • VOUCHER_UPDATED (async): A voucher was updated.
  • VOUCHER_CODES_CREATED (async): A voucher code was created.
type VoucherUpdate {
discountErrors: [DiscountError!]! @deprecated
errors: [DiscountError!]!
voucher: Voucher
}

Fields

VoucherUpdate.discountErrors ● [DiscountError!]! deprecated non-null object discounts

DEPRECATED

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

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

VoucherUpdate.voucher ● Voucher object discounts

Returned By

voucherUpdate mutation