- DATE:
- AUTHOR:
- The Product team at Griffin
Interest accrued now shows in the API and app
You can now view interest accrual for different bank accounts through the API and in the Griffin app. You can:
Retrieve accrued interest via the API - make a
GETrequest to the account URL to see the current accrued interest amountShow accrued interest to your customers - if you want your customers to see how much interest they've earned so far in the current period, you can now pull this data from the API and display it directly in your product
View accrued interest in the app - see how much interest has built up on an account since the last capitalisation date
How to retrieve accrued interest through the API
To view the accrued interest on a bank account, make a GET request to the account URL:
curl "https://api.griffin.com${ACCOUNT_URL}" \
-X 'GET' \
-H "Authorization: GriffinAPIKey $GRIFFIN_API_KEY" \
-H 'Content-Type: application/json'The response will include:
{
"account-url": "/v0/bank/accounts/ba.IcqDdMDxT7OaYRznoit-7A",
"account-status": "open",
"bank-product-type": "savings-account",
"account-balance": {
"currency": "GBP",
"value": "10000.00"
},
"accrued-interest": {
"currency": "GBP",
"value": "12.34"
},
...
}How to see accrued interest in the app
Once you navigate to a bank account, you can see the interest accrued in the overview tab next to the account balance.
Questions?
We're here to help. Just reach out at support@griffin.com or get in touch with your Customer Success manager.
Thanks for reading!
Read our docs
Join our Slack community
Follow us on LinkedIn