checkoutRemoveEntry Mutation
Description
Removes an entry from the checkout items.
mutation checkoutRemoveEntry($id: String!, $entryRef: ID!, $version: Int) {
checkoutRemoveEntry(id: $id, entryRef: $entryRef, version: $version) {
_id
id
version
origin
created
shipping {
status
fulfilled
date
method
freeShippingThreshold
tracking
shopCollection
weight
packingSlip
}
billing {
status
fulfilled
paymentDate
refundDate
}
orderId
note {
date
content
}
totals {
subtotal
subtotalBeforeTaxes
tax
grand
leftToPay
itemQuantity
discount
shipping
creditNote
balance
}
items {
_id
quantity
unavailable
added
}
buyer {
_id
firstName
lastName
email
name
path
telephone
organisation
taxNumber
}
seller {
type
name
email
ref
}
updated
expires
status
urls {
checkout
storefront
}
useSingleAddress
taxProfile {
isNationalShipping
}
locationRef
}
}
Variables
{
"id": "kli-AaawW",
"entryRef": "f42f36a4745b38d39508ee81",
"version": 42
}
Response
{
"checkoutRemoveEntry": {
"_id": "75d674743fafe0b1021f087c",
"id": "Jgs-PzClu",
"version": 42,
"origin": "example",
"created": 1751607109278,
"shipping": {
"status": "Pending",
"fulfilled": true,
"date": 1778709453921,
"method": "example",
"freeShippingThreshold": 1.23,
"tracking": "example",
"shopCollection": true,
"weight": 1.23,
"packingSlip": "example"
},
"billing": {
"status": "example",
"fulfilled": true,
"paymentDate": 1776967129918,
"refundDate": 1752058104628
},
"orderId": "example",
"note": {
"date": 1787115981805,
"content": "example"
},
"totals": {
"subtotal": 1.23,
"subtotalBeforeTaxes": 1.23,
"tax": 1.23,
"grand": 1.23,
"leftToPay": 1.23,
"itemQuantity": 1.23,
"discount": 0.1,
"shipping": 1.23,
"creditNote": 1.23,
"balance": 1.23
},
"items": [
{
"_id": "813bd1a05d42f9f84354c162",
"quantity": 1,
"unavailable": true,
"added": 1766557688673
}
],
"buyer": {
"_id": "9c768edf21a3c1ab85ebbb7f",
"firstName": "example",
"lastName": "example",
"email": "email@example.com",
"name": "example",
"path": "/release/1763553751/release-artist-release-name",
"telephone": "example",
"organisation": "example",
"taxNumber": "example"
},
"seller": {
"type": "example",
"name": "example",
"email": "email@example.com",
"ref": "cd54e62b99b5f4a15ece87d5"
},
"updated": 1739759039052,
"expires": 1757708268142,
"status": "open",
"urls": {
"checkout": "example",
"storefront": "example"
},
"useSingleAddress": true,
"taxProfile": {
"isNationalShipping": true
},
"locationRef": "af8f577d59689bf454bb8a51"
}
}
Arguments
| Name | Type | Description |
|---|---|---|
id | String! | String identifier of the checkout. |
entryRef | ID! | Reference ID of the entry to remove from the checkout. |
version | Int | Current version number of the checkout for optimistic locking. Prevents conflicts when multiple users edit simultaneously. |