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
BankAccountRequest Parameters:
NameParameterData TypeRequiredDescription
SortcodebodystringYesThe bank sort code.
AccountNumberbodystringYesThe bank account number.
CsrbodystringNoThe Csr of the application (if available).
BankAccountResponse Parameters:
NameParameterData TypeRequiredDescription
ResultformBankAccountResultYesContains the bank account lookup result when successful.
ResponseStatusformResponseStatusNoContains response status, details and errors.
BankAccountResult Parameters:
NameParameterData TypeRequiredDescription
AccountNameformstringNo
BankNameformstringNo
SortCodeformstringNo
IsValidformboolNo
IsDirectDebitCapableformbool?No
AccountNumberformstringNo

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: wp-cddws-test.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
		}
	}
}