Skip to content
ClickHouse Docs
ClickHouse DocsClickHouse Docs

Get organization active credit balances

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

Disclaimer: This beta endpoint is evolving; the API contract may change.

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.

Authorizations

Path parameters

  • organizationIdstringrequired

    ID of the requested organization.

    format: uuid

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
    • totalRemainingCreditsoptionalnumber

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

    • balancesoptionalarray ofobject

      List of active balances for the organization. Empty when the organization has none.

      7 properties
      • idoptionalstring

        Unique ID of the balance.

        format: uuid
      • typeoptionalprepaidortrial

        Type of the balance.

      • remainingCreditsoptionalnumber

        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