Contact eSortcode.com on +44 (0)845 094 2633  
 
ValidateAccount
The ValidateAccount function is used to Validate a UK Bank Sortcode and Account Number. A formal description of the function can be found in the 'Service Description' section of


or for a sample SOAP request and response


The ValidateAccount method takes 5 parameters

Parameter Parameter Description
sSortcode The 6 digit sortcode
sAccountNumber The 8 digit account number
sUserName The unique Account Name given to you when you register
sGUID The Globally Unique Identifier(GUID) assigned to you when you register
sIPAddress IP Address. (Leave this blank)

and can be invoked as follows replacing the 'string' values where appropriate:


A typical Valid response will look something like this:

    <?xml version="1.0" encoding="utf-8" ?>
-     <Validation xmlns:xsd="http://www.w3.org/2001/XMLSchema"     
xmlns:xsi
="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://ws.esortcode.com">
          <ValidationMessage>VALID</ValidationMessage>
          <IsError>false</IsError>
          <ErrorMessage />
      </Validation>

The response returns 3 fields and will have one of the following formats:
 
ValidationMessage IsError ErrorMessage
VALID false blank
INVALID : "Invalid Reason here"  false blank
blank true ERROR : "Error Message here"

SSL Note: If you are using Secure Socket layers you can replace http with the https prefix in the above examples.