Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Find BIC from IBAN #8

Open
marcwrobel opened this issue Jul 11, 2013 · 3 comments
Open

Find BIC from IBAN #8

marcwrobel opened this issue Jul 11, 2013 · 3 comments

Comments

@marcwrobel
Copy link
Owner

Add support for finding a BIC (and bank related information) from an IBAN.

@ghost ghost assigned marcwrobel Jul 11, 2013
@marcwrobel marcwrobel removed their assignment Mar 20, 2020
@kayman-mk
Copy link

Hi Marc,

any idea how to store the related data? There are thousands of BICs out there.

Best regards
Matthias

@marcwrobel
Copy link
Owner Author

Hi @kayman-mk,

The only reliable way I know to find a BIC from an IBAN is by using the SWIFT IBAN Plus Directory. This directory is provided by SWIFT, which is the IBAN registrar. With it you can match IBAN to various institutions information (including BIC). The SWIFT IBAN Plus Directory is regularly updated by SWIFT with the latest data and is accessible as a file or via WebService APIs. But unfortunately it is not available for free.

If you have access to this file you can store in a database or in memory the following information :

  • ISO Country
  • IBAN National ID
  • IBAN BIC code
  • IBAN Branch code
    And then you just have to lookup the table using and ISO Country and an IBAN National ID (both can be extracted from the IBAN) to get the IBAN BIC code (aka BIC8) or both the IBAN BIC code / IBAN Branch code (aka BIC11).

The purpose of this issue is to provide a basic support for this solution (but not the data to make it work - because it is not free).

Hope this helps !

@kayman-mk
Copy link

Oh yes, this is also an interesting point. Writing an adapter so this library could use the data if it is provided at runtime.

I guess they have some examples or API descriptions online (didn't check this for now). So we could implement something in JBanking.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants