getChapSSDetails
 
SOAP API > Validating Payments > Bank Account Numbers > United Kingdom Functions >
getChapsSDetails

A United Kingdom specific function that returns information specific to the CHAPS Sterling service for a given bank branch.

Syntax:

getChapsSDetails(string keycode, string sortcode)


 Notes:

getChapsSDetails returns details or information use specifically for CHAPS Sterling payments. The function can be used to determine that

  • The branch accepts CHAPS Sterling payments directly, indirectly or does not participate in the CHAPS Sterling Payment scheme
  • The routing BIC is the branch accepts CHAPS Sterling payments indirectly
  • The CHAPS Sterling ID

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 getChapsSDetails to return CHAPS Sterling specific information.


Returned data

An object chapss containing the following:

 

 

 Name  Description
 chapssReturnIndicator If R, the bank office is the office to which returned CHAPS Sterling payments should be sent.
 chapssStatus CHAPS Sterling service status:

D – Bank office is a direct office that accepts CHAPS Sterling payments
I – Bank office is an indirect office that accepts CHAPS Sterling payments
N – Bank office does not participate in CHAPS Sterling; does not accept CHAPS
Sterling payments.
 chapssDateLastChanged The date that the details of the bank office’s participation in the CHAPS Sterling clearing was amended. (Note: Removal of the bank office’s participation in CHAPS Sterling is not considered an amendment for the purpose of this field.)
 chapssDateClosed The date from which the bank office will no longer participate in the CHAPS Sterling service.
 chapssCHAPSSterlingID The CHAPS code of the CHAPS Sterling scheme member that settles the CHAPS Sterling payments for this bank office.
 chapssRoutingBICBank The direct BIC BANK to which CHAPS Sterling payments for this bank office should be routed.
 chapssRoutingBICBranch The direct BIC BRANCH to which CHAPS Sterling payments for this bank office should be routed.
 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

 

 

Example Code

c#
The following sample show how to use the getChapsSObject function using c#.
As with all examples, please see the section Adding a reference to the Validate Web Service .

c# Example 1

      validate.validate wsObject = new validate.validate();
      validate.chapse chapsSObject = wsObject.getChapSSDetails("qwerty", "404113");
 

 

c# Example 2

using System;
using
System.Collections.Generic;
using
System.Text;
namespace
getChapsSDetails
{
  class
Program
  {
    static void Main(string
[] args)
    {

      // Define strings for the keycode and the sort code get BACS 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 getChapsEDetails method
      validate.chapse
chapsSObject = wsObject.getChapSSDetails(keycode, sortcode);

      // now we have an object 'chapsEObject' containing all of the 
      // Chaps Euro information for the branch with sort code 404113
      Console
.WriteLine(chapsSObject.chapssStatus);
      Console
.WriteLine(chapsSObject.chapssCHAPSSterlingID);
      Console
.WriteLine(chapsSObject.errorCode);
      Console
.WriteLine(chapsSObject.errorText);
      Console
.ReadLine();
    }
  }
}

 

Visual Basic .net
The following sample show how to use the getChapsEDetails function using Visual Basic.net.
As wilth all examples, please see the section Adding a reference to the Validate Web Service .

 

Visual Basic.net Example

Module Module1
  Sub 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 chaps object for the returning data
    Dim chapsSObject As validate.chapss

    ' Call the web service function - getBacsDetails
    chapsSObject = wsobject.getChapSSDetails(keycode, sortcode)

    ' display the returned information - or error message
    Console.WriteLine("HAPS Sterling Status: " & chapsSObject.chapssStatus)
    Console.WriteLine(
"CHAPS Sterling ID: " & chapsSObject.chapssCHAPSSterlingID)
    Console.WriteLine(chapsSObject.errorCode)
    Console.WriteLine(chapsSObject.errorText)
    Console.ReadLine()

  End Sub
End
Module

 

Java
The following sample show how to use the getChapsEDetails function using Java

package getchapssdetails;
public class Main {

    public static void main(String[] args) {
               
        validate.Validate service = new validate.Validate();
        validate.ValidateSoap port = service.getValidateSoap12();

        java.lang.String keyCode = "qwerty" ;
        java.lang.String sortcode = "404113" ;

        validate.Chapss result = port.getChapSSDetails(keyCode, sortcode);
        System.out.println( "Status = " +result.getChapssStatus());
        System.out.println( "Euro ID Flag = " +result.chapssCHAPSSterlingID
());
        System.out.println( "Error Code = " +result.getErrorCode());
        System.out.println( "Error Message = " +result.getErrorText());
    }

}

 


 


 

 ©Copyright 2023 Paygate Solutions Limited