cancel_order
Request cancellation of an iFood order by submitting its order ID and a valid cancellation reason code obtained from get_cancellation_reasons.
Instructions
Request cancellation of an order using a code from get_cancellation_reasons. WARNING: request body is best-guess — verify against live iFood docs.
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_id": "<order_id>",
"code": "<code>"
},
"name": "cancel_order"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | Cancellation code obtained from get_cancellation_reasons for THIS order (e.g. '503'). No safe default exists — an invalid code yields CANCELLATION_REQUEST_FAILED. | |
| order_id | Yes | Order ID |