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": "396af43fa1208078b10b91c6",
"id": "9ME-qRqHD",
"configRef": "dc4eec8a85b558136ee4b2c4",
"origin": "example",
"created": 1736716345436,
"shipping": {
"status": "example",
"date": 1728903062007,
"method": "example",
"freeShippingThreshold": 1.23,
"tracking": "example",
"shopCollection": true,
"weight": "example"
},
"billing": {
"status": "example",
"paymentDate": 1728420561421,
"refundDate": 1747482166905
},
"orderId": "example",
"note": {
"date": 1772864805586,
"content": "example"
},
"items": [
{
"_id": "1c3aa15255637e6f26f80c87",
"id": "R7S-UJ2Sw",
"quantity": 1.23,
"added": 1764205543639,
"total": 29.99,
"unavailable": true
}
],
"buyer": {
"_id": "1cadb745e287bc87f67d3ac4",
"email": "email@example.com",
"firstName": "example",
"id": 1.23,
"lastName": "example",
"name": "example",
"telephone": "example",
"organisation": "example",
"taxNumber": "example",
"isGuest": true
},
"seller": {
"_id": "38a8533420aefa9c088adb3d",
"id": "nxz-Aw19I",
"firstName": "example",
"lastName": "example",
"name": "example",
"email": "email@example.com",
"telephone": "example",
"taxNumber": "example"
},
"updated": 1754499127889,
"expires": 1746223509087,
"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