Get hosting account billing cycle

Retrieve information about the current and available billing cycles for your hosting account. This returns a `productId` required for upgrading the service via the API.

Web Hosting Services Hosting Accounts

Context

Where to get IDs / values

Workflow links

Path Parameters

accountId integer · min: 1 required Example: 20000

Unique account identifier

Headers

Accept Example
Content-Type Example

Responses

200
data object required
data.accountDetails object required
data.accountDetails.domain string required · Example: example.com
data.accountDetails.name string required · Example: Start (cpanel)
data.accountDetails.total string · enum required · Example: 708.00
3.90
468.00
708.00
79.00
data.accountId string required · Example: 20000
data.current string · enum required · Example: a
a
m
data.currentName string required · Example: Annually
data.cycles array<object> required · Example: [{"id":"m","name":"Monthly","price":"79.00","isCurrent":false,"billingCycle":"Monthly"}...
data.cycles[].billingCycle string · enum required · Example: Monthly
Annually
Monthly
data.cycles[].id string required · Example: m
data.cycles[].isCurrent boolean required · Example: false
data.cycles[].name string required · Example: Monthly
data.cycles[].price string · enum required · Example: 79.00
374.00
39.00
708.00
79.00
data.productId string required · Example: 1912
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).

GET https://cloud.hostup.se/api/hosting/{accountId}/billing-cycle
For AI assistants
cURL
curl -X GET "https://cloud.hostup.se/api/hosting/20000/billing-cycle" \
  -H "X-API-Key: YOUR_API_KEY" \
  -H "Content-Type: application/json"
Response
{
  "success": true,
  "timestamp": "2026-02-10T00:00:00.000Z",
  "requestId": "2121ae20-bd9d-41e9-aeeb-5dd1dd1a24ba",
  "data": {
    "current": "a",
    "currentName": "Annually",
    "cycles": [
      {
        "id": "m",
        "name": "Monthly",
        "price": "79.00",
        "isCurrent": false,
        "billingCycle": "Monthly"
      },
      {
        "id": "a",
        "name": "Annually",
        "price": "708.00",
        "isCurrent": true,
        "billingCycle": "Annually"
      }
    ],
    "productId": "1912",
    "accountId": "20000",
    "accountDetails": {
      "domain": "example.com",
      "name": "Start (cpanel)",
      "total": "708.00"
    }
  }
}