CDD Engine Web Service v2.14.0.0

<back to all web services

BankAccountRequest

iNASA
Requires Authentication
The following routes are available for this service:
GET, POST/BankAccount
import java.math.*;
import java.util.*;
import net.servicestack.client.*;

public class dtos
{

    public static class BankAccountRequest
    {
        /**
        * The bank sort code.
        */
        @Required()
        public String Sortcode = null;

        /**
        * The bank account number.
        */
        @Required()
        public String AccountNumber = null;

        /**
        * The Csr of the application (if available).
        */
        public String Csr = null;
        
        public String getSortcode() { return Sortcode; }
        public BankAccountRequest setSortcode(String value) { this.Sortcode = value; return this; }
        public String getAccountNumber() { return AccountNumber; }
        public BankAccountRequest setAccountNumber(String value) { this.AccountNumber = value; return this; }
        public String getCsr() { return Csr; }
        public BankAccountRequest setCsr(String value) { this.Csr = value; return this; }
    }

    public static class BankAccountResponse
    {
        /**
        * Contains the bank account lookup result when successful.
        */
        public BankAccountResult Result = null;
        /**
        * Contains response status, details and errors.
        */
        public ResponseStatus ResponseStatus = null;
        
        public BankAccountResult getResult() { return Result; }
        public BankAccountResponse setResult(BankAccountResult value) { this.Result = value; return this; }
        public ResponseStatus getResponseStatus() { return ResponseStatus; }
        public BankAccountResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; }
    }

    public static class BankAccountResult
    {
        public String AccountName = null;
        public String BankName = null;
        public String SortCode = null;
        public Boolean IsValid = null;
        public Boolean IsDirectDebitCapable = null;
        public String AccountNumber = null;
        
        public String getAccountName() { return AccountName; }
        public BankAccountResult setAccountName(String value) { this.AccountName = value; return this; }
        public String getBankName() { return BankName; }
        public BankAccountResult setBankName(String value) { this.BankName = value; return this; }
        public String getSortCode() { return SortCode; }
        public BankAccountResult setSortCode(String value) { this.SortCode = value; return this; }
        public Boolean getIsValid() { return IsValid; }
        public BankAccountResult setIsValid(Boolean value) { this.IsValid = value; return this; }
        public Boolean getIsDirectDebitCapable() { return IsDirectDebitCapable; }
        public BankAccountResult setIsDirectDebitCapable(Boolean value) { this.IsDirectDebitCapable = value; return this; }
        public String getAccountNumber() { return AccountNumber; }
        public BankAccountResult setAccountNumber(String value) { this.AccountNumber = value; return this; }
    }

}

Java BankAccountRequest DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv

HTTP + JSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /BankAccount HTTP/1.1 
Host: wpcdd-featuretest-ws.worldpay.com 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	Sortcode: String,
	AccountNumber: String,
	Csr: String
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	Result: 
	{
		AccountName: String,
		BankName: String,
		SortCode: String,
		IsValid: False,
		IsDirectDebitCapable: False,
		AccountNumber: String
	},
	ResponseStatus: 
	{
		ErrorCode: String,
		Message: String,
		StackTrace: String,
		Errors: 
		[
			{
				ErrorCode: String,
				FieldName: String,
				Message: String,
				Meta: 
				{
					String: String
				}
			}
		],
		Meta: 
		{
			String: String
		}
	}
}