---
title: "Get organization active prepaid balances"
method: GET
path: "/v1/organizations/{organizationId}/activeBalances"
tags: ["Billing"]
deprecated: true
---

# Get organization active prepaid balances

`GET /v1/organizations/{organizationId}/activeBalances`

## Request

- Base URL: `https://api.clickhouse.cloud`
- URL: `https://api.clickhouse.cloud/v1/organizations/{organizationId}/activeBalances`
- Auth: HTTP basic

> **Deprecated.**

DEPRECATED. Use the `/v1/organizations/{organizationId}/creditBalances` endpoint instead. <br /><br /> Returns the active prepaid credit balances for the organization, each with its own balance ID and remaining credits, along with the total remaining credits across all active balances. A balance is active when it has started, has not expired, and has credits remaining. Balances are ordered by expiration date, soonest first, and the returned page is capped at `limit` (default and maximum 100). When `totalCount` exceeds the number of returned balances, page with `limit`/`offset` to retrieve them all. `totalRemainingPrepaidCredits` always covers every active balance, not just the returned page.

## Path parameters

- `organizationId` string, uuid, required

## Query parameters

- `limit` integer
- `offset` integer

## Response `200`

Successful response

- object
  - `status` number: HTTP status code.
  - `requestId` string, uuid: Unique id assigned to every request. UUIDv4
  - `result` ActiveBalances
    - `totalRemainingPrepaidCredits` number: Total remaining credits across all active prepaid balances, in ClickHouse Credits (CHCs).
    - `prepaidBalances` ActiveBalance[]: List of active prepaid balances for the organization.
      - `id` string, uuid: Unique ID of the prepaid balance.
      - `remainingPrepaidCredits` number: Remaining credits available on this balance, in ClickHouse Credits (CHCs).
      - `totalAmount` number: Total credits granted on this balance, in ClickHouse Credits (CHCs).
      - `amountSpent` number: Credits spent from this balance, in ClickHouse Credits (CHCs).
      - `startDate` string, date-time: Date the balance became active. ISO-8601, based on the UTC timezone.
      - `expirationDate` string, date-time: Date the balance expires. ISO-8601, based on the UTC timezone.

## Other responses

- `400`: The request cannot be processed due to a client error. Please verify your request parameters and try again.
- `500`: An internal server error has occurred. If this issue persists, please contact ClickHouse Cloud support for assistance.

---

[API](https://skmtc.dev/clickhouse/apis/openapi-spec-for-clickhouse-cloud.md) - [All operations](https://skmtc.dev/clickhouse/apis/openapi-spec-for-clickhouse-cloud/llms.txt) - [OpenAPI document](https://skmtc.dev/clickhouse/apis/openapi-spec-for-clickhouse-cloud/revisions/eac345053548?raw)
