|
ValidateAccountGetBranchDetails
The ValidateAccountGetBranchDetails function combines the StandardiseAccount, ValidateAccount and BranchDetails functions into one. This function attempts to Standardise the Account Number, and if valid, Validates the Account Number for the Sorting Code, and if valid, attempts to return the Branch Details. 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 6, 7, 8, 9 or 10 (standard or non-standard) 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:
The response returns 85 fields consisting of 3 Validation and Error fields and 82 ISCD fields. For a list of the ISCD fields and a full specification visit ISCD Specification. A typical Valid response will look something like this (Note: not all fields are shown):
<?xml version="1.0" encoding="utf-8" ?>
- <BranchDetail 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>
<GENERALSortingCode>110932</GENERALSortingCode>
<GENERALBIC1>HLFXGB21</GENERALBIC1>
<GENERALBIC2>I78</GENERALBIC2> ..........
........................................................ <PRINTTelephoneNumber />
<PRINTTelephone2Number /> </BranchDetail> |
|
The response will have one of the following formats:
| ValidationMessage |
IsError |
ErrorMessage |
ISCDFields x 82 |
| VALID |
false |
blank |
ISCD Record | < tr>
| INVALID : "Invalid Reason here" |
false |
blank |
blank |
| blank |
true |
ERROR : "Error Message here" |
blank | SSL Note: If you are using Secure Socket layers you can replace http with the https prefix in the above examples.
|