Request cancellation of your web hosting or VPS services. You can choose to cancel immediately or at the end of your current billing period, and specify a reason for cancellation.
/ /instance/[id] Accept Example Content-Type Example accountId string required
· Example: 20000 otherReason string
· Example: Kund begärde omedelbar uppsägning av webbhotellkonto reason string · enum required
· Example: No longer needed Customer requested Found a better alternative Moving to different provider No longer needed Omedelbar uppsägning Poor performance Technical issues other type string · enum required
· Example: End of billing period End of billing period Immediate data object required data.info array<string> required
· Example: ["Cancelation request submitted"] data.message string required
· Example: Cancellation request submitted successfully Human-readable message.
data.success boolean required
· Example: true True for successful responses.
requestId string required
· Example: 2121ae20-bd9d-41e9-aeeb-5dd1dd1a24ba Unique request identifier (UUID).
success boolean required
· Example: true True for successful responses.
timestamp string required
· Example: 2026-02-10T00:00:00.000Z ISO 8601 timestamp (UTC).
code string required
· Example: BAD_REQUEST Machine-readable error code.
error string required
· Example: Bad Request HTTP status title (e.g. 'Bad Request').
message string required
· Example: Invalid cancellation type. Must be "Immediate" or "End of billing period" Human-readable message.
requestId string required
· Example: 2121ae20-bd9d-41e9-aeeb-5dd1dd1a24ba Unique request identifier (UUID).
timestamp string required
· Example: 2026-02-10T00:00:00.000Z ISO 8601 timestamp (UTC).
code string required
· Example: NOT_FOUND Machine-readable error code.
error string required
· Example: Not Found HTTP status title (e.g. 'Bad Request').
message string required
· Example: Service not found not found Human-readable message.
requestId string required
· Example: 2121ae20-bd9d-41e9-aeeb-5dd1dd1a24ba Unique request identifier (UUID).
timestamp string required
· Example: 2026-02-10T00:00:00.000Z ISO 8601 timestamp (UTC).
https://cloud.hostup.se/api/cancel-hosting curl -X POST "https://cloud.hostup.se/api/cancel-hosting" \
-H "X-API-Key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"accountId": "20000",
"type": "End of billing period",
"reason": "No longer needed"
}' {
"success": true,
"timestamp": "2026-02-10T00:00:00.000Z",
"requestId": "2121ae20-bd9d-41e9-aeeb-5dd1dd1a24ba",
"data": {
"success": true,
"message": "Cancellation request submitted successfully",
"info": [
"Cancelation request submitted"
]
}
} {
"accountId": "20000",
"type": "End of billing period",
"reason": "No longer needed"
}