Available on version 0.10.1 or later.
Overview
Balance Reconstruction helps you solve situations where your balances go out of sync and you have to rebuild the balance from the ground up. It does this by recalculating a balance from its transactions to ensure it correctly reflects all recorded activity.Reconstructing a balance
To reconstruct a balance, update its metadata with the following request:Verifying the results
To check the results, retrieve the balance details with the Get Balance endpoint:meta_data
object:
Response
Field | Description |
---|---|
difference | The discrepancy between the previous balance and the recalculated balance. |
executed_at | The timestamp when the reconstruction was performed. |
previous_balance | The balance recorded before reconstruction. |
previous_credit | The total credit amount recorded before reconstruction. |
previous_debit | The total debit amount recorded before reconstruction. |
recalculated_balance | The corrected balance after reconstruction. |
recalculated_credit | The total credit amount after recalculating from transactions. |
recalculated_debit | The total debit amount after recalculating from transactions. |