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.
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 |