Accounts and Transactions
This guide walks you through retrieving accounts and transactions data.
This is useful when you need to retrieve common financial data for a particular user.
Prerequisites
To be successful, you will first need to authenticate and have a valid Access Token. Take a look at the Authentication Quickstart (Command Line) for a walkthrough of how to authenticate.
After authenticating, you will also need to use the token to access the User ID (this is the sub
key) – more documentation about tokens can be found in the Authentication Framework documentation. It’s worth noting that the Identity Token is separate from the Access Token.
Requests
GET /users/{user_id}/accounts
Where:
CONSUMER_API_ENVIRONMENT
is specific to your financial institution and matches with Banno Online for your institution.- Example: for the Garden demo institution the
CONSUMER_API_ENVIRONMENT
would be digital.garden-fi.com.
- Example: for the Garden demo institution the
API_VERSION
: API Version (ie. v0)user_id
: The User ID of the user you would like to access data foraccess_token
: Your access token
Response
The accounts endpoint will return an array of accounts for the specific user, as well as an array of any inactive accounts.
Each account, among other things, will return an id that can be used in the next request to get transaction data for that account; we will use the id parameter as the account_id in subsequent requests.
There will also be a fetchedDate parameter for each account to note when the last fetch was performed.
GET /users/{user_id}/accounts/{account_id}/transactions
Where:
CONSUMER_API_ENVIRONMENT
is specific to your financial institution and matches with Banno Online for your institution.- Example: for the Garden demo institution the
CONSUMER_API_ENVIRONMENT
would be digital.garden-fi.com.
- Example: for the Garden demo institution the
API_VERSION
: API Version (ie. v0)user_id
: The User ID of the user you would like to access data foraccount_id
: The account ID from the previous requestaccess_token
: Your access token
Response
The transactions endpoint will return an array of transactions for the specific account.
There will also be a lastUpdated parameter for each transaction to note when the last fetch was performed.
Next steps
Take a look at specific documentation in the API Reference.
If having real-time data is important to your application, see the Data Refresh guide for how to refresh the data before retrieving.