goiban-service icon indicating copy to clipboard operation
goiban-service copied to clipboard

Support for multiple BICs for a single IBAN

Open fourcube opened this issue 7 years ago • 1 comments

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 avatar Apr 03 '18 12:04 fourcube

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.

fourcube avatar Apr 03 '18 12:04 fourcube