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 .csv suffix or ?format=csv

HTTP + CSV

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/csv
Content-Type: text/csv
Content-Length: length

{"Sortcode":"String","AccountNumber":"String","Csr":"String"}
HTTP/1.1 200 OK
Content-Type: text/csv
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"}}}