Place a sandbox order
place_orderTurn a cart into an order. Use it once get_cart shows what the customer wants; the checkout is a sandbox, so no payment is taken and nothing is shipped. Returns the order with its number, totals and confirmation_path, or an error when the cart is empty or the stock is gone.
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": {
"email": "<email>",
"name": "<name>"
},
"name": "place_order"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | the customer's name, 1 to 120 characters | |
| Yes | an email address for the order; no message is sent to it | ||
| cart_id | No | the cart.id that add_to_cart returned; leave out in a browser, which sends its own cart cookie |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | ||
| order | No |