voucherDelete Mutation
Deletes a voucher.
Arguments
#
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
{
"id": "aWQ6NzQ="
}
3
{
"voucherDelete": {
"discountErrors": [
{
"field": "string",
"message": "string",
"code": "ALREADY_EXISTS"
}
],
"voucher": {
"id": "aWQ6MTM=",
"type": "SHIPPING",
"name": "Acme",
"code": "string",
"usageLimit": 42,
"used": 42,
"startDate": "2022-03-06T08:23:45.000Z",
"endDate": "2022-03-06T08:23:45.000Z",
"applyOncePerOrder": true,
"applyOncePerCustomer": true,
"discountValueType": "FIXED",
"discountValue": 10.23,
"currency": "string",
"minCheckoutItemsQuantity": 42
}
}
}
3