Change billing period

Changes the billing period for your hosting account. Switching to a longer period creates an invoice for the difference. Switching to a shorter period takes effect at the next renewal.

Path Parameters

accountId integer · min: 1 required Example

Unique account identifier

Headers

Accept Example
Content-Type Example

Body

required
application/json
cycleId string required

Period ID ('m' for monthly, 'a' for annually)

Responses

200
success boolean
timestamp string
requestId string
data object
POST https://cloud.hostup.se/api/hosting/{accountId}/billing-cycle
For AI assistants
cURL
curl -X POST "https://cloud.hostup.se/api/hosting/17457/billing-cycle" \
  -H "X-API-Key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "cycleId": "string"
  }'
Response
{
  "success": true,
  "timestamp": "string",
  "requestId": "string",
  "data": {
    "success": true,
    "message": "string",
    "newCycle": "string",
    "total": "string",
    "info": [
      "string"
    ]
  }
}
Request Body
{
  "cycleId": "string"
}