Available in version 0.10.1 and later.
Overview
The Balance from Source endpoint allows you to compute a balance directly from its transactions instead of using the default running balance. This is useful when you need to verify balance accuracy, perform audits, or ensure consistency by calculating balances independently from the stored balance values.Example response
How it works
When you call the balance from source endpoint, Blnk reconstructs the balance by:- Getting all applied transactions: Blnk retrieves all applied transactions for the balance and aggregates them together. As a result, it may take longer to process for balances with extensive transaction history.
- Calculating credits and debits: It aggregates all credit transactions (money moving into the balance) and debit transactions (money moving out of the balance) to compute the total credit balance, debit balance, and net balance.
- Returning the computed balance: The final computed balance, reflecting the exact state based on transaction history, is returned in the response.
Historical balances
Learn how to retrieve balances at specific historical timestamps
Balance snapshots
Learn how to create snapshots of your running balances