Path Parameters
The unique identifier of the balance to retrieve.
Query Parameters
Additional related data to include in the response. Can specify multiple values.Options:
identity: Include the full identity objectledger: Include the full ledger object
?include=identity&include=ledgerInclude queued transaction amounts in the balance response.When enabled, adds:
queued_debit_balance: Amount in queued debit transactionsqueued_credit_balance: Amount in queued credit transactions
?with_queued=trueResponse
Unique identifier for the balance.
The ledger ID this balance belongs to.
The identity ID associated with this balance.
Optional indicator value for retrieving balance by a custom identifier (e.g., phone number, email).
The currency code for this balance.
The current balance amount (credit_balance - debit_balance). Returned as a big integer string.
Total credits applied to this balance.
Total debits applied to this balance.
Total balance currently in inflight transactions.
Credits currently in inflight status.
Debits currently in inflight status.
Amount in queued debit transactions. Only included when
with_queued=true.Amount in queued credit transactions. Only included when
with_queued=true.The precision multiplier for this balance.
Version number for optimistic concurrency control.
Whether fund lineage tracking is enabled.
The allocation strategy for fund lineage (FIFO, LIFO, or PROPORTIONAL).
ISO 8601 timestamp when the balance was created.
ISO 8601 timestamp when current inflight transactions expire.
Custom metadata attached to the balance.
The full identity object. Only included when
include=identity is specified.The full ledger object. Only included when
include=ledger is specified.Examples
Response Example
Understanding Balance States
Regular Balance
The net balance representing available funds:Inflight Balance
Funds locked in pending transactions:- Inflight transactions are held temporarily until committed or voided
- Useful for authorization holds, escrow, and multi-step transactions
- Expires based on
inflight_expires_attimestamp
Queued Balance
Funds in scheduled or queued transactions:- Only visible when
with_queued=true - Represents future transactions not yet processed
- Useful for forecasting and liquidity planning
Version Control
Theversion field enables optimistic concurrency control:
- Increments with each balance update
- Prevents race conditions in high-throughput scenarios
- Ensures data consistency across distributed systems