request_cancellation
Cancel a Hostkey service immediately with a partial refund if eligible, or schedule termination at the end of the billing period; requires destructive-operation access.
Instructions
Request service cancellation (whmcs/request_cancellation). DESTRUCTIVE: cancellation_type=1 — immediate cancel with partial refund (if possible), 0 — cancel at end of billing period. Requires HOSTKEY_ALLOW_DESTRUCTIVE=1.
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": {
"id": "<id>",
"cancellation_type": "<cancellation_type>",
"confirm": "<confirm>"
},
"name": "request_cancellation"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Server ID | |
| confirm | Yes | Must be true to run the operation. | |
| cancellation_type | Yes | 1 — immediate (partial refund if possible), 0 — at end of billing period | |
| terminate_reason_custom | No | Cancellation reason |