Skip to main content

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": "6KE-czjo4"
}

Response

{
"checkoutVerifyAndThrow": {
"_id": "7c8964ec8809ae030d5629ab",
"id": "lDu-xkdZv",
"configRef": "aa7b7bb6e72bb32a4e55f144",
"origin": "example",
"created": 1754802778346,
"shipping": {
"status": "example",
"date": 1733314544935,
"method": "example",
"freeShippingThreshold": 1.23,
"tracking": "example",
"shopCollection": true,
"weight": "example"
},
"billing": {
"status": "example",
"paymentDate": 1708150271362,
"refundDate": 1748799109489
},
"orderId": "example",
"note": {
"date": 1723172757319,
"content": "example"
},
"items": [
{
"_id": "3ba2f30a4985c1ab0f7dee1b",
"id": "rFP-dsSbQ",
"quantity": 1.23,
"added": 1713829993250,
"total": 29.99,
"unavailable": true
}
],
"buyer": {
"_id": "b17df01ae08c03c327df3e32",
"email": "email@example.com",
"firstName": "example",
"id": 1.23,
"lastName": "example",
"name": "example",
"telephone": "example",
"organisation": "example",
"taxNumber": "example",
"isGuest": true
},
"seller": {
"_id": "be969eb5a766f577c7a86693",
"id": "Fhh-seCyl",
"firstName": "example",
"lastName": "example",
"name": "example",
"email": "email@example.com",
"telephone": "example",
"taxNumber": "example"
},
"updated": 1756698814104,
"expires": 1761299168488,
"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