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": "SiH-E22v4"
}
Response
{
"checkout": {
"_id": "bf36390133a2932a811e3bd6",
"id": "nJd-jhyfI",
"configRef": "1b8a62782bcbb947e2791aa2",
"origin": "example",
"created": 1719894719065,
"shipping": {
"status": "example",
"date": 1709048514790,
"method": "example",
"freeShippingThreshold": 1.23,
"tracking": "example",
"shopCollection": true,
"weight": "example"
},
"billing": {
"status": "example",
"paymentDate": 1758254649745,
"refundDate": 1712447883763
},
"orderId": "example",
"note": {
"date": 1760741663049,
"content": "example"
},
"items": [
{
"_id": "e89629d4f45cbdda9edbf225",
"id": "1tO-W9WxK",
"quantity": 1.23,
"added": 1726401040038,
"total": 29.99,
"unavailable": true
}
],
"buyer": {
"_id": "369c31312e663a5931b5e0e0",
"email": "email@example.com",
"firstName": "example",
"id": 1.23,
"lastName": "example",
"name": "example",
"telephone": "example",
"organisation": "example",
"taxNumber": "example",
"isGuest": true
},
"seller": {
"_id": "de16bc354d86840f647c39e6",
"id": "CDj-s7IZv",
"firstName": "example",
"lastName": "example",
"name": "example",
"email": "email@example.com",
"telephone": "example",
"taxNumber": "example"
},
"updated": 1764430125783,
"expires": 1721358148012,
"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. |