|
StandardiseAccount
This function is used to transpose Non-standard (i.e. 6, 7, 9 & 10 digit) Account Numbers into Standard (i.e. 8 digit) Account Numbers. A formal description of the function can be found in the 'Service Description' section of
or for a sample SOAP request and response
The StandardiseAccount 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" ?>
- <Standardise 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>
<StandardisedSortcode>110932</StandardisedSortcode>
<StandardisedAccountNumber>XXXXXXXX</StandardisedAccountNumber>
</Standardise> |
|
The response returns 5 fields and will have one of the following formats:
| ValidationMessage |
IsError |
ErrorMessage |
Standardised Sortcode |
Standardised AccountNumber |
| VALID |
false |
blank |
The formatted Sortcode |
The formatted Account Number |
| INVALID : "Invalid Reason here" |
false |
blank |
blank |
blank |
| blank |
true |
ERROR : "Error Message here" |
blank |
blank | SSL Note: If you are using Secure Socket layers you can replace http with the https prefix in the above examples.
|