Get billing cycle for a specific VM

Retrieve information about available billing cycles for a specific Virtual Machine (VM). This returns data including the current billing cycle and a list of all possible cycles with their prices. It also returns IDs that may be needed for follow-up API calls, such as product and account IDs.

Path Parameters

vmid integer · min: 1 required Example

Unique vmid identifier

Headers

Accept Example
Content-Type Example

Responses

200
success boolean
timestamp string
requestId string
data object
400
error string
message string
code string
timestamp string
requestId string
existing_invoice boolean
order_id string
order_number string
invoice_id string
invoice_status string
total string
date_created string
401
error string
message string
code string
timestamp string
requestId string
429
error string
message string
retryAfter string
requestId string
GET https://cloud.hostup.se/api/vm/{vmid}/billing-cycle
For AI assistants
cURL
curl -X GET "https://cloud.hostup.se/api/vm/16424/billing-cycle" \
  -H "X-API-Key: YOUR_API_KEY" \
  -H "Content-Type: application/json"
Response
{
  "success": true,
  "timestamp": "string",
  "requestId": "string",
  "data": {
    "current": "string",
    "currentName": "string",
    "cycles": [
      {
        "id": "string",
        "name": "string",
        "price": "string",
        "isCurrent": true,
        "billingCycle": "string"
      }
    ],
    "productId": "string",
    "accountId": "string"
  }
}