Returns the latest balances for the account
Returns the latest balance (available balance and book balance) for the given account.
Path Parameters
- Type: stringfin
_id requiredThe fin id of a bank or financial institution where the account is held
- Type: stringaccountrequired
The account number (removing spaces, dashes, etc)
Responses
- application/json
- 403
Forbidden (e.g: wrong API Key)
- 404
Account not found.
- application/json
Request Example for get/accounts/{fin_id} /{account}/balances/latest
curl 'https://api.treasury.shinkansen.finance/v1/accounts/{fin_id}/{account}/balances/latest' \
--header 'Shinkansen-Treasury-Api-Key: YOUR_SECRET_TOKEN'
{
"account": 123456789012,
"financial_institution": {
"fin_id_schema": "SHINKANSEN",
"fin_id": "BANCO_BICE_CL"
},
"currency": "CLP",
"balances": [
{
"balance_type": "snapshot",
"book_balance": 123.5,
"available_balance": 123.5,
"timestamp": "2019-06-04T00:00:00.000Z",
"source": {
"source_type": "account_report",
"source_id": "ab1def2g-7e98-4e13-8b03-0b3b2e6d5a3c"
}
}
]
}