Update cart
update_cartSets the quantity of existing cart lines by line_id; quantity 0 removes a line. 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. line_id comes from create_cart, add_to_cart or get_cart; use add_to_cart for wines that are not in the cart yet.
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>",
"lines": "<lines>"
},
"name": "update_cart"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lines | Yes | ||
| 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 |