Using BICs

You can use Bank Wizard to validate a Bank Identifier Code (BIC).

You must have the correct licence to access the data needed to validate the BIC. You can determine if you have the licence for a country by calling BWIGetValue passing item BWI_V_LIC_SWIFT_DATA.

BWICreateHandle(h)

BWISetValue(h,BWI_V_COUNTRY_CHECK,BWI_C_FRANCE)

BWIGetValue(h,BWI_V_LIC_SWIFT_DATA,lic)

/* If lic is 1 then the BIC functionality is licensed */

To validate a BIC, set the input string BWG_BIC_STRING to the BIC and to specify that you want to validate a BIC, set the flag BWG_G_BIC_CHECK.

BWICreateHandle(h)

BWISetValue(h,BWI_V_COUNTRY_CHECK,BWI_C_UK)

BWISetValue(h,BWI_UK_SORT_CODE,"010004")

BWISetValue(h,BWI_UK_ACCOUNT_NO,"12345678")

/* The BIC that should be used for cross border payments */

BWISetValue(h,BWG_BIC_STRING,"MIDLGB22")

/* Tell Bank Wizard to validate the BIC */

BWISetValue(h,BWG_G_BIC_CHECK,1)

BWICheck(h)

As well as the normal account validation, Bank Wizard will validate the format of the BIC and make sure it is associated with the branch. This process can return both BIC specific conditions and generic conditions.

After validating details (using BWICheck) with the BWG_G_BIC_CHECK flag set, when you call BWIGetString the normal branch data is returned. You must access the SWIFT and SEPA data to search the additional fields.