Skip to main content

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": "cbd37b01e0fd97646730544e",
"id": "Oxz-KaGhp",
"configRef": "a8a569ea1c90637667ab4086",
"origin": "example",
"created": 1746705034641,
"shipping": {
"status": "example",
"date": 1763227820016,
"method": "example",
"freeShippingThreshold": 1.23,
"tracking": "example",
"shopCollection": true,
"weight": "example"
},
"billing": {
"status": "example",
"paymentDate": 1723982630360,
"refundDate": 1750991106773
},
"orderId": "example",
"note": {
"date": 1736163317175,
"content": "example"
},
"items": [
{
"_id": "1a0e3285b264bc339a7f69a8",
"id": "nQd-564MW",
"quantity": 1.23,
"added": 1713879529419,
"total": 29.99,
"unavailable": true
}
],
"buyer": {
"_id": "80151733422ce51efc5500b5",
"email": "email@example.com",
"firstName": "example",
"id": 1.23,
"lastName": "example",
"name": "example",
"telephone": "example",
"organisation": "example",
"taxNumber": "example",
"isGuest": true
},
"seller": {
"_id": "1d628c3bfc6291e05cfa5ea7",
"id": "coQ-4o1M7",
"firstName": "example",
"lastName": "example",
"name": "example",
"email": "email@example.com",
"telephone": "example",
"taxNumber": "example"
},
"updated": 1709559973922,
"expires": 1754275148253,
"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

Returns

Checkout