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_id
s we return can change. This will cause account_not_found
errors, unless you replace the old account_id
with the new one.
Solution:
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 account_not_found
error:
- Call the GET
/accounts
endpoint;
- Compare old
account_id
s 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
account_number
, sort_code
,IBAN
, or name
;
- Once you have matched the new
account_id
with the old one, continue with the normal requests.
Comments
0 comments
Please sign in to leave a comment.