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

# Get bank account balance

> Returns the bank statement balance and ledger balance for a bank account as of the given date. If `asOf` is omitted, today's balance is returned. The bank balance is derived from the opening balance plus all bank transactions on or before `asOf`; the ledger balance is the sum of ledger transaction lines posted on or before `asOf` for the linked ledger account.



## OpenAPI

````yaml /openapi-public.json get /v1/bank-accounts/{bankAccountId}/balance
openapi: 3.0.1
info:
  title: Light API
  version: 1.0.0
servers: []
security:
  - apiKeyAuth: []
  - bearerAuth: []
paths:
  /v1/bank-accounts/{bankAccountId}/balance:
    get:
      tags:
        - v1 - Bank Accounts
      summary: Get bank account balance
      description: >-
        Returns the bank statement balance and ledger balance for a bank account
        as of the given date. If `asOf` is omitted, today's balance is returned.
        The bank balance is derived from the opening balance plus all bank
        transactions on or before `asOf`; the ledger balance is the sum of
        ledger transaction lines posted on or before `asOf` for the linked
        ledger account.
      operationId: getBankAccountBalance
      parameters:
        - name: bankAccountId
          in: path
          required: true
          schema:
            type: string
            format: uuid
        - name: asOf
          in: query
          description: >-
            Date the balance is computed for (ISO-8601, e.g. `2026-05-07`).
            Defaults to today.
          schema:
            $ref: '#/components/schemas/LocalDateParam'
      responses:
        default:
          description: default response
          content:
            application/json;charset=UTF-8:
              schema:
                $ref: '#/components/schemas/ExternalBankAccountBalanceAsOfV1Model'
components:
  schemas:
    LocalDateParam:
      type: object
    ExternalBankAccountBalanceAsOfV1Model:
      type: object
      properties:
        bankAccountId:
          type: string
          description: ID of the bank account
          format: uuid
        currency:
          type: string
          description: Currency of the bank account (ISO 4217)
        bankBalance:
          type: integer
          description: >-
            Bank statement balance in minor units (e.g. cents). Computed from
            the opening balance plus all bank transactions on or before `asOf`.
            Null if no opening balance has been set for this bank account.
          format: int64
          nullable: true
        ledgerBalance:
          type: integer
          description: >-
            Ledger balance in minor units (e.g. cents). Computed from all ledger
            transaction lines posted on or before `asOf` for the bank account's
            ledger account.
          format: int64
        asOf:
          type: string
          description: Date the balance is computed for
          format: date
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      description: >-
        Basic authentication header of the form **Basic** **<api_key>**, where
        **<api_key>** is your api key.
      name: Authorization
      in: header
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````