Skip to content

Get billing account state and month-to-date estimate

  • Method: GET
  • Path: /v1/orgs/{org}/billing
  • Operation ID: getBilling
  • Tag: Billing

Send Authorization: Bearer <credential>. The credential is either an API key (vsk_…) created for an organization, or an OIDC access token obtained by signing in to VirtScale.

Name Type Required Description
org string (uuid) Yes The organization’s id.
Field Type Required Enum Description
billing_exempt boolean Yes
current_period_end string (date-time), nullable No
month_to_date MonthToDateOut Yes
month_to_date.egress_gb string Yes
month_to_date.estimated_cents integer Yes
month_to_date.storage_gb_month string Yes
plan BillingPlanOut, nullable No
plan.display_name string Yes
plan.slug string Yes
prices array of BillingPriceOut Yes
prices.meter string Yes
prices.unit string Yes
prices.unit_amount_micro_eur integer Yes
spend_budget_cents integer, nullable No
state string Yes

Every error response is application/problem+json (schema Problem).

Status Meaning
401 The credential is missing or invalid.
404 The resource does not exist.
default Any other status is possible; the code field identifies the error.
curl "https://api.virtscale.nl/v1/orgs/$ORG_ID/billing" \
  -H "Authorization: Bearer $VIRTSCALE_API_KEY"