You use the ValidateIBAN service to check that the supplied IBAN is in the correct format and that the account could exist. This also validates the BBAN, created by decomposing the IBAN.
To validate the IBAN, all you need to supply is the IBAN.
This service returns:
<soapenv:Body> <ban:ValidateIBANRequest language="en" reportString="1123" itemisationID="555">PT500035013100000457893467</ban:ValidateIBANRequest> </soapenv:Body> |
<soap:Body> <ValidateIBANResponse ISOcountry="PT" xmlns="http://experianpayments.com/bankwizard/wsdl/BankWizardService-v1-0"> <BBAN index="1" description="Bank code" xmlns="http://experianpayments.com/bankwizard/xsd/2009/07">0035</BBAN> <BBAN index="2" description="Branch code" xmlns="http://experianpayments.com/bankwizard/xsd/2009/07">0131</BBAN> <BBAN index="3" description="Account number" xmlns="http://experianpayments.com/bankwizard/xsd/2009/07">00004578934</BBAN> <BBANindex="4" description="Check digits" xmlns="http://experianpayments.com/bankwizard/xsd/2009/07">67</BBAN> <dataAccessKey xmlns="http://experianpayments.com/bankwizard/xsd/2009/07">...</dataAccessKey> <conditions xmlns="http://experianpayments.com/bankwizard/xsd/2009/07"> <condition severity="warning" code="20" xmlns="http://experianpayments.com/bankwizard/common/xsd/2009/09">Branch is not SEPA compliant for Direct Debits (DD)</condition> </conditions> </ValidateIBANResponse> </soap:Body> |