create_order
Validate and place an order at a meni.ge location. Returns orderId (keep it — it is the access token for status checks) and the computed total. customer.name/phone are required for pickup and delivery; delivery.address is required for delivery. Pass either items (inline) or cartId (the cart built with update_cart) — not both. Always pass idempotencyKey when you might retry: the same key within 48h returns the original order instead of placing a second one.
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": {
"domain": "<domain>"
},
"name": "create_order"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | No | ||
| notes | No | ||
| cartId | No | Order this cart; mutually exclusive with items | |
| domain | Yes | ||
| pickup | No | ||
| qrCode | No | ||
| customer | No | ||
| delivery | No | ||
| language | No | ||
| orderType | No | ||
| paymentMethod | No | ||
| idempotencyKey | No | Retry guard, e.g. a UUID you keep for this order attempt |