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.
vmid integer · min: 1 required Example Unique vmid identifier
Accept Example Content-Type Example success boolean timestamp string requestId string data object 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 error string message string code string timestamp string requestId string error string message string retryAfter string requestId string https://cloud.hostup.se/api/vm/{vmid}/billing-cycle curl -X GET "https://cloud.hostup.se/api/vm/16424/billing-cycle" \
-H "X-API-Key: YOUR_API_KEY" \
-H "Content-Type: application/json" {
"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"
}
}