create_cart
Create a new cart (checkout session). Returns the full cart state including the checkout_session_id needed for get_cart and update_cart. You must call this before using get_cart or update_cart.
11,681verified stores declare the create_cart tool
62.1%of the verified stores we check
By store platform
Shopify 94%Jumpseller 4%Boutir 2%
By release
Each store has its own status page. To find more, search the directory.
Input schema
inputSchema
{
"type": "object",
"required": [
"items"
],
"properties": {
"buyer": {
"type": "object",
"properties": {
"email": {
"type": "string"
},
"last_name": {
"type": "string"
},
"first_name": {
"type": "string"
},
"phone_number": {
"type": "string"
}
},
"description": "Optional buyer information"
},
"items": {
"type": "array",
"items": {
"type": "object",
"required": [
"variant_id",
"quantity"
],
"properties": {
"quantity": {
"type": "number",
"description": "Quantity to add"
},
"variant_id": {
"type": "string",
"description": "Product variant ID"
}
}
},
"description": "Items to add to the cart (at least one required)"
},
"currency": {
"type": "string",
"description": "Currency code for the cart (e.g. 'usd', 'eur'). Defaults to 'usd'."
}
}
}
