Most banks use the IBAN to verify your country of origin, your account number, and any other details that they might need.
The code is checked to the IBAN record to ensure that the beneficiary is correct when making a payment.
If anyone mistypes an IBAN and there is no account associated with it, the transaction will fail. If a related account exists, the bank executes the transfer. For the bank to do a reversal by the bank, the incorrect recipient must give their authorization.
In addition, most banks use an IBAN checker, also known as an IBAN lookup, to ensure that legitimate IBANs are error-free.