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": "G2P-3gDzN"
}
Response
{
"checkout": {
"_id": "f1c657d5715607a88b1dd25f",
"id": "dLx-o6sra",
"configRef": "e26fea62b10a2a26e8dfa430",
"origin": "example",
"created": 1756608818766,
"shipping": {
"status": "example",
"date": 1768955866816,
"method": "example",
"freeShippingThreshold": 1.23,
"tracking": "example",
"shopCollection": true,
"weight": "example"
},
"billing": {
"status": "example",
"paymentDate": 1737631285301,
"refundDate": 1750062928739
},
"orderId": "example",
"note": {
"date": 1740524840289,
"content": "example"
},
"items": [
{
"_id": "dfeb7712dc84b38d9aa23e0b",
"id": "xko-4S3xW",
"quantity": 1.23,
"added": 1781832404715,
"total": 29.99,
"unavailable": true
}
],
"buyer": {
"_id": "d2de401af2283136d5f347fc",
"email": "email@example.com",
"firstName": "example",
"id": 1.23,
"lastName": "example",
"name": "example",
"telephone": "example",
"organisation": "example",
"taxNumber": "example",
"isGuest": true
},
"seller": {
"_id": "036852b94a79966acc5fc8d6",
"id": "SyW-sgpfl",
"firstName": "example",
"lastName": "example",
"name": "example",
"email": "email@example.com",
"telephone": "example",
"taxNumber": "example"
},
"updated": 1756555247973,
"expires": 1732722977120,
"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. |