Create cart
create_cartCreates a new Shopify cart with wine variants (variant_id from search_wines or get_wine) and returns cart_id, the items with live prices, the subtotal and checkout_url. No order is placed and no payment is taken here; checkout_url opens the checkout on shop.nevini.wine. Requires buyer_is_18_or_older: true, set only after the user has confirmed being 18 or older. To add wines to a cart the user already has, use add_to_cart instead.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"items": "<items>",
"buyer_is_18_or_older": "<buyer_is_18_or_older>"
},
"name": "create_cart"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | Yes | Wines to add. Duplicate variant ids are merged; a cart holds at most 25 different variants. | |
| language | No | Language of item names and of the checkout: "nl" (default) or "en". | |
| buyer_is_18_or_older | Yes | Confirms that the buyer is 18 or older and that the order is not for anyone under 18. Set it to true only after the user has said so in this conversation; if they have not, ask them first. The cart is only created when this is true. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | Yes | ||
| cart_id | Yes | ||
| currency | Yes | ||
| warnings | Yes | ||
| next_step | Yes | ||
| checkout_url | Yes | ||
| order_placed | Yes | ||
| subtotal_eur | Yes | ||
| shipping_note | Yes | ||
| total_quantity | Yes |