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": "6AS-yJFFe"
}

Response

{
"checkout": {
"_id": "1e8f990a9c44c282d90a0017",
"id": "kLc-6l9xn",
"configRef": "b83ef64c9cd60dc0b5701ffa",
"origin": "example",
"created": 1772719698515,
"shipping": {
"status": "example",
"date": 1719478178783,
"method": "example",
"freeShippingThreshold": 1.23,
"tracking": "example",
"shopCollection": true,
"weight": "example"
},
"billing": {
"status": "example",
"paymentDate": 1739921440501,
"refundDate": 1757342015069
},
"orderId": "example",
"note": {
"date": 1762688206636,
"content": "example"
},
"items": [
{
"_id": "226c83ebde57fcc2c7bbe8bb",
"id": "1hJ-IZqwA",
"quantity": 1.23,
"added": 1729101239660,
"total": 29.99,
"unavailable": true
}
],
"buyer": {
"_id": "45e27dbbcb0e03dd269758b4",
"email": "email@example.com",
"firstName": "example",
"id": 1.23,
"lastName": "example",
"name": "example",
"telephone": "example",
"organisation": "example",
"taxNumber": "example",
"isGuest": true
},
"seller": {
"_id": "cd43cb21d0023aad75d2456e",
"id": "FSd-B2Fup",
"firstName": "example",
"lastName": "example",
"name": "example",
"email": "email@example.com",
"telephone": "example",
"taxNumber": "example"
},
"updated": 1730296151609,
"expires": 1726556495456,
"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