List balances
Retrieve a comprehensive view of all available balances (commits and credits) for a customer. This endpoint provides real-time visibility into prepaid funds, postpaid commitments, promotional credits, and other balance types that can offset usage charges, helping you build transparent billing experiences.
Use this endpoint to:
- Display current available balances in customer dashboards
- Verify available funds before approving high-usage operations
- Generate balance reports for finance teams
- Filter balances by contract or date ranges
Key response fields:
An array of balance objects (all credits and commits) containing:
- Balance details: Current available amount for each commit or credit
- Metadata: Product associations, priorities, applicable date ranges
- Optional ledger entries: Detailed transaction history (if
include_ledgers=true) - Balance calculations: Including pending transactions and future-dated entries
- Custom fields: Any additional metadata attached to balances
Usage guidelines:
- Use the getNetBalance endpoint to retrieve a single combined current balance
- Date filtering: Use
effective_beforeto include only balances with access before a specific date (exclusive) - Set
include_balance=truefor calculated balance amounts on each commit or credit - Set
include_ledgers=truefor full transaction history - Set
include_contract_balances = trueto see contract level balances - Balance logic: Reflects currently accessible amounts, excluding expired/future segments
- Manual adjustments: Includes all manual ledger entries, even future-dated ones
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
List all balances (commits and credits) for a customer
Return only balances that have access schedules that "cover" the provided date
Include only balances that have any access on or after the provided date
Include only balances that have any access before the provided date (exclusive)
Include balances on the contract level.
Include archived credits and credits from archived contracts.
Include ledgers in the response. Setting this flag may cause the query to be slower.
Include the balance of credits and commits in the response. Setting this flag may cause the query to be slower.
The next page token from a previous response.
The maximum number of commits to return. Defaults to 25.
1 <= x <= 25