Get PAYG VPS billing estimate

Return a per-VPS max-24/7 monthly billing estimate for a pay-as-you-go Cloud VPS. Get {id} from GET /api/v2/vps data[].id, then call this only when billing.isPayg: true. The estimate includes CPU, RAM, disk, and IPv4 line items. It does not include account-level current-period actuals; use GET /api/v2/billing/metered-usage for current-period PAYG charges across all PAYG services.

Cloud VPS Cloud VPS

Authentication

Required API scope: read:billing

Use Authorization: Bearer <token> for API keys. Dashboard sessions may also use hostup_session.

Context

Path Parameters

id string required Example: vps_01hxa3b4c5d6e7f8g9h0j1k2m3

Public VPS ID. Get it from GET /api/v2/vps `data[].id`. Do not invent this value; use the exact ID returned by the referenced API response.

Headers

Accept Example
Content-Type Example

Responses

200 PAYG billing estimate, or an unavailable response for fixed-cycle VPS.
estimate object required
estimate.basis string · enum required · Example: max_24_7
max_24_7
estimate.currencyCode string required · Example: SEK
estimate.estimatedMonthlyAmount number required · Example: 223.2
estimate.period object required
estimate.period.startAt string required · Example: 2026-06-01T00:00:00.000Z
estimate.period.endAt string required · Example: 2026-07-01T00:00:00.000Z
estimate.lineItems array<object> required
estimate.lineItems[].type string · enum required · Example: cpu
cpu
memory
storage
ipv4
estimate.lineItems[].label string required · Example: CPU
estimate.lineItems[].quantity number required · Example: 2
estimate.lineItems[].ratePerCoreHour number · Example: 0.015
estimate.lineItems[].ratePerGbHour number · Example: 0.004
estimate.lineItems[].ratePerHour number · Example: 0.015
estimate.lineItems[].estimatedAmount number required · Example: 21.6
actualsAvailable boolean · enum required · Example: false
actualsNote string required · Example: Pay-as-you-go usage is billed at the account level. See /api/v2/billing/metered-usage f...
400 Invalid request. The response body is an RFC 7807 Problem Details document.
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
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
404 Not found. The resource does not exist or is not owned by the caller.
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/vps/{id}/billing-breakdown
For AI assistants
View as Markdown
cURL
curl -X GET "https://cloud.hostup.se/api/v2/vps/vps_01hxa3b4c5d6e7f8g9h0j1k2m3/billing-breakdown" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Accept: application/json"
Response
{
  "estimate": {
    "basis": "max_24_7",
    "currencyCode": "SEK",
    "estimatedMonthlyAmount": 223.2,
    "period": {
      "startAt": "2026-06-01T00:00:00.000Z",
      "endAt": "2026-07-01T00:00:00.000Z"
    },
    "lineItems": [
      {
        "type": "cpu",
        "label": "CPU",
        "ratePerCoreHour": 0.1,
        "quantity": 2,
        "estimatedAmount": 144
      },
      {
        "type": "memory",
        "label": "RAM",
        "ratePerGbHour": 0.01,
        "quantity": 4,
        "estimatedAmount": 28.8
      },
      {
        "type": "storage",
        "label": "Disk",
        "ratePerGbHour": 0.001,
        "quantity": 50,
        "estimatedAmount": 36
      },
      {
        "type": "ipv4",
        "label": "IPv4",
        "ratePerHour": 0.02,
        "quantity": 1,
        "estimatedAmount": 14.4
      }
    ]
  },
  "actualsAvailable": false,
  "actualsNote": "Pay-as-you-go usage is billed at the account level. See /api/v2/billing/metered-usage for current-period charges across all PAYG services."
}