voucherDelete Mutation
Deletes a voucher.
Triggers the following webhook events:
- VOUCHER_DELETED (async): A voucher was deleted.
Applied directives
@webhookEventsInfo(asyncEvents: [VOUCHER_DELETED], syncEvents: [])
voucherDelete(externalReference: String, id: ID): VoucherDelete
Returns
Show return type
type VoucherDelete {
discountErrors: [DiscountError!]! @deprecated(reason: "Use `errors` field instead.")
errors: [DiscountError!]!
voucher: Voucher
}Arguments
externalReference
externalReference · String
External ID of a voucher to delete.
Added in Saleor 3.23id
id · ID
ID of a voucher to delete.
Schema: Saleor 3.23.43. Download SDL.