alopeyk_cancel_order
Cancel an Alopeyk delivery order by providing the order ID and a comment explaining the cancellation reason.
Instructions
Cancel an order — WARNING: this changes a real delivery.
Persian purpose: لغو یک سفارش. On-Demand, requires an access_token AND
enable_ordering=true (and read_only=false); otherwise it returns
{"error": "ordering_disabled", ...} without contacting the API. Maps
to GET /api/v2/orders/{id}/cancel?comment=<c>.
Args: order_id: Numeric id of the order to cancel. comment: Reason / note for the cancellation (required by Alopeyk). instance: Configured instance to use (default when omitted).
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>",
"comment": "<comment>"
},
"name": "alopeyk_cancel_order"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| order_id | Yes | ||
| comment | Yes | ||
| instance | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||