There may be occasions when, after a re-authentication flow, the
account_id returned for one or more accounts might be different from the original one.
TrueLayer generates the account_id based on different fields returned by the provider. Unfortunately, due to factors outside of TrueLayer's control, some of these fields are subject to change. This is the case for:
- Bank of Ireland (IE)
- Sparkasse (DE)
This may also happen with other providers if any of the details of one of the accounts changes (e.g., if an end-user upgrades their current account).
Since the bank returned to us a changed parameter, the
account_ids we return can change. This will cause
account_not_found errors, unless you replace the old
account_id with the new one.
What should you do?
To avoid this being a problem for your integration we advise you to run some matching logic when you are returned with an
- Call the GET
- Compare old
account_ids with new ones to see if they have changed;
- If so, reconcile the new ID's to the old ID's by matching attributes such as
- Once you have matched the new
account_id with the old one, continue with the normal requests.