update_store_cart
Update an existing cart's totals, currency, checkout URL, or line items. Only provided fields are changed; to replace line items, pass a full lines_json array.
Instructions
Update an existing cart's totals, currency, checkout URL, or line items.
Only provided fields are changed. To replace line items, pass a full lines_json array (partial line updates are not supported by this tool — use the Mailchimp UI or REST API directly for line-level edits).
Returns 404 if store_id or cart_id is invalid.
Args: store_id: E-commerce store ID. cart_id: Existing cart ID. order_total: New order total. tax_total: New tax portion. checkout_url: New checkout URL. currency_code: New ISO 4217 currency code. lines_json: JSON string with a replacement line items array.
Returns: JSON with id, order_total, tax_total, checkout_url, currency_code, updated_at.
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": {
"store_id": "<store_id>",
"cart_id": "<cart_id>"
},
"name": "update_store_cart"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| account | No | ||
| cart_id | Yes | ||
| store_id | Yes | ||
| tax_total | No | ||
| lines_json | No | ||
| order_total | No | ||
| checkout_url | No | ||
| currency_code | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |