Skip to content
ClickHouse Docs
ClickHouse DocsClickHouse Docs

Get organization active prepaid balances

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

DEPRECATED. Use the /v1/organizations/{organizationId}/creditBalances endpoint instead.

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.

Authorizations

Path parameters

  • organizationIdstringrequired

    ID of the requested organization.

    format: uuid

Query parameters

  • limitoptionalinteger

    Maximum number of results to return.

    maximum: 100, minimum: 1
    Default: 100
  • offsetoptionalinteger

    Number of results to skip before returning.

    minimum: 0
    Default: 0

Response

JSON

200

Successful response

JSON
  • statusoptionalnumber

    HTTP status code.

    Example: 200
  • requestIdoptionalstring

    Unique id assigned to every request. UUIDv4

    format: uuid
  • resultoptionalobject
    2 properties
    • totalRemainingPrepaidCreditsoptionalnumber

      Total remaining credits across all active prepaid balances, in ClickHouse Credits (CHCs).

    • prepaidBalancesoptionalarray ofobject

      List of active prepaid balances for the organization.

      6 properties
      • idoptionalstring

        Unique ID of the prepaid balance.

        format: uuid
      • remainingPrepaidCreditsoptionalnumber

        Remaining credits available on this balance, in ClickHouse Credits (CHCs).

      • totalAmountoptionalnumber

        Total credits granted on this balance, in ClickHouse Credits (CHCs).

      • amountSpentoptionalnumber

        Credits spent from this balance, in ClickHouse Credits (CHCs).

      • startDateoptionalstring

        Date the balance became active. ISO-8601, based on the UTC timezone.

        format: date-time
      • expirationDateoptionalstring

        Date the balance expires. ISO-8601, based on the UTC timezone.

        format: date-time
Navigation