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": "lF0-FOrgh"
}
Response
{
"checkoutVerifyAndThrow": {
"_id": "335080702b6ccb80b6b961b6",
"id": "Bod-lGHdY",
"configRef": "e7318c1a82091659302fcf9b",
"origin": "example",
"created": 1708879892056,
"shipping": {
"status": "example",
"date": 1708308432167,
"method": "example",
"freeShippingThreshold": 1.23,
"tracking": "example",
"shopCollection": true,
"weight": "example"
},
"billing": {
"status": "example",
"paymentDate": 1726927568737,
"refundDate": 1764448270229
},
"orderId": "example",
"note": {
"date": 1707638389293,
"content": "example"
},
"items": [
{
"_id": "cf6010be7907bc11eb24cabd",
"id": "bCp-wbkat",
"quantity": 1.23,
"added": 1718883554874,
"total": 29.99,
"unavailable": true
}
],
"buyer": {
"_id": "f119cacc8038c20b57db3903",
"email": "email@example.com",
"firstName": "example",
"id": 1.23,
"lastName": "example",
"name": "example",
"telephone": "example",
"organisation": "example",
"taxNumber": "example",
"isGuest": true
},
"seller": {
"_id": "dd57b24619f03a1c1d7a5986",
"id": "jAh-Eqrz6",
"firstName": "example",
"lastName": "example",
"name": "example",
"email": "email@example.com",
"telephone": "example",
"taxNumber": "example"
},
"updated": 1713242284088,
"expires": 1761427842361,
"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. |