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

Commerzbank's usage of differenz BICs #188

Open
rtwruck opened this issue Apr 3, 2024 · 5 comments
Open

Commerzbank's usage of differenz BICs #188

rtwruck opened this issue Apr 3, 2024 · 5 comments

Comments

@rtwruck
Copy link

rtwruck commented Apr 3, 2024

Hi,

Commerzbank, like many german banks, uses regional BICs. For example:
BLZ 20040000 -> COBADEHHXXX Commerzbank Hamburg
BLZ 30040000 -> COBADEDDXXX Commerzbank Düsseldorf
This data is also present in schwifty and matches the Bundesbank database.

Unfortunately though, Commerzbank decided to use COBADEFFXXX for all SEPA transactions regardless of which BLZ is encoded in the IBAN. So if you receive a payment, the account statement will have IBAN DExx 2004 0000 .... with BIC COBADEFFXXX and the same combination should be used when transfering money (see https://www.commerzbank.de/service/wo-finde-ich-meinen-bic-meine-blz-bankleitzahl/).

Currently, this will not pass schwifty's validation, i.e. the example IBAN's BIC will obviously be COBADEHHXXX and BIC.candidates_from_bank_code('DE', '20040000') will only return that one, too.

Are there any plans to support this?

@mdomke
Copy link
Owner

mdomke commented Apr 6, 2024

I think I'm not entirely sure what you're suggesting to implement. On which basis should the bank code 2004 000 be mapped to COBADEFFXXX instead of COBADEHHXXX? Do you want to map all Coba BLZs to the same BIC?

@Natim
Copy link
Contributor

Natim commented Apr 7, 2024

@rtwruck you can add multiple combinaison of valid BIC for the same bank code. We did it in France for BNP which has a similar complexity.

It will work for validation, however when trying to get the BIC from the IBAN it can either give you the list or the most plausible option.

In anycase, both BIC would work if you try to wire money to it.

@mdomke
Copy link
Owner

mdomke commented Apr 7, 2024

@Natim In my understanding the situation is the other way around in this case. There are multiple domestic bank codes which map all to the same BIC, but only for transfers, right @rtwruck ?

@Natim
Copy link
Contributor

Natim commented Apr 7, 2024

Yes it goes both ways, multiple bank codes can share the same BIC and multiple BIC can be linked to the same bank code

@rtwruck
Copy link
Author

rtwruck commented Apr 7, 2024

Hi,
thanks for looking into this. Yes, it's for transfers only.
There are two things that come to my mind:

  1. COBADEFFXXX could be returned as a secondary entry from BIC.candidates_from_bank_code('DE', '20040000')
  2. BIC('COBADEFFXXX').domestic_bank_codes could conversely return all the regional bank codes.

I'm not so sure whether 2) is a good idea but OTOH the current list of domestic bank codes is already 285 entries long.
I'm fine with IBAN().bic returning COBADEHHXXX since that seems to be the official assignment.

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

No branches or pull requests

3 participants