# Get balance history (/docs/api-reference/account/getBalanceHistory)

> Every change to your organization's balance, newest first: each call charge, recharge, phone number purchase or renewal, subscription credit, reward and adjustment, with the signed amount and the balance right after it.

**GET** `/account/balance/history`

Every change to your organization's balance, newest first: each call
charge, recharge, phone number purchase or renewal, subscription
credit, reward and adjustment, with the signed amount and the balance
right after it.

Use it to find out where credit went, or when a top-up landed. The
dashboard's usage statement shows the same entries as totals per day
and per kind.

Days are in your account's time zone. Without dates you get the last 31
days; a range covers at most 31 days. The API key's user needs Billing
access in your organization.

```yaml
operationId: getBalanceHistory
parameters:
  - name: date_from
    in: query
    schema:
      type: string
      format: date
      example: '2026-11-01'
    description: First day (`YYYY-MM-DD`). Defaults to 30 days before `date_to`.
  - name: date_to
    in: query
    schema:
      type: string
      format: date
      example: '2026-11-27'
    description: Last day (`YYYY-MM-DD`), included. Defaults to today.
  - name: pageno
    in: query
    schema:
      type: integer
      default: 1
      minimum: 1
      maximum: 10000
    description: Page number.
  - name: pagesize
    in: query
    schema:
      type: integer
      default: 50
      minimum: 1
      maximum: 150
    description: Entries per page.
responses:
  '200':
    description: One page of balance entries.
    content:
      application/json:
        schema:
          type: object
          properties:
            entries:
              type: array
              items:
                type: object
                properties:
                  date:
                    type: string
                    format: date-time
                  amount_usd:
                    type: number
                    description: Signed change in USD. Negative for charges, positive for credits.
                  balance_after_usd:
                    type: number
                    description: Your balance in USD right after this entry.
                  kind:
                    type: string
                    description: >-
                      What the entry was, such as `call_cost`, `recharge`, `did_purchase`,
                      `did_renewal`, `subscription`, `credit_transfer`, `referral_reward`,
                      `whatsapp_message` or `adjustment`. New values may be added.
                    example: call_cost
                  label:
                    type: string
                    description: The kind in words.
                    example: Call Cost
            total_records:
              type: integer
            date_from:
              type: string
              format: date
            date_to:
              type: string
              format: date
            time_zone:
              type: string
        example:
          entries:
            - date: '2026-11-26T10:15:02Z'
              amount_usd: -0.21
              balance_after_usd: 42.29
              kind: call_cost
              label: Call Cost
            - date: '2026-11-25T08:00:00Z'
              amount_usd: 25
              balance_after_usd: 42.5
              kind: recharge
              label: Recharge / Credit
          total_records: 2
          date_from: '2026-10-28'
          date_to: '2026-11-27'
          time_zone: Asia/Kolkata
  '400':
    description: A bad date, a range over 31 days, or a page out of range.
    content:
      application/json:
        schema:
          type: object
          properties:
            error:
              type: string
              description: Machine-readable error code.
            error_description:
              type: string
              description: Human-readable explanation.
            code:
              type: string
              description: |
                Stable, specific reason. Present on the newer endpoints (Voice
                cloning, WhatsApp); older endpoints return only `error`.
            request_id:
              type: string
              description: |
                Correlates this response with the server log. Present alongside
                `code`. Also sent as the `X-Request-Id` header.
        example:
          error: invalid_request
          error_description: the range covers at most 31 days
  '401':
    description: Missing or invalid API key.
    content:
      application/json:
        schema:
          type: object
          properties:
            error:
              type: string
              description: Machine-readable error code.
            error_description:
              type: string
              description: Human-readable explanation.
            code:
              type: string
              description: |
                Stable, specific reason. Present on the newer endpoints (Voice
                cloning, WhatsApp); older endpoints return only `error`.
            request_id:
              type: string
              description: |
                Correlates this response with the server log. Present alongside
                `code`. Also sent as the `X-Request-Id` header.
        example:
          error: unauthorized
          error_description: Missing or invalid API key
  '403':
    description: |
      The API key's user does not have Billing access. If Billing is
      enabled for your organization, an administrator can grant it; if it
      is not, contact support.
    content:
      application/json:
        schema:
          type: object
          properties:
            error:
              type: string
              description: Machine-readable error code.
            error_description:
              type: string
              description: Human-readable explanation.
            code:
              type: string
              description: |
                Stable, specific reason. Present on the newer endpoints (Voice
                cloning, WhatsApp); older endpoints return only `error`.
            request_id:
              type: string
              description: |
                Correlates this response with the server log. Present alongside
                `code`. Also sent as the `X-Request-Id` header.
        example:
          error: forbidden
          error_description: >-
            You do not have access to Billing. If Billing is enabled for your organization, an
            administrator can grant it.
```

**curl**

```bash
curl -X GET "https://omnidim.io/api/v1/account/balance/history?date_from=2026-11-01&date_to=2026-11-27" \
  -H "Authorization: Bearer $OMNIDIM_API_KEY"
```