Account balance

To retrieve the balance of a specific account, you can make a GET request to either of the following endpoints:

Get Account & balances

To get an account balance, one can either call the get account by ID and extract balance or available_balance

curl --request GET \
  --url https://api.vault.ledger.com/accounts/{{account_id}} \
  --header 'authorization: Bearer {{access_token}}' \
  --header 'content-type: application/json' \
  --header 'x-ledger-workspace: minivault'

or GET /accounts/{account_id}/balances and extract total or available. Not that some account time offer more granularity in the response payload.

curl --request GET \
  --url https://api.vault.ledger.com/accounts/{{account_id}}/balances \
  --header 'authorization: Bearer {{access_token}}' \
  --header 'content-type: application/json' \
  --header 'x-ledger-workspace: minivault'

Last updated