getFpsDetails
Get Faster
Payments Service Details
A United Kingdom specific function that returns information
specific to the UK Faster Payments service for a given bank
branch.
Syntax:
fps responseObject = getFpsDetails(string keycode, string sortcode)
This function is normally used in conjunction with validateAccount() . First use validateAccount to ensure the account number and sort code are valid and then use getFpsDetails to return FPS specific information.
Returned data
An returned object (an instance of fps ) containing the following members:
Will be either: Reserved for future use.
Will be the date the bank office will be closed in
the Faster Payments clearing. The status (fpsStatus) will be set to N when date
closed is effective. If the bank office is set as the redirection sorting code
for one or more bank offices, will be set to R. Otherwise will be blank.
Will be either: Will be a two-digit connectivity code. Will be 01
(FPS member). fpsSettlementBankCode Will be the bank code of the FPS member that settles the
Faster Payments output for this sorting code. fpsSettlementBankName Will be the bank (long) name of the FPS member that
settles the Faster Payments output for this sorting code.
Will be a two-digit connectivity code, either: fpsHandlingBankCode Will be the bank code of the FPS member, agency or third
party beneficiary that the Faster Payments routed payment will be sent to.
fpsHandlingBankName Will be the (long) name of the FPS member, agency or
third party beneficiary that the Faster Payments routed payment will be
sent to. Account numbered flag: fpsAgencyType Mandatory when status (fpsStatus)
equals A. Will be either:
Name
Description
fpsStatus
Faster Payments Service (FPS) status:
fpsReserved
fpsDateLastChanged
Will be the effective date of the
last amendment made to this data group (ie the bank office’s Faster
Payments information).
fpsDateClosed
fpsRedirectionFromFlag
fpsRedirectionToSortcode
fpsSettlementBankConnectionType
fpsHandlingBankConnectionCode
fpsAccountsNumberedFlag
errorCode
If an error occurs during processing the error
number will be here. See the error section for more
details.
errorText
If an error occurs during processing the error
textually description will be here. See the error section for more
details.
Supported Versions
Validate Web Service Version 1.x
Errors
Example
Code
c#
The following sample show how to use the
getFpsDetails
function using c#.
As with all examples, please see the section Adding a reference to the Validate Web Service .
c# Example using
namespace
getFpsDetails
{
class Program
{
static void Main(string[] args)
{
// Define strings for the keycode
and the sort code get Faster Payments details for.
string keycode = "qwerty";
string sortcode = "404113";
// Set up a web service
object
validate.validate wsObject = new validate.validate();
// make the call to the Validate
getFpsDetails method
validate.fps fpsObject = wsObject.getFpsDetails(keycode, sortcode);
// now we have an object 'fpsObject'
containing all of the
//fps information for
the branch with sort code 404113
Console.WriteLine(fpsObject.fpsStatus);
Console.WriteLine(fpsObject.fpsHandlingBankName);
Console.WriteLine(fpsObject.errorCode);
Console.WriteLine(fpsObject.errorText);
Console.ReadLine();
}
}
}
Visual Basic .net
The following sample show how to use the getFpsDetails
function using Visual Basic.net.
As with all
examaples, please see the section Adding a reference to
the Validate Web Service .
Visual Basic.net Example Module Module1Sub Main() ' define the keycode and sortcode Dim keycode As String = "qwerty" Dim sortcode As String = "404113" ' Create a web service object Dim wsobject As New validate.validate() ' create a fps object for the returning data Dim fpsObject As validate.fps ' Call the web service function - getFpsDetails fpsObject = wsobject.getFpsDetails(keycode, sortcode) ' display the returned information - or error message Console.WriteLine("FPS Status: " & fpsObject.fpsStatus) Console.WriteLine("Handling Bank: " & fpsObject.fpsHandlingBankName) Console.WriteLine(fpsObject.errorCode) Console.WriteLine(fpsObject.errorText) Console.ReadLine() End Sub End Module |
Java
The
following sample show how to use the getFpsDetails
function
using Java.
Java
Example package
getfpsdetails; public class Main
{ public
static void main(String[] args) {
com.bemac.vtest.Validate service = new
com.bemac.vtest.Validate();
com.bemac.vtest.Fps result = port.getFpsDetails(keyCode,
sortcode);
com.bemac.vtest.ValidateSoap port =
service.getValidateSoap12();
java.lang.String keyCode =
"qwerty";
java.lang.String sortcode = "404113";
System.out.println("Result = "
+result.getFpsStatus());
System.out.println("Result = "
+result.getFpsHandlingBankName());
System.out.println( "Error
Code = "
+result.getErrorCode());
System.out.println( "Error
Message = " +result.getErrorText());
}
}
XML Request
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:vtes="http://vtest.bemac.com/">
<soapenv:Header/>
<soapenv:Body>
<vtes:getFpsDetails>
<vtes:keyCode>qwerty</vtes:keyCode>
<vtes:sortcode>404113</vtes:sortcode>
</vtes:getFpsDetails>
</soapenv:Body>
</soapenv:Envelope>
XML Response
Below is a typical XML message response from using getFpsDetails().
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Body>
<getFpsDetailsResponse
xmlns="http://vtest.bemac.com/">
<getFpsDetailsResult>
<fpsStatus>M</fpsStatus>
<fpsDateLastChanged>23/02/2008</fpsDateLastChanged>
<fpsSettlementBankConnectionType>01</fpsSettlementBankConnectionType>
<fpsSettlementBankCode>0005</fpsSettlementBankCode>
<fpsSettlementBankName>HSBC Bank
Plc</fpsSettlementBankName>
<fpsHandlingBankConnectionCode>01</fpsHandlingBankConnectionCode>
<fpsHandlingBankCode>0005</fpsHandlingBankCode>
<fpsHandlingBankName>HSBC Bank
Plc</fpsHandlingBankName>
<fpsAccountsNumberedFlag>Y</fpsAccountsNumberedFlag>
</getFpsDetailsResult>
</getFpsDetailsResponse>
</soap:Body>
</soap:Envelope>
![]() |
©Copyright 2023 Paygate Solutions Limited |