checkoutAddNote Mutation
Description
Adds a note to the checkout.
mutation checkoutAddNote($id: String!, $content: String!, $version: Int) {
checkoutAddNote(id: $id, content: $content, 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": "w0F-5ZMtT",
"content": "content",
"version": 42
}
Response
{
"checkoutAddNote": {
"_id": "e17b1fa8f091d95b6afcddd7",
"id": "K60-aVs4G",
"version": 42,
"origin": "example",
"created": 1749650570561,
"shipping": {
"status": "Pending",
"fulfilled": true,
"date": 1751128911527,
"method": "example",
"freeShippingThreshold": 1.23,
"tracking": "example",
"shopCollection": true,
"weight": 1.23,
"packingSlip": "example"
},
"billing": {
"status": "example",
"fulfilled": true,
"paymentDate": 1733241351711,
"refundDate": 1753300383342
},
"orderId": "example",
"note": {
"date": 1756921849248,
"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": "45a3d1f0dd8b3b5352c79f20",
"quantity": 1,
"unavailable": true,
"added": 1777447655534
}
],
"buyer": {
"_id": "627b14f589c3d94394f402c0",
"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": "8e5d9049f3a9e4ee188fb18b"
},
"updated": 1756585840908,
"expires": 1771827979475,
"status": "open",
"urls": {
"checkout": "example",
"storefront": "example"
},
"useSingleAddress": true,
"taxProfile": {
"isNationalShipping": true
},
"locationRef": "c084e1ee71e05d46e4400b36"
}
}
Arguments
| Name | Type | Description |
|---|---|---|
id | String! | String identifier of the checkout. |
content | String! | Content of the note to add. |
version | Int | Current version number of the checkout for optimistic locking. Prevents conflicts when multiple users edit simultaneously. |