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": "bP9-FRDDP"
}
Response
{
"checkout": {
"_id": "828c0c846d36b2cf718272c2",
"id": "qsp-u46wQ",
"configRef": "8eae972a4a958d75031a9ed2",
"origin": "example",
"created": 1734016658177,
"shipping": {
"status": "example",
"date": 1731715468752,
"method": "example",
"freeShippingThreshold": 1.23,
"tracking": "example",
"shopCollection": true,
"weight": "example"
},
"billing": {
"status": "example",
"paymentDate": 1738301574003,
"refundDate": 1727166038348
},
"orderId": "example",
"note": {
"date": 1750252752520,
"content": "example"
},
"items": [
{
"_id": "c6e9144c564493bd109fc41c",
"id": "aAA-ifQhm",
"quantity": 1.23,
"added": 1751324610134,
"total": 29.99,
"unavailable": true
}
],
"buyer": {
"_id": "0bca7ba4bdae44642ef45e49",
"email": "email@example.com",
"firstName": "example",
"id": 1.23,
"lastName": "example",
"name": "example",
"telephone": "example",
"organisation": "example",
"taxNumber": "example",
"isGuest": true
},
"seller": {
"_id": "30ca74fcbc0a7e66220c8183",
"id": "TOJ-gcw56",
"firstName": "example",
"lastName": "example",
"name": "example",
"email": "email@example.com",
"telephone": "example",
"taxNumber": "example"
},
"updated": 1762683762481,
"expires": 1717206629252,
"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. |