Add to cart
add_to_cartAdds wine variants to an existing cart; quantities add up with lines already in the cart. Returns the updated cart and checkout_url. No order is placed and no payment is taken here; checkout_url opens the checkout on shop.nevini.wine. Use create_cart when there is no cart yet and update_cart to change or remove lines already in the cart.
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": {
"cart_id": "<cart_id>",
"items": "<items>"
},
"name": "add_to_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. | |
| cart_id | Yes | cart_id exactly as returned by create_cart, including its ?key= part. | |
| language | No | Language of item names and of the checkout: "nl" (default) or "en". |
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 |