Skip to content
Docs

    Re-trigger Organization Prepaid Recharge

    $ nirvana organizations:billing recharge
    POST/v1/organizations/{organization_id}/billing/recharge

    Charge the card on file up to the recharge target now instead of waiting for the scheduled retry. Automatic-policy prepaid organizations only. Idempotency-Key header required.

    ParametersExpand Collapse
    --organization-id: string

    Organization ID

    --idempotency-key: string

    Idempotency key scoping one charge attempt; reuse to retry it, but use a fresh key for a new attempt (e.g. after updating a declined card)

    ReturnsExpand Collapse
    organization_billing_summary: object { daily_cost, effective_balance, monthly_cost, 3 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”).

    effective_balance: string

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

    monthly_cost: string

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

    recharge_threshold_days: string

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

    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).

    runway_months: optional string

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

    Re-trigger Organization Prepaid Recharge

    nirvana organizations:billing recharge \
      --api-key 'My API Key' \
      --organization-id organization_id \
      --idempotency-key Idempotency-Key
    {
      "daily_cost": "-69125",
      "effective_balance": "-69125",
      "monthly_cost": "-69125",
      "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",
      "recharge_threshold_days": "-69125",
      "estimated_next_charge_at": "2025-01-01T00:00:00Z",
      "runway_months": "-69125"
    }