Repeat an order
repeat_orderUse when the customer wants the same as a past order. Needs their connected account. Rebuilds that order with today's menu and prices and returns a checkout link, like create_checkout_link. Items that changed are left out and listed in messages. Nothing is charged: the customer reviews and pays on the website.
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": {
"order_code": "<order_code>"
},
"name": "repeat_order"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| order_code | Yes | The order_code from get_my_orders. |