removeVoucher Mutation
Description
Removes a voucher from a checkout.
mutation removeVoucher($id: String!) {
removeVoucher(id: $id) {
_id
id
configRef
origin
created
shipping {
status
date
method
freeShippingThreshold
tracking
shopCollection
weight
}
billing {
status
paymentDate
refundDate
}
orderId
note {
date
content
}
items {
_id
id
quantity
added
total
unavailable
}
buyer {
_id
email
firstName
id
lastName
name
telephone
organisation
taxNumber
isGuest
}
seller {
_id
id
firstName
lastName
name
email
telephone
taxNumber
}
updated
expires
status
message
totals {
grand
leftToPay
discount
itemsQuantity
itemQuantity
subtotal
subtotalBeforeTaxes
shipping
tax
}
urls {
checkout
storefront
}
useSingleAddress
}
}
Variables
{
"id": "08a16b83-9094-4e89-8c05-2ccadd5c1c7e"
}
Response
{
"removeVoucher": {
"_id": "0de3f01e2a45680f15644d4c",
"id": "example",
"configRef": "e4542e34867835d0043fa46b",
"origin": "example",
"created": 1716732767750,
"shipping": {
"status": "example",
"date": 1770402356037,
"method": "example",
"freeShippingThreshold": 1.23,
"tracking": "example",
"shopCollection": true,
"weight": "example"
},
"billing": {
"status": "example",
"paymentDate": 1719661170825,
"refundDate": 1756629950090
},
"orderId": "example",
"note": {
"date": 1731533546715,
"content": "example"
},
"items": [
{
"_id": "f9cb8f508b58d9a52d033090",
"id": "ec82c883ae08d11fcc32d695",
"quantity": 1.23,
"added": 1718429061512,
"total": 29.99,
"unavailable": true
}
],
"buyer": {
"_id": "ae226cce1417e1284ea295e6",
"email": "email@example.com",
"firstName": "example",
"id": 1.23,
"lastName": "example",
"name": "example",
"telephone": "example",
"organisation": "example",
"taxNumber": "example",
"isGuest": true
},
"seller": {
"_id": "03b7005060f51d642226106e",
"id": "example",
"firstName": "example",
"lastName": "example",
"name": "example",
"email": "email@example.com",
"telephone": "example",
"taxNumber": "example"
},
"updated": 1743157637646,
"expires": 1733081133774,
"status": "example",
"message": "example",
"totals": {
"grand": 1.23,
"leftToPay": 1.23,
"discount": 0.1,
"itemsQuantity": 1.23,
"itemQuantity": 42,
"subtotal": 1.23,
"subtotalBeforeTaxes": 1.23,
"shipping": 1.23,
"tax": 1.23
},
"urls": {
"checkout": "example",
"storefront": "example"
},
"useSingleAddress": true
}
}
Arguments
| Name | Type | Description |
|---|---|---|
id | String! | Checkout identifier string. |