Skip to main content

VoucherCodeBulkDelete Object

Deletes voucher codes.

Added in Saleor 3.18
Requires MANAGE_DISCOUNTSpermission.

Triggers the following webhook events:

  • VOUCHER_CODES_DELETED (async): A voucher codes were deleted.
type VoucherCodeBulkDelete {
count: Int!
errors: [VoucherCodeBulkDeleteError!]!
}

Fields

VoucherCodeBulkDelete.count ● Int! non-null scalar miscellaneous

Returns how many codes were deleted.

VoucherCodeBulkDelete.errors ● [VoucherCodeBulkDeleteError!]! non-null object discounts

Returned By

voucherCodeBulkDelete mutation