Magidoc

voucherDelete
Mutation

Deletes a voucher.

Arguments

#

id

ID !
Non-null

ID of a voucher to delete.

Response

#

Returns VoucherDelete .

Example

#

    mutation ($id: ID!) {
  voucherDelete(id: $id) {
    discountErrors {
      field
      message
      code
    }
    voucher {
      id
      type
      name
      code
      usageLimit
      used
      startDate
      endDate
      applyOncePerOrder
      applyOncePerCustomer
      discountValueType
      discountValue
      currency
      minCheckoutItemsQuantity
    }
  }
}

  

3