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

# List balance transactions

> The organization's balance history: every movement of its balance (usage, credit added or granted, expiry, refunds and disputes), newest first, with optional filters.

Minimum role required: Viewer


## OpenAPI

````yaml /api-reference/openapi-backend.json get /billing/balance/transactions
openapi: 3.1.0
info:
  description: Axilio backend HTTP API.
  title: Axilio API
  version: 0.155.0
servers:
  - url: https://api.axilio.ai/api/v1
    description: Production
security: []
tags:
  - name: Agents
  - name: API Keys
  - name: Billing
  - name: Conversations
  - name: Files
  - name: Messages
  - name: Models
  - name: Organization
  - name: Phones
  - name: Runs
  - name: Sessions
  - name: Skill
  - name: Usage
  - name: Webhooks
paths:
  /billing/balance/transactions:
    get:
      tags:
        - Billing
      summary: List balance transactions
      description: >-
        The organization's balance history: every movement of its balance
        (usage, credit added or granted, expiry, refunds and disputes), newest
        first, with optional filters.
      operationId: billing_list_balance_transactions
      parameters:
        - description: max items per page
          explode: false
          in: query
          name: limit
          schema:
            default: 50
            description: max items per page
            format: int64
            maximum: 100
            minimum: 1
            type: integer
        - description: pagination offset
          explode: false
          in: query
          name: offset
          schema:
            default: 0
            description: pagination offset
            format: int64
            minimum: 0
            type: integer
        - description: Only transactions of one of these types; repeatable.
          explode: true
          in: query
          name: type
          schema:
            description: Only transactions of one of these types; repeatable.
            items:
              enum:
                - opening_balance
                - unrecorded
                - deposit
                - usage
                - plan_grant
                - plan_lapse
                - expiry
                - adjustment
                - refund_reversal
                - dispute_reversal
                - dispute_reinstated
                - refund_failed
              type: string
            type:
              - array
              - 'null'
        - description: only transactions at/after this time (RFC 3339)
          explode: false
          in: query
          name: created_after
          schema:
            description: only transactions at/after this time (RFC 3339)
            format: date-time
            type: string
        - description: only transactions at/before this time (RFC 3339)
          explode: false
          in: query
          name: created_before
          schema:
            description: only transactions at/before this time (RFC 3339)
            format: date-time
            type: string
        - description: >-
            Sort expression 'created_at [asc|desc]', direction defaulting to
            desc.
          explode: false
          in: query
          name: order_by
          schema:
            default: created_at desc
            description: >-
              Sort expression 'created_at [asc|desc]', direction defaulting to
              desc.
            pattern: ^created_at( (asc|desc))?$
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SubscriptionBalanceTransactionsResponse'
          description: OK
        '422':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/V2ErrorModel'
          description: Unprocessable Entity
        '500':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/V2ErrorModel'
          description: Internal Server Error
      security:
        - apiKeyAuth: []
components:
  schemas:
    SubscriptionBalanceTransactionsResponse:
      additionalProperties: false
      description: >-
        One page of balance transactions, using the API's standard list envelope
        (items, total, limit, offset).
      properties:
        items:
          description: Page of balance transactions.
          items:
            $ref: '#/components/schemas/SubscriptionBalanceTransaction'
          type:
            - array
            - 'null'
        limit:
          description: Page size used for this response.
          format: int64
          type: integer
        offset:
          description: Pagination offset used for this response.
          format: int64
          type: integer
        total:
          description: Total number of transactions matching the query.
          format: int64
          type: integer
      required:
        - items
        - total
        - limit
        - offset
      type: object
    V2ErrorModel:
      additionalProperties: false
      description: >-
        Error response, following RFC 9457 (Problem Details for HTTP APIs).
        Returned with a application/problem+json content type.
      properties:
        detail:
          description: >-
            A human-readable explanation specific to this occurrence of the
            problem.
          examples:
            - Property foo is required but is missing.
          type: string
        errors:
          description: Optional list of individual error details
          items:
            $ref: '#/components/schemas/V2ErrorDetail'
          type:
            - array
            - 'null'
        instance:
          description: >-
            A URI reference that identifies the specific occurrence of the
            problem.
          examples:
            - https://example.com/error-log/abc123
          format: uri
          type: string
        status:
          description: HTTP status code
          examples:
            - 400
          format: int64
          type: integer
        title:
          description: >-
            A short, human-readable summary of the problem type. This value
            should not change between occurrences of the error.
          examples:
            - Bad Request
          type: string
        type:
          default: about:blank
          description: A URI reference to human-readable documentation for the error.
          examples:
            - https://example.com/errors/example
          format: uri
          type: string
      type: object
    SubscriptionBalanceTransaction:
      additionalProperties: false
      description: One movement of the organization's balance.
      properties:
        amount_display:
          description: Formatted change (e.g., '-$1.50').
          type: string
        amount_microdollars:
          description: >-
            Signed change in microdollars (1_000_000 = $1.00); negative takes
            from the balance.
          format: int64
          type: integer
        balance_after_microdollars:
          description: Balance in microdollars right after this transaction.
          format: int64
          type: integer
        created_at:
          description: When the balance moved.
          format: date-time
          type: string
        description:
          description: Plain-English description of the transaction.
          type: string
        id:
          description: Transaction id.
          type: string
        source_id:
          description: The session or inference id a usage charge billed.
          type: string
        source_type:
          description: 'What a usage charge billed: a session or an inference.'
          enum:
            - session
            - inference
          type: string
        type:
          description: >-
            What moved the balance: opening_balance (the balance when the
            history began), unrecorded (a correction), deposit (purchased credit
            added), usage (a session or inference charge), plan_grant (plan
            credit granted), plan_lapse (unused plan credit lapsed at renewal),
            expiry (purchased credit expired), adjustment (a manual adjustment),
            refund_reversal (credit taken back after a refund), dispute_reversal
            (credit taken back after a dispute), dispute_reinstated (credit
            restored after a won dispute), refund_failed (credit restored after
            a refund failed).
          enum:
            - opening_balance
            - unrecorded
            - deposit
            - usage
            - plan_grant
            - plan_lapse
            - expiry
            - adjustment
            - refund_reversal
            - dispute_reversal
            - dispute_reinstated
            - refund_failed
          type: string
      required:
        - id
        - type
        - amount_microdollars
        - amount_display
        - balance_after_microdollars
        - description
        - created_at
      type: object
    V2ErrorDetail:
      additionalProperties: false
      description: >-
        One specific problem within an error response, locating the offending
        part of the request.
      properties:
        location:
          description: >-
            Where the error occurred, e.g. 'body.items[3].tags' or
            'path.thing-id'
          type: string
        message:
          description: Error message text
          type: string
        value:
          description: The value at the given location
      type: object
  securitySchemes:
    apiKeyAuth:
      description: Customer API key (axl_ prefix).
      in: header
      name: X-Axilio-Api-Key
      type: apiKey

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.