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": "6kg-OPuvu"
}
Response
{
"checkout": {
"_id": "0a3b594bd61e6ad7bd05bc32",
"id": "oGa-rZ7yD",
"configRef": "2b1a1c8a463ed5a49a75b6d7",
"origin": "example",
"created": 1771773226715,
"shipping": {
"status": "example",
"date": 1776280373507,
"method": "example",
"freeShippingThreshold": 1.23,
"tracking": "example",
"shopCollection": true,
"weight": "example"
},
"billing": {
"status": "example",
"paymentDate": 1733572609815,
"refundDate": 1720266538828
},
"orderId": "example",
"note": {
"date": 1729585429928,
"content": "example"
},
"items": [
{
"_id": "d9260938c543bde1820e608d",
"id": "3rv-Ed2kB",
"quantity": 1.23,
"added": 1756733323938,
"total": 29.99,
"unavailable": true
}
],
"buyer": {
"_id": "1e7599e470c56719ab9904d5",
"email": "email@example.com",
"firstName": "example",
"id": 1.23,
"lastName": "example",
"name": "example",
"telephone": "example",
"organisation": "example",
"taxNumber": "example",
"isGuest": true
},
"seller": {
"_id": "7781e71dbd095f117ac69ad3",
"id": "4ng-cnOMH",
"firstName": "example",
"lastName": "example",
"name": "example",
"email": "email@example.com",
"telephone": "example",
"taxNumber": "example"
},
"updated": 1770039304117,
"expires": 1756698196972,
"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. |