Credits and commits
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
POST
List balances
Authorizations
Body
application/json
List all balances (commits and credits) for a customer