---
title: "Get organization active credit balances"
method: GET
path: "/v1/organizations/{organizationId}/creditBalances"
tags: ["Billing"]
---

# Get organization active credit balances

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

## Request

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

**Disclaimer:** This beta endpoint is evolving; the API contract may change. <br /><br /> Returns the active credit balances for the organization, each with its own balance ID, type and remaining credits, along with the total remaining credits across all of them. A balance is active when it has started, has not expired, and has credits remaining. Balances are ordered by expiration date, soonest first. The list is always present and is empty when the organization has no active balances.

## Path parameters

- `organizationId` string, uuid, required

## Response `200`

Successful response

- object
  - `status` number: HTTP status code.
  - `requestId` string, uuid: Unique id assigned to every request. UUIDv4
  - `result` CreditBalances
    - `totalRemainingCredits` number: Total remaining credits across all active balances, in ClickHouse Credits (CHCs).
    - `balances` CreditBalance[]: List of active balances for the organization. Empty when the organization has none.
      - `id` string, uuid: Unique ID of the balance.
      - `type` 'prepaid' | 'trial': Type of the balance.
      - `remainingCredits` 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)
