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

# List Balances

> Lists individual balances (one row per grant) across customers, live or expired: plan balances, standalone balances, top-ups, and pooled balances. Pages may hold fewer than `limit` rows while `has_more` is true.

Lists individual balances, one row per grant: plan balances, standalone balances from `balances.create`, top-ups, and pooled balances. By default only active balances are returned; pass `statuses: ["expired"]` for balances whose plan expired or whose `expires_at` has passed.

Pass `plan_id: null` to list only balances that don't come from a plan. Rollovers are returned on the balance they belong to.

> [!NOTE]
>
> A page can hold fewer than `limit` rows (even zero) while `has_more` is `true`. Keep paginating until `has_more` is `false`.

### Body Parameters

Only return rows for this customer. Omit to list across every customer.

Only return rows for this entity. Requires customer\_id.

Number of items to return. Default 50, hard ceiling 200.

Opaque pagination cursor. Empty string (default) requests the first page; use next\_cursor from a prior response for subsequent pages.

Statuses to include. Defaults to active. A balance is expired when its plan expired, or when a standalone balance passed its expires\_at.

Only return balances from this plan. Pass null for standalone balances only (top-ups, balances.create, rollovers).

Only return balances for this feature, or for any of these features.

### Response

Rows on this page.

**properties**

The unique identifier for this balance breakdown.

The plan ID this balance originates from, or null for standalone and pooled balances.

Amount granted from the plan's included usage.

Amount granted from prepaid purchases or top-ups.

Remaining balance available for use.

Amount consumed in the current period.

Whether this balance has unlimited usage.

Reset configuration for this balance, or null if no reset.

**properties**

The reset interval (hour, day, week, month, etc.) or 'multiple' if combined from different intervals.

Number of intervals between resets (eg. 2 for bi-monthly).

Timestamp when the balance will next reset.

Pricing configuration if this balance has usage-based pricing.

**properties**

The per-unit price amount.

Tiered pricing configuration if applicable.

**properties**

How tiers are applied: graduated (split across bands) or volume (flat rate for the matched tier).

The number of units per billing increment (eg. \$9 / 250 units).

Whether usage is prepaid or billed pay-per-use.

Maximum quantity that can be purchased, or null for unlimited.

Timestamp when this balance expires, or null for no expiration.

Where this row's credits come from: shared at the customer level, or owned by the entity.

Set when this row's numbers are the entity's allocated share of the customer's credits.

**properties**

The amount allocated to this entity.

Internal ID of the underlying balance row. Matches balance\_id in track and events.list deductions.

The plan this balance came from. Same as plan\_id for plan balances; for balances carried over on a plan change, the plan they were moved off. Null for balances.create grants.

The feature this balance is for.

Whether this balance is active or expired.

Rollover balances carried over onto this balance.

**properties**

Amount originally rolled over from a previous period, before any of it was consumed.

Amount of balance rolled over from a previous period.

Timestamp when the rollover balance expires.

The customer this balance belongs to.

The entity this balance is scoped to, or null.

Timestamp when this balance was created.

Whether more results exist. A page may hold fewer than `limit` items (even zero) while `has_more` is true, so paginate until `has_more` is false.

Pass as start\_cursor to fetch the next page. Null when has\_more is false.

```json 200 theme={null}
{
  "list": [
    {
      "id": "bonus_credits",
      "plan_id": null,
      "included_grant": 50,
      "prepaid_grant": 0,
      "remaining": 0,
      "usage": 50,
      "unlimited": false,
      "reset": {
        "interval": "one_off",
        "resets_at": null
      },
      "price": null,
      "expires_at": 1771999921437,
      "feature_id": "messages",
      "status": "expired",
      "rollovers": [],
      "customer_id": "cus_123",
      "entity_id": null,
      "created_at": 1769904000000
    }
  ],
  "has_more": false,
  "next_cursor": null
}
```


## OpenAPI

````yaml openapi POST /v1/balances.list
openapi: 3.1.0
info:
  title: Autumn API
  version: 2.6.0
servers:
  - url: https://api.useautumn.com
    description: Production server
security:
  - secretKey: []
paths:
  /v1/balances.list:
    post:
      tags:
        - balances
      description: >-
        Lists individual balances (one row per grant) across customers, live or
        expired: plan balances, standalone balances, top-ups, and pooled
        balances. Pages may hold fewer than `limit` rows while `has_more` is
        true.
      operationId: listBalances
      parameters:
        - name: x-api-version
          in: header
          required: true
          schema:
            type: string
            default: 2.6.0
          x-speakeasy-globals-hidden: true
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                customer_id:
                  type: string
                  description: >-
                    Only return rows for this customer. Omit to list across
                    every customer.
                entity_id:
                  type: string
                  description: Only return rows for this entity. Requires customer_id.
                limit:
                  type: integer
                  minimum: 1
                  maximum: 200
                  default: 50
                  description: Number of items to return. Default 50, hard ceiling 200.
                start_cursor:
                  type: string
                  default: ''
                  description: >-
                    Opaque pagination cursor. Empty string (default) requests
                    the first page; use next_cursor from a prior response for
                    subsequent pages.
                statuses:
                  type: array
                  minItems: 1
                  items:
                    enum:
                      - active
                      - expired
                    type: string
                  description: >-
                    Statuses to include. Defaults to active. A balance is
                    expired when its plan expired, or when a standalone balance
                    passed its expires_at.
                plan_id:
                  anyOf:
                    - type: string
                    - type: 'null'
                  description: >-
                    Only return balances from this plan. Pass null for
                    standalone balances only (top-ups, balances.create,
                    rollovers).
                feature_id:
                  anyOf:
                    - type: string
                    - type: array
                      minItems: 1
                      items:
                        type: string
                  description: >-
                    Only return balances for this feature, or for any of these
                    features.
              title: ListBalancesParams
              examples:
                - customer_id: cus_123
                  statuses:
                    - expired
                - customer_id: cus_123
                  feature_id: messages
                  plan_id: null
            example:
              customer_id: cus_123
              statuses:
                - expired
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  list:
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          type: string
                          default: ''
                          description: The unique identifier for this balance breakdown.
                        plan_id:
                          anyOf:
                            - type: string
                            - type: 'null'
                          description: >-
                            The plan ID this balance originates from, or null
                            for standalone and pooled balances.
                        included_grant:
                          type: number
                          description: Amount granted from the plan's included usage.
                        prepaid_grant:
                          type: number
                          description: Amount granted from prepaid purchases or top-ups.
                        remaining:
                          type: number
                          description: Remaining balance available for use.
                        usage:
                          type: number
                          description: Amount consumed in the current period.
                        unlimited:
                          type: boolean
                          description: Whether this balance has unlimited usage.
                        reset:
                          anyOf:
                            - type: object
                              properties:
                                interval:
                                  anyOf:
                                    - enum:
                                        - one_off
                                        - minute
                                        - hour
                                        - day
                                        - week
                                        - month
                                        - quarter
                                        - semi_annual
                                        - year
                                      type: string
                                    - const: multiple
                                  description: >-
                                    The reset interval (hour, day, week, month,
                                    etc.) or 'multiple' if combined from
                                    different intervals.
                                interval_count:
                                  type: number
                                  description: >-
                                    Number of intervals between resets (eg. 2
                                    for bi-monthly).
                                resets_at:
                                  anyOf:
                                    - type: number
                                    - type: 'null'
                                  description: Timestamp when the balance will next reset.
                              required:
                                - interval
                                - resets_at
                            - type: 'null'
                          description: >-
                            Reset configuration for this balance, or null if no
                            reset.
                        price:
                          anyOf:
                            - type: object
                              properties:
                                amount:
                                  type: number
                                  description: The per-unit price amount.
                                tiers:
                                  type: array
                                  items:
                                    type: object
                                    properties:
                                      to:
                                        anyOf:
                                          - type: number
                                          - const: inf
                                      amount:
                                        type: number
                                      flat_amount:
                                        type: number
                                    required:
                                      - to
                                      - amount
                                  description: Tiered pricing configuration if applicable.
                                tier_behavior:
                                  enum:
                                    - graduated
                                    - volume
                                  type: string
                                  description: >-
                                    How tiers are applied: graduated (split
                                    across bands) or volume (flat rate for the
                                    matched tier).
                                billing_units:
                                  type: number
                                  description: >-
                                    The number of units per billing increment
                                    (eg. $9 / 250 units).
                                billing_method:
                                  enum:
                                    - prepaid
                                    - usage_based
                                  type: string
                                  description: >-
                                    Whether usage is prepaid or billed
                                    pay-per-use.
                                max_purchase:
                                  anyOf:
                                    - type: number
                                    - type: 'null'
                                  description: >-
                                    Maximum quantity that can be purchased, or
                                    null for unlimited.
                              required:
                                - billing_units
                                - billing_method
                                - max_purchase
                            - type: 'null'
                          description: >-
                            Pricing configuration if this balance has
                            usage-based pricing.
                        expires_at:
                          anyOf:
                            - type: number
                            - type: 'null'
                          description: >-
                            Timestamp when this balance expires, or null for no
                            expiration.
                        source:
                          enum:
                            - customer
                            - entity
                          type: string
                          readOnly: true
                          description: >-
                            Where this row's credits come from: shared at the
                            customer level, or owned by the entity.
                        allocation:
                          anyOf:
                            - type: object
                              properties:
                                amount:
                                  type: number
                                  description: The amount allocated to this entity.
                              required:
                                - amount
                            - type: 'null'
                          readOnly: true
                          description: >-
                            Set when this row's numbers are the entity's
                            allocated share of the customer's credits.
                        internal_id:
                          type: string
                          description: >-
                            Internal ID of the underlying balance row. Matches
                            balance_id in track and events.list deductions.
                        origin_plan_id:
                          anyOf:
                            - type: string
                            - type: 'null'
                          description: >-
                            The plan this balance came from. Same as plan_id for
                            plan balances; for balances carried over on a plan
                            change, the plan they were moved off. Null for
                            balances.create grants.
                        feature_id:
                          type: string
                          description: The feature this balance is for.
                        status:
                          enum:
                            - active
                            - expired
                          type: string
                          description: Whether this balance is active or expired.
                        rollovers:
                          type: array
                          items:
                            type: object
                            properties:
                              granted:
                                type: number
                                description: >-
                                  Amount originally rolled over from a previous
                                  period, before any of it was consumed.
                              balance:
                                type: number
                                description: >-
                                  Amount of balance rolled over from a previous
                                  period.
                              expires_at:
                                type: number
                                description: Timestamp when the rollover balance expires.
                            required:
                              - granted
                              - balance
                              - expires_at
                          description: Rollover balances carried over onto this balance.
                        customer_id:
                          type: string
                          description: The customer this balance belongs to.
                        entity_id:
                          anyOf:
                            - type: string
                            - type: 'null'
                          description: The entity this balance is scoped to, or null.
                        created_at:
                          type: number
                          description: Timestamp when this balance was created.
                      required:
                        - plan_id
                        - included_grant
                        - prepaid_grant
                        - remaining
                        - usage
                        - unlimited
                        - reset
                        - price
                        - expires_at
                        - internal_id
                        - origin_plan_id
                        - feature_id
                        - status
                        - rollovers
                        - customer_id
                        - entity_id
                        - created_at
                    description: Rows on this page.
                  has_more:
                    type: boolean
                    description: >-
                      Whether more results exist. A page may hold fewer than
                      `limit` items (even zero) while `has_more` is true, so
                      paginate until `has_more` is false.
                  next_cursor:
                    anyOf:
                      - type: string
                      - type: 'null'
                    description: >-
                      Pass as start_cursor to fetch the next page. Null when
                      has_more is false.
                required:
                  - list
                  - has_more
                  - next_cursor
                examples:
                  - list:
                      - id: bonus_credits
                        plan_id: null
                        included_grant: 50
                        prepaid_grant: 0
                        remaining: 0
                        usage: 50
                        unlimited: false
                        reset:
                          interval: one_off
                          resets_at: null
                        price: null
                        expires_at: 1771999921437
                        feature_id: messages
                        status: expired
                        rollovers: []
                        customer_id: cus_123
                        entity_id: null
                        created_at: 1769904000000
                    has_more: false
                    next_cursor: null
              example:
                list:
                  - id: bonus_credits
                    plan_id: null
                    included_grant: 50
                    prepaid_grant: 0
                    remaining: 0
                    usage: 50
                    unlimited: false
                    reset:
                      interval: one_off
                      resets_at: null
                    price: null
                    expires_at: 1771999921437
                    feature_id: messages
                    status: expired
                    rollovers: []
                    customer_id: cus_123
                    entity_id: null
                    created_at: 1769904000000
                has_more: false
                next_cursor: null
      x-codeSamples:
        - lang: typescript
          label: Typescript (SDK)
          source: |-
            import { Autumn } from 'autumn-js'

            const autumn = new Autumn()

            const result = await autumn.balances.list({
              customerId: "cus_123",
              statuses: [
                "expired",
              ],
            });
        - lang: python
          label: Python (SDK)
          source: |-
            from autumn_sdk import Autumn

            autumn = Autumn(secret_key="am_sk_test...")

            res = autumn.balances.list(
                customer_id="cus_123",
                limit=50,
                start_cursor="",
                statuses=[
                    "expired",
                ],
            )
components:
  securitySchemes:
    secretKey:
      type: http
      scheme: bearer
      bearerFormat: JWT

````

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