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": "WQy-TlnzT"
}
Response
{
"checkout": {
"_id": "def0e940b5845cf6aef02247",
"id": "PIZ-bGh4P",
"configRef": "1bf1dee645d1ebdb6834b880",
"origin": "example",
"created": 1727954641830,
"shipping": {
"status": "example",
"date": 1733827864129,
"method": "example",
"freeShippingThreshold": 1.23,
"tracking": "example",
"shopCollection": true,
"weight": "example"
},
"billing": {
"status": "example",
"paymentDate": 1769226853912,
"refundDate": 1757084577562
},
"orderId": "example",
"note": {
"date": 1727980771637,
"content": "example"
},
"items": [
{
"_id": "fb8bc04590ec8b1392280607",
"id": "VG0-KGN94",
"quantity": 1.23,
"added": 1777797724778,
"total": 29.99,
"unavailable": true
}
],
"buyer": {
"_id": "f9116c2d980fd8c29cbfb0f4",
"email": "email@example.com",
"firstName": "example",
"id": 1.23,
"lastName": "example",
"name": "example",
"telephone": "example",
"organisation": "example",
"taxNumber": "example",
"isGuest": true
},
"seller": {
"_id": "7ea122cd9bb3f3c35df64600",
"id": "fjW-ozNKN",
"firstName": "example",
"lastName": "example",
"name": "example",
"email": "email@example.com",
"telephone": "example",
"taxNumber": "example"
},
"updated": 1776741827421,
"expires": 1746256802212,
"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. |