Skip to main content

VoucherDelete Object

Deletes a voucher.

Requires MANAGE_DISCOUNTSpermission.

Triggers the following webhook events:

  • VOUCHER_DELETED (async): A voucher was deleted.
type VoucherDelete {
discountErrors: [DiscountError!]! @deprecated
errors: [DiscountError!]!
voucher: Voucher
}

Fields

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

DEPRECATED

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

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

VoucherDelete.voucher ● Voucher object discounts

Returned By

voucherDelete mutation