Ledger balances
Historical Balances
How to retrieve accurate historical balance information.
GET
Historical Balances
If you’re using the auto-provisioned
Enterprise Core instance included with your Production License deployment, set the base URL to: https://ENTERPRISE_PUBLIC_URL/core.If you’re connecting to a different Core instance, use the publicly accessible base URL for that instance instead.Authorization
If set, the API uses an API key for authentication. Include the following header in your requests:X-blnk-key: <api-key>.
Replace <api-key> with your secret API key. Ensure the key is kept secure and not exposed in public repositories or client-side code.
See also: Secure your Blnk server
Body
Specifies the unique ID of the balance being retrieved.
Specifies the exact date and time for which a historical balance is requestedAlways format the date input as ‘YYYY-MM-DDTHH:MM:SS+00:00’ (e.g., 2024-04-22T15:28:03+00:00), where +00:00 specifies the timezone. It is UTC by default.
When set to
true, it indicates that the balance should be reconstructed directly from its transactions, bypassing balance snapshots.