Skip to main content

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": "jRV-r7AIg"
}

Response

{
"checkout": {
"_id": "7df74bce98ef9394fb203e4d",
"id": "Cb6-b4WwI",
"configRef": "f2547a5643fa6bdec173f010",
"origin": "example",
"created": 1740225395612,
"shipping": {
"status": "example",
"date": 1720132346679,
"method": "example",
"freeShippingThreshold": 1.23,
"tracking": "example",
"shopCollection": true,
"weight": "example"
},
"billing": {
"status": "example",
"paymentDate": 1723731330548,
"refundDate": 1703564456943
},
"orderId": "example",
"note": {
"date": 1744621818081,
"content": "example"
},
"items": [
{
"_id": "27971c4c0ea1f425fa024df8",
"id": "sco-3yI1W",
"quantity": 1.23,
"added": 1719617810915,
"total": 29.99,
"unavailable": true
}
],
"buyer": {
"_id": "6f59dca794b36ed7f593a60b",
"email": "email@example.com",
"firstName": "example",
"id": 1.23,
"lastName": "example",
"name": "example",
"telephone": "example",
"organisation": "example",
"taxNumber": "example",
"isGuest": true
},
"seller": {
"_id": "dd7b7823b4a4a2d059942bc2",
"id": "V7c-72oCG",
"firstName": "example",
"lastName": "example",
"name": "example",
"email": "email@example.com",
"telephone": "example",
"taxNumber": "example"
},
"updated": 1720868372985,
"expires": 1764472466261,
"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

NameTypeDescription
idString!Checkout identifier string.

Returns

Checkout