Billing

Get organization active prepaid balances

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.

get/v1/organizations/{organizationId}/activeBalances

Request

  • Base URL
    https://api.clickhouse.cloud
  • Auth
    HTTP basic

Path parameters

organizationId, string uuid required

ID of the requested organization.

Query parameters

limit, integer

Maximum number of results to return.

offset, integer

Number of results to skip before returning.

Response

Successful response

object required
status, number

HTTP status code.

requestId, string uuid

Unique id assigned to every request. UUIDv4

result, ActiveBalances

Example response

{
  "status": 200,
  "result": {
    "prepaidBalances": [
      {
        "startDate": "2026-03-01T00:00:00Z",
        "expirationDate": "2027-03-01T00:00:00Z"
      }
    ]
  }
}

Changes

No recorded changes to this operation across all 35 revisions of this API.