Cancel a queued number order
cancel_number_orderCancel an out-of-region number order that is still queued (status pending only): it becomes cancelled, nothing is charged, and an account that has never topped up can order again. An order being provisioned right now returns in_progress - try again in a few minutes, or release the finished number over REST (DELETE /v1/numbers/{e164}) once it is done. A done or failed order returns invalid_transition. Cancelling an already cancelled order is harmless. Same data as POST /v1/numbers/orders/{id}/cancel (response schema in /openapi.json).
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": {
"orderId": "<orderId>"
},
"name": "cancel_number_order"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| orderId | Yes | Id of the number order to cancel, from list_number_orders or order_number_from_region. |