checkout Query
Description
Retrieves a checkout by identifier.
query checkout($id: String!) {
checkout(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": "HYn-JDf5d"
}
Response
{
"checkout": {
"_id": "ee4f7992633d078103ca26af",
"id": "r54-1r3U5",
"configRef": "7c0780bd543bacaf2c7f8b5d",
"origin": "example",
"created": 1745541318605,
"shipping": {
"status": "example",
"date": 1772887841310,
"method": "example",
"freeShippingThreshold": 1.23,
"tracking": "example",
"shopCollection": true,
"weight": "example"
},
"billing": {
"status": "example",
"paymentDate": 1774077574391,
"refundDate": 1739126871897
},
"orderId": "example",
"note": {
"date": 1773584432626,
"content": "example"
},
"items": [
{
"_id": "b4978cad6cba2f976122c7a7",
"id": "2CR-6dELh",
"quantity": 1.23,
"added": 1776615511869,
"total": 29.99,
"unavailable": true
}
],
"buyer": {
"_id": "4c436501e523fee8b66f6566",
"email": "email@example.com",
"firstName": "example",
"id": 1.23,
"lastName": "example",
"name": "example",
"telephone": "example",
"organisation": "example",
"taxNumber": "example",
"isGuest": true
},
"seller": {
"_id": "373656243026a72e26d15113",
"id": "oW3-mopsT",
"firstName": "example",
"lastName": "example",
"name": "example",
"email": "email@example.com",
"telephone": "example",
"taxNumber": "example"
},
"updated": 1751809112732,
"expires": 1754010473574,
"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. |