List service cancellations

GET /api/v2/cancellations

Return a bounded snapshot of current service cancellations for VPS and shared-hosting services.

Every item in the list is an open cancellation request: cancellation.status is always pending or scheduled, and completed or revoked cancellations never appear here.

Use the per-resource status endpoints to observe those terminal states.

This endpoint has no cursor or pagination fields.

Use each item's type to choose the matching per-resource status or revoke endpoint: GET /api/v2/vps/{id}/cancellation, DELETE /api/v2/vps/{id}/cancellation, GET /api/v2/shared-hosting/{accountId}/cancellation, or DELETE /api/v2/shared-hosting/{accountId}/cancellation.

Account & Access Service Cancellations

Authentication

Required API scope: read:services

Authenticate with an API key in the Authorization: Bearer <token> header.

Context

Headers

Authorization Bearer <token>
Accept application/json

Responses

200 Current service cancellations.
cancellations array<object>

Bounded snapshot of current service cancellations. There are no cursor fields on this endpoint.

cancellations[].type string · enum required · Example: vps
vps
shared_hosting
cancellations[].vpsId string · Example: vps_01hxa3b4c5d6e7f8g9h0j1k2m3

Present when type is vps.

cancellations[].accountId string · Example: acct_01hxa3b4c5d6e7f8g9h0j1k2m3

Present when type is shared_hosting.

cancellations[].cancellation any required
401 Unauthorized. Authentication is required.
type string · Example: https://developer.hostup.se/errors/invalid_request
title string · Example: Validation failed
status integer · Example: 400
detail string · Example: The request body failed validation.
code string · Example: invalid_request

Stable machine-readable code. Branch on this field, not on detail.

instance string · Example: /api/v2/orders
requestId string · Example: req_01hxa3b4c5d6e7f8g9h0j1k2m3
timestamp string · Example: 2026-04-27T12:34:56.000Z
errors array<object>

Field-level validation errors when code is invalid_request.

errors[].pointer string required · Example: /items/0/eppCode
errors[].detail string required · Example: `eppCode` is required for this transfer.
errors[].code string required · Example: missing_required
extensions object
403 Forbidden. The caller lacks a required scope or does not own the resource.
type string · Example: https://developer.hostup.se/errors/invalid_request
title string · Example: Validation failed
status integer · Example: 400
detail string · Example: The request body failed validation.
code string · Example: invalid_request

Stable machine-readable code. Branch on this field, not on detail.

instance string · Example: /api/v2/orders
requestId string · Example: req_01hxa3b4c5d6e7f8g9h0j1k2m3
timestamp string · Example: 2026-04-27T12:34:56.000Z
errors array<object>

Field-level validation errors when code is invalid_request.

errors[].pointer string required · Example: /items/0/eppCode
errors[].detail string required · Example: `eppCode` is required for this transfer.
errors[].code string required · Example: missing_required
extensions object
429 Rate limited. Retry after the limit resets. 429 responses include Retry-After seconds plus X-RateLimit-* headers.
type string · Example: https://developer.hostup.se/errors/invalid_request
title string · Example: Validation failed
status integer · Example: 400
detail string · Example: The request body failed validation.
code string · Example: invalid_request

Stable machine-readable code. Branch on this field, not on detail.

instance string · Example: /api/v2/orders
requestId string · Example: req_01hxa3b4c5d6e7f8g9h0j1k2m3
timestamp string · Example: 2026-04-27T12:34:56.000Z
errors array<object>

Field-level validation errors when code is invalid_request.

errors[].pointer string required · Example: /items/0/eppCode
errors[].detail string required · Example: `eppCode` is required for this transfer.
errors[].code string required · Example: missing_required
extensions object
500 Internal error. Retry later or contact support if the issue persists.
type string · Example: https://developer.hostup.se/errors/invalid_request
title string · Example: Validation failed
status integer · Example: 400
detail string · Example: The request body failed validation.
code string · Example: invalid_request

Stable machine-readable code. Branch on this field, not on detail.

instance string · Example: /api/v2/orders
requestId string · Example: req_01hxa3b4c5d6e7f8g9h0j1k2m3
timestamp string · Example: 2026-04-27T12:34:56.000Z
errors array<object>

Field-level validation errors when code is invalid_request.

errors[].pointer string required · Example: /items/0/eppCode
errors[].detail string required · Example: `eppCode` is required for this transfer.
errors[].code string required · Example: missing_required
extensions object
GET https://cloud.hostup.se/api/v2/cancellations
For AI assistants
View as Markdown
cURL
curl -X GET "https://cloud.hostup.se/api/v2/cancellations" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Accept: application/json"
Response
{
  "cancellations": [
    {
      "type": "shared_hosting",
      "accountId": "acct_01hxa3b4c5d6e7f8g9h0j1k2m3",
      "cancellation": {
        "accountId": "acct_01hxa3b4c5d6e7f8g9h0j1k2m3",
        "status": "pending",
        "cancelledAt": "2026-04-27T12:34:56.000Z",
        "scheduledAt": "2026-04-27T12:34:56.000Z",
        "reason": "Requested by customer",
        "cancelType": "end_of_period",
        "revokable": true
      }
    }
  ]
}