checkoutUpdateItems Mutation
Description
Updates checkout items in the existing checkout.
mutation checkoutUpdateItems($id: String!, $items: [CheckoutItemInput]) {
checkoutUpdateItems(id: $id, items: $items) {
_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": "o6r-OrcjZ",
"items": [
{
"listingId": "listingId",
"quantity": 30.7
}
]
}
Response
{
"checkoutUpdateItems": {
"_id": "2be4e0c91d618d6158a033dc",
"id": "XuA-Ua2Dl",
"configRef": "ba037f5089e5a5315634c89c",
"origin": "example",
"created": 1742450751243,
"shipping": {
"status": "example",
"date": 1747495676947,
"method": "example",
"freeShippingThreshold": 1.23,
"tracking": "example",
"shopCollection": true,
"weight": "example"
},
"billing": {
"status": "example",
"paymentDate": 1781922770381,
"refundDate": 1772633079000
},
"orderId": "example",
"note": {
"date": 1748670473463,
"content": "example"
},
"items": [
{
"_id": "47d485731506c21e580fd9bd",
"id": "zx5-DMTI6",
"quantity": 1.23,
"added": 1740896193666,
"total": 29.99,
"unavailable": true
}
],
"buyer": {
"_id": "49377c49f69cb368dc862fbb",
"email": "email@example.com",
"firstName": "example",
"id": 1.23,
"lastName": "example",
"name": "example",
"telephone": "example",
"organisation": "example",
"taxNumber": "example",
"isGuest": true
},
"seller": {
"_id": "7a23108c72b94bfdb5a57eb8",
"id": "sUe-X1uQw",
"firstName": "example",
"lastName": "example",
"name": "example",
"email": "email@example.com",
"telephone": "example",
"taxNumber": "example"
},
"updated": 1777453165020,
"expires": 1771824136126,
"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! | The identifier of the checkout to be updated. |
items | [CheckoutItemInput] | A list of items in the checkout. |