Before you start

Please download the suggested API integration process flow document and use it as a reference when developing.
Kindly adhere to the Netcash brand guidelines when developing.

Programmers Guide

Refer to our Programmers guide for more detail on how to apply the required methodology in this document.
Ensure that the settings for developers are adhered to before you proceed with your implementation.

Web Service Methods

The list of Netcash web service methods can be found here.

Quick Start Guides

Quick Start Guides will help you understand this service and get you started.

Overview

Bank Account Validation is a web service that uses an algorithm to validate the bank account number, branch code, and account type combination. Any software that allows for the capture of bank account details this web service as it ensures valid data is sent to Netcash will enhance the success of transactions processed. This service does not verify that the account is active or belongs to the individual or company (Bank Account Verification).

We recommend that Universal Branch Codes are used for the validation to be optimized.

CDV validation is performed using a combination of the bank account number, account type, and branch code.
It is an algorithm supplied to Netcash -and continuously updated by the banking system.
This does not guarantee the validity or existence of the account number at any bank or branch, the account holder -or
if the account is active.

We suggest that you first validate -and then verify the account holder’s details to ensure accuracy.

Technical Information

NIWS_Validation is an online, synchronous web service that allows an external system to request validation and receive an immediate response.

NB! This service permits a single request per web service call. For bulk file requests click here

From your application call:

MethodGetBankListWithDefaultBranchCode
Service keyAccount Service Key
Web servicehttps://ws.netcash.co.za/NIWS/niws_validation.svc
MethodValidateBankAccount
Service keyAccount Service Key

Participating Banks and Universal Branch Codes

Most banks make use of Universal Branch Codes (UBC) also known as Central Branch Codes (CBC)

It is always advisable to use the UBC when storing data unless a bank does not offer UBC

 

Bank NameCentral Branch Code (CBC)
Absa Bank632005
Capitec Bank470010
First National Bank (South Africa)250655
Investec Bank580105
Nedbank (South Africa)198765
Postbank460005
Standard Bank (South Africa)051001
Access Bank410105
African Bank430000
Albaraka Bank800000
Bank of Namibia980172
Bidvest Bank462005
Capitec Business (Mercantile Bank)450105
Central Bank of Lesotho586611
Citi Bank350005
Discovery Bank679000
Finbond Mutual Bank589000
First National Bank Lesotho280061
First National Bank Namibia282672
First National Bank Swaziland287364
Grinrod Bank584000
HSBC Bank587000
JP Morgan Chase Bank432000
Meeg Bank470010
MTN Banking490991
Sasfin683000
Standard Bank Namibia087373
State Bank of India801000
Ubank431010
Unibank790005
VBS Mutual Bank588000
Olympus Mobile Bank585001
Tyme Bank678910

Recommended User Experience

  1. Call the web service with method GetBankListWithDefaultBranchCode
    or
  2. Manually create a table in the application database with the bank branches and codes as indicated above.

The suggested method is to create a user experience whereby the user will

  • Select a bank in a  “Drop down” menu and prefill branch code text box and
  • Manually enter a branch code that is not a CBC.
  • If the bank required is not in the dropdown – user to select “other bank” and type the six (6) digit numeric branch code in the text box. Left-pad the input with “0” where data entered is less than 6 chars.
  • For all items above default account type in the database to 1 (cheque/current) except
    • for Nedbank
      • If a Nedbank account number starts with ‘2’ make type 2 (savings) else
      • If Nedbank account number starts with ‘1’ leave type 1 and
    • for Postbank / Capitec / TymeBank

      • Always use account type “2” (savings) for all Postbank, Capitec and TymeBank transactions

All non-listed (above) banks – user to select the actual account type (1 = Current/Cheque, 2 = Savings)

NIWS_Validation is an online, synchronous web service that allows an external system to request validation and receive an immediate response. This service permits only a single request per web service call.

The Service

ObjectNameDescription
methodGetBankListWithDefaultBranchCode

Parameter:

  • ServiceKey (Netcash account service key). Call the service to receive the list of all banks with their default branch code (XML file). Save the data to system as stated above.
methodValidateBankAccount

Parameters:

  • ServiceKey (Netcash Account Service Key)
  • AccountNumber
  • BranchCode
  • AccountType

Examples

Validating Bank Account Information

public ValidateBankAccount(string ServiceKey, string AccountNumber,
                           string BranchCode, string AccountType) {
  // initialise client
  NIWS_Validation.NIWS_ValidationClient client =
      new NIWS_Validation.NIWS_ValidationClient();
  // call the ValidateBankAccount method equal to a string variable
  string Request = client.ValidateBankAccount(ServiceKey, AccountNumber,
                                              BranchCode, AccountType);
  // close client after response is received
  client.Close();
  // convert response received for request
  int response = Convert.ToInt32(Request);
  // if 0 save to system or do something else
  switch (response) {
    case 0:  // do something
      break;
    case 1:  // do something
      break;
    case 2:  // do something
      break;
    case 3:  // do something
      break;
    case 4:  // do something
      break;
    case 100:  // do something
      break;
    default:
      Web service error contact support @netcash.co.za ";
          break;
  }
}

Getting Bank with Branch Code

private void GetBankListWithDefaultBranchCode(string ServiceKey)

{
  // initialise client

  NIWS_Validation.NIWS_ValidationClient client =
      new NIWS_Validation.NIWS_ValidationClient();

  // call the GetBankListWithDefaultBranchCode method equal to a string variable

  string BankListResult = client.GetBankListWithDefaultBranchCode(ServiceKey);

  // do something with xml file

  // for example

  File.WriteAllText("BankList.xml", BankListResult);

  XmlDocument XmlDoc = new XmlDocument();

  XmlDoc.Load("BankList.xml");

  XmlElement XmlEl = XmlDoc.DocumentElement;

  XmlNodeList XmlNode = XmlEl.SelectNodes("/BankListResponse/BankList/Bank");

  foreach (XmlNode node in XmlNode)

  {
    // loop through file
  }
}

Output

You will receive the following numeric code which you need to replace with the description in your application.

Numeric ResponseDescription
0Bank account details valid
1Invalid branch code
2Account number failed check digit validation
3Invalid account type
4Input data incorrect
100Authentication failed
200Web service error contact support@netcash.co.za

Netcash brand guidelines

Please refer to the Netcash brand guidelines here when using any logos, images, icons, labels, descriptions, and references to Netcash in your software.

Testing

See Testing section for more details. If you require any integration assistance contact our technical support team

Netcash may provide example/sample/demo ‘code snippets’ and/or external links in this Technical Document. Such are for guidance purposes only and may not function on every developer’s system/s. Netcash disclaims any and all liability for the usage of guidance resources provided -and you as the Developer; must accept full responsibility for the usage of such. While every possible effort has been taken to ensure compatibility across multiple system configurations, the contents of this document cannot be guaranteed to work on all systems, with all operating systems -and/or with all system configuration/s.