> ## 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.

# Get balance statement

> The organization's balance over a period, like a bank statement: the starting balance, credit added, what each product used, credit taken back by refunds and chargebacks, credit that expired, and the ending balance.

Minimum role required: Viewer


## OpenAPI

````yaml /api-reference/openapi-backend.json get /billing/balance/statement
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/statement:
    get:
      tags:
        - Billing
      summary: Get balance statement
      description: >-
        The organization's balance over a period, like a bank statement: the
        starting balance, credit added, what each product used, credit taken
        back by refunds and chargebacks, credit that expired, and the ending
        balance.
      operationId: billing_get_balance_statement
      parameters:
        - description: start of the period (RFC 3339)
          explode: false
          in: query
          name: period_start_at
          required: true
          schema:
            description: start of the period (RFC 3339)
            format: date-time
            type: string
        - description: end of the period, exclusive (RFC 3339)
          explode: false
          in: query
          name: period_end_at
          required: true
          schema:
            description: end of the period, exclusive (RFC 3339)
            format: date-time
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SubscriptionBalanceStatement'
          description: OK
        '400':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/V2ErrorModel'
          description: Bad Request
        '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:
    SubscriptionBalanceStatement:
      additionalProperties: false
      description: >-
        The organization's balance over a period, like a bank statement: where
        it started, what moved it, and where it ended. The lines add up:
        starting + added + each usage amount + refunded + expired + other =
        ending.
      properties:
        added_microdollars:
          description: >-
            Credit added in microdollars: top-ups, auto-recharge, plan credit
            and adjustments.
          format: int64
          type: integer
        ending_balance_microdollars:
          description: Balance in microdollars at the end of the period.
          format: int64
          type: integer
        expired_microdollars:
          description: >-
            Purchased credit that expired and plan credit that lapsed, in
            microdollars (zero or negative).
          format: int64
          type: integer
        other_microdollars:
          description: Negative adjustments and balance corrections, in microdollars.
          format: int64
          type: integer
        period_end_at:
          description: End of the period (exclusive).
          format: date-time
          type: string
        period_start_at:
          description: Start of the period.
          format: date-time
          type: string
        refunded_microdollars:
          description: >-
            Credit taken back by refunds and chargebacks, net of chargebacks
            won, in microdollars. Usually negative; positive when chargebacks
            won in the period exceed what was taken back.
          format: int64
          type: integer
        starting_balance_microdollars:
          description: Balance in microdollars at the start of the period.
          format: int64
          type: integer
        usage:
          description: What each product used in the period, costliest first.
          items:
            $ref: '#/components/schemas/SubscriptionBalanceStatementUsage'
          type:
            - array
            - 'null'
      required:
        - period_start_at
        - period_end_at
        - starting_balance_microdollars
        - ending_balance_microdollars
        - added_microdollars
        - refunded_microdollars
        - expired_microdollars
        - other_microdollars
        - usage
      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
    SubscriptionBalanceStatementUsage:
      additionalProperties: false
      description: One product's usage in a balance statement.
      properties:
        amount_microdollars:
          description: What they cost in microdollars (negative).
          format: int64
          type: integer
        count:
          description: How many were billed (sessions or inference calls).
          format: int64
          type: integer
        product:
          description: 'The product: session or inference.'
          type: string
      required:
        - product
        - count
        - amount_microdollars
      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.