Skip to main content
Version: 3.x

VoucherDelete

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

DEPRECATED

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

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

VoucherDelete.voucher ● Voucher object

Returned by

voucherDelete mutation


Was this page helpful?