Skip to content
Docs

    List Organization Billing History

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

    List the organization’s billing history: prepaid credits, top-ups, and manual adjustments, newest first. Paginated with an opaque cursor.

    Path ParametersExpand Collapse
    organization_id: string
    Query ParametersExpand Collapse
    cursor: optional string

    Pagination cursor returned by a previous request

    limit: optional number

    Maximum number of items to return

    maximum100
    minimum10
    ReturnsExpand Collapse
    BillingHistoryEntryList object { items, pagination }
    items: array of BillingHistoryEntry { id, amount, created_at, 5 more }
    id: string

    Unique identifier for the entry.

    amount: string

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

    formatdecimal
    created_at: string

    When the entry was recorded.

    formatdate-time
    currency: string

    ISO 4217 currency code.

    Kind of entry.

    One of the following:
    "grant"
    "adjustment"
    description: optional string

    Human-readable note describing the entry, when available.

    funding_purpose: optional "first_charge" or "auto_recharge" or "manual_top_up" or "manual_recharge"

    Funding flow that produced this entry, for a grant: “first_charge”, “auto_recharge”, “manual_top_up”, or “manual_recharge”. Null for adjustments.

    One of the following:
    "first_charge"
    "auto_recharge"
    "manual_top_up"
    "manual_recharge"
    receipt_url: optional string

    Link to the hosted receipt for the payment behind this entry, when one is available. Present for prepaid credits funded by a card charge; absent for manual adjustments and while a payment’s receipt is still being finalized.

    List Organization Billing History

    curl https://api.nirvanalabs.io/v1/organizations/$ORGANIZATION_ID/billing/history \
        -H "Authorization: Bearer $NIRVANA_LABS_API_KEY"
    {
      "items": [
        {
          "id": "123e4567-e89b-12d3-a456-426614174000",
          "amount": "-69125",
          "created_at": "2025-01-01T00:00:00Z",
          "currency": "USD",
          "type": "grant",
          "description": "Refund adjustment",
          "funding_purpose": "auto_recharge",
          "receipt_url": "https://pay.stripe.com/receipts/..."
        }
      ],
      "pagination": {
        "next_cursor": "RhwniMT4B74siYZcPF8TnCdGI1l9rpPvg",
        "previous_cursor": "ARhwnmi1hA7wEbHbMjdYQlOB_ZusP4fYvw",
        "total_count": 125
      }
    }
    Returns Examples
    {
      "items": [
        {
          "id": "123e4567-e89b-12d3-a456-426614174000",
          "amount": "-69125",
          "created_at": "2025-01-01T00:00:00Z",
          "currency": "USD",
          "type": "grant",
          "description": "Refund adjustment",
          "funding_purpose": "auto_recharge",
          "receipt_url": "https://pay.stripe.com/receipts/..."
        }
      ],
      "pagination": {
        "next_cursor": "RhwniMT4B74siYZcPF8TnCdGI1l9rpPvg",
        "previous_cursor": "ARhwnmi1hA7wEbHbMjdYQlOB_ZusP4fYvw",
        "total_count": 125
      }
    }