Skip to main content
Version: 3.x

VoucherBulkDelete

Deletes vouchers.

Requires MANAGE_DISCOUNTSpermission.

Triggers the following webhook events:

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

Fields

VoucherBulkDelete.count ● Int! non-null scalar

Returns how many objects were affected.

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

DEPRECATED

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

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

Returned by

voucherBulkDelete mutation


Was this page helpful?