Skip to main content

voucherDelete Mutation

Deletes a voucher.

Requires the MANAGE_DISCOUNTSpermission.

Triggers the following webhook events:

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

Arguments​

id ● ID!​

ID of a voucher to delete.

Type​

VoucherDelete​

Deletes a voucher.

Requires the MANAGE_DISCOUNTSpermission.

Triggers the following webhook events:

  • VOUCHER_DELETED (async): A voucher was deleted.