Skip to content
This repository has been archived by the owner on Jun 20, 2024. It is now read-only.

Support for multiple BICs for a single IBAN #19

Open
fourcube opened this issue Apr 3, 2018 · 1 comment
Open

Support for multiple BICs for a single IBAN #19

fourcube opened this issue Apr 3, 2018 · 1 comment

Comments

@fourcube
Copy link
Collaborator

fourcube commented Apr 3, 2018

Sometimes, the webservice returns the wrong BIC-code for accounts of the Deutsche Bank.

See, the following case for example: http://www.ibancalculator.com/validate/NL42DEUT0466964617

BIC: please check which one of these BICs is the correct one:
------
§  found in directory: DEUTNL2A   BIC into the clipboard
§  found in directory: DEUTNL2N

With the OpenIBAN-service, only one (DEUTNL2A) is returned, while in this case DEUTNL2N is the right one.

Can you please fix this by returning 2 BIC codes? We have contacted the Deutsche Bank and, unfortunately, human interaction is needed to pick the right one. (They have to look at the account statement to assess which BIC is correct.)

@fourcube
Copy link
Collaborator Author

fourcube commented Apr 3, 2018

After this has been implemented, the data returned from the webservice will include one more field called bics:

{
  "valid":true,
  "messages":[
    "Bank code valid: DEUT"
  ],
  "iban":"NL42DEUT0466964617",
  "bankData":{
    "bankCode":"DEUT",
    "name":"DEUTSCHE BANK (bij alle SEPA-transacties)",
    "bic":"DEUTNL2A",
    "bics": [
        "DEUTNL2A",
        "DEUTNL2N"
    ]
  },
  "checkResults":{
    "bankCode":true
  }
}

When only a single BIC is known for a certain bank institude, bics will be an array of one element.

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

No branches or pull requests

1 participant