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": "yYY-83YdK",
"items": [
{
"listingId": 30.7,
"quantity": 30.7
}
]
}
Response
{
"checkoutUpdateItems": {
"_id": "82b73a0727d2a4d0e60bf20b",
"id": "LmB-P9Vih",
"configRef": "89a6d46b122522af355d2ae1",
"origin": "example",
"created": 1754934644878,
"shipping": {
"status": "example",
"date": 1759820618929,
"method": "example",
"freeShippingThreshold": 1.23,
"tracking": "example",
"shopCollection": true,
"weight": "example"
},
"billing": {
"status": "example",
"paymentDate": 1714232438877,
"refundDate": 1721778819260
},
"orderId": "example",
"note": {
"date": 1710541613772,
"content": "example"
},
"items": [
{
"_id": "fca2b966f4a6e2a8b43ae62a",
"id": "1e1-11Y7A",
"quantity": 1.23,
"added": 1765785071521,
"total": 29.99,
"unavailable": true
}
],
"buyer": {
"_id": "09936ed08725ca0f6c276b38",
"email": "email@example.com",
"firstName": "example",
"id": 1.23,
"lastName": "example",
"name": "example",
"telephone": "example",
"organisation": "example",
"taxNumber": "example",
"isGuest": true
},
"seller": {
"_id": "3e419f0a9fde2032b267c5f1",
"id": "Uxn-UKFPL",
"firstName": "example",
"lastName": "example",
"name": "example",
"email": "email@example.com",
"telephone": "example",
"taxNumber": "example"
},
"updated": 1733094368427,
"expires": 1710849714110,
"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. |