> ## Documentation Index
> Fetch the complete documentation index at: https://docs.creem.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Get account balance

> Get the current balance of an account. Optionally pass ?at= for historical balance.



## OpenAPI

````yaml get /v1/customer-credits/accounts/{id}/balance
openapi: 3.0.0
info:
  title: Creem API
  description: >-
    Creem is an all-in-one platform for managing subscriptions and recurring
    revenue, tailored specifically for today's SaaS companies. It enables you to
    boost revenue, enhance customer retention, and scale your operations
    seamlessly.
  version: v1
  contact:
    name: Creem Support
    url: https://creem.io
    email: support@creem.io
  license:
    name: Commercial
    url: https://creem.io/terms
  termsOfService: https://creem.io/terms
servers:
  - url: https://api.creem.io
    description: Production — live API for processing real transactions and data.
    x-speakeasy-server-id: prod
  - url: https://test-api.creem.io
    description: Test — sandbox API for development and testing with no real charges.
    x-speakeasy-server-id: test
security: []
tags: []
externalDocs:
  description: Creem Documentation
  url: https://docs.creem.io
paths:
  /v1/customer-credits/accounts/{id}/balance:
    get:
      tags:
        - Customer Credits - Accounts (Experimental)
      summary: Get account balance
      description: >-
        Get the current balance of an account. Optionally pass ?at= for
        historical balance.
      operationId: getCustomerCreditsAccountBalance
      parameters:
        - name: id
          required: true
          in: path
          schema:
            type: string
        - name: at
          required: false
          in: query
          description: >-
            ISO 8601 date. If present, computes balance at that point in time.
            If absent, returns O(1) projected balance.
          schema:
            example: '2024-01-15T00:00:00.000Z'
            type: string
      responses:
        '200':
          description: Account balance
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BalanceResponseDto'
        '400':
          description: Bad Request - Invalid input parameters
        '401':
          description: Unauthorized - Invalid or missing API key
        '404':
          description: Not Found - Resource does not exist
      security:
        - ApiKey: []
components:
  schemas:
    BalanceResponseDto:
      type: object
      properties:
        balance:
          type: string
          description: Current balance as string for bigint safety
          example: '5000'
        updated_at:
          type: string
          description: Last update timestamp (present for projected balance)
        as_of:
          type: string
          description: >-
            Point-in-time the balance was computed at (present for at-time
            queries)
      required:
        - balance
  securitySchemes:
    ApiKey:
      type: apiKey
      in: header
      name: x-api-key
      description: >-
        API key for authentication. You can find your API key in the Creem
        dashboard under Settings > API Keys.

````