create_cart
Creates an empty shopping cart and returns its cart_id handle for later cart operations. Requires an API key with cart:write scope; the cart is tied to that key.
Instructions
Create an empty cart and get its cart_id handle. Requires an API key with the cart:write scope. The cart belongs to that key: only the same key can read or change it.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "create_cart"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lines | Yes | The cart's lines, in cart order. | |
| cart_id | Yes | The cart handle. | |
| total_yen | Yes | Grand total in yen: subtotal plus shipping. | |
| item_count | Yes | Total units across all lines. | |
| shipping_yen | Yes | Shipping fee in yen (free at the store's threshold). | |
| subtotal_yen | Yes | Sum of purchasable line totals, in yen. |