Skip to content
DocsOpenAPI spec

    Get Organization Billing Summary

    GET/v1/organizations/{organization_id}/billing/summary

    Get the organization’s billing summary: effective balance, monthly and daily run-rate cost, runway, and the projected next-recharge date. Costs are run-rate projections.

    Path ParametersExpand Collapse
    organization_id: string
    ReturnsExpand Collapse
    OrganizationBillingSummary object { daily_cost, effective_balance, monthly_cost, 4 more }

    Forward-looking billing summary for an organization. All costs are run-rate projections from the organization’s current active usage (”≈ $X/mo at current usage”).

    daily_cost: string

    Arbitrary-precision decimal serialized as a string (e.g. “58.40”).

    formatdecimal
    effective_balance: string

    Arbitrary-precision decimal serialized as a string (e.g. “58.40”).

    formatdecimal
    monthly_cost: string

    Arbitrary-precision decimal serialized as a string (e.g. “58.40”).

    formatdecimal
    promotional_credits: array of object { amount, kind, status }

    Credits the organization earns automatically through the startup credits program, one per step. Empty when the organization is not part of the program.

    amount: string

    Arbitrary-precision decimal serialized as a string (e.g. “58.40”).

    formatdecimal
    kind: "organization_created" or "payment_method_added"

    Step that earns the credit: creating the organization, or saving a payment method on it.

    One of the following:
    "organization_created"
    "payment_method_added"
    status: "available" or "pending" or "granted"

    Whether the credit can still be earned (“available”), was earned and is being issued (“pending”), or was issued (“granted”). A granted credit reaches the balance shortly after it is issued.

    One of the following:
    "available"
    "pending"
    "granted"
    recharge_threshold_days: string

    Arbitrary-precision decimal serialized as a string (e.g. “58.40”).

    formatdecimal
    estimated_next_charge_at: optional string

    Projected date the balance reaches the recharge threshold at the current run-rate. Null when there is no active usage (never charges).

    formatdate-time
    runway_months: optional string

    Arbitrary-precision decimal serialized as a string (e.g. “58.40”).

    formatdecimal

    Get Organization Billing Summary

    curl https://api.nirvanalabs.io/v1/organizations/$ORGANIZATION_ID/billing/summary \
        -H "Authorization: Bearer $NIRVANA_LABS_API_KEY"
    {
      "daily_cost": "-69125",
      "effective_balance": "-69125",
      "monthly_cost": "-69125",
      "promotional_credits": [
        {
          "amount": "-69125",
          "kind": "payment_method_added",
          "status": "available"
        }
      ],
      "recharge_threshold_days": "-69125",
      "estimated_next_charge_at": "2025-01-01T00:00:00Z",
      "runway_months": "-69125"
    }
    Returns Examples
    {
      "daily_cost": "-69125",
      "effective_balance": "-69125",
      "monthly_cost": "-69125",
      "promotional_credits": [
        {
          "amount": "-69125",
          "kind": "payment_method_added",
          "status": "available"
        }
      ],
      "recharge_threshold_days": "-69125",
      "estimated_next_charge_at": "2025-01-01T00:00:00Z",
      "runway_months": "-69125"
    }