checkoutCreate Mutation
Description
Creates a new checkout session.
mutation checkoutCreate {
checkoutCreate {
_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
{}
Response
{
"checkoutCreate": {
"_id": "47d31d5db36aac813bc3e957",
"id": "7VX-gdLEE",
"configRef": "95638dc1d1db84ffa3f60f49",
"origin": "example",
"created": 1773132622585,
"shipping": {
"status": "example",
"date": 1750366642328,
"method": "example",
"freeShippingThreshold": 1.23,
"tracking": "example",
"shopCollection": true,
"weight": "example"
},
"billing": {
"status": "example",
"paymentDate": 1745528508323,
"refundDate": 1790723821093
},
"orderId": "example",
"note": {
"date": 1793889062855,
"content": "example"
},
"items": [
{
"_id": "c2d832520544de013a7279f4",
"id": "Fn0-dDFyT",
"quantity": 1.23,
"added": 1770907860918,
"total": 29.99,
"unavailable": true
}
],
"buyer": {
"_id": "21557a0f3830a87792f7b98f",
"email": "email@example.com",
"firstName": "example",
"id": 1.23,
"lastName": "example",
"name": "example",
"telephone": "example",
"organisation": "example",
"taxNumber": "example",
"isGuest": true
},
"seller": {
"_id": "c58e8ebf334aabed7278db1b",
"id": "2Of-SUHJ1",
"firstName": "example",
"lastName": "example",
"name": "example",
"email": "email@example.com",
"telephone": "example",
"taxNumber": "example"
},
"updated": 1787043171080,
"expires": 1782137109279,
"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
No arguments