checkoutVerifyAndThrow Mutation
Description
Verifies checkout validity and throws an error if invalid.
mutation checkoutVerifyAndThrow($id: String!) {
checkoutVerifyAndThrow(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": "Y5i-KzyIG"
}
Response
{
"checkoutVerifyAndThrow": {
"_id": "20b93080650888512dcce627",
"id": "ifL-nfKtm",
"configRef": "bacf604598dd143025522187",
"origin": "example",
"created": 1765665874427,
"shipping": {
"status": "example",
"date": 1712029059700,
"method": "example",
"freeShippingThreshold": 1.23,
"tracking": "example",
"shopCollection": true,
"weight": "example"
},
"billing": {
"status": "example",
"paymentDate": 1758053415633,
"refundDate": 1755420966457
},
"orderId": "example",
"note": {
"date": 1741623360487,
"content": "example"
},
"items": [
{
"_id": "dd28fc1023a7b0a5817632b4",
"id": "mHK-gtEWZ",
"quantity": 1.23,
"added": 1753124535670,
"total": 29.99,
"unavailable": true
}
],
"buyer": {
"_id": "a6823590fe3a7de7a38976fc",
"email": "email@example.com",
"firstName": "example",
"id": 1.23,
"lastName": "example",
"name": "example",
"telephone": "example",
"organisation": "example",
"taxNumber": "example",
"isGuest": true
},
"seller": {
"_id": "b9932490683ae1084fe9b786",
"id": "m3z-x3lJj",
"firstName": "example",
"lastName": "example",
"name": "example",
"email": "email@example.com",
"telephone": "example",
"taxNumber": "example"
},
"updated": 1751059087582,
"expires": 1738690291857,
"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. |