GET, POST | /BankAccount |
---|
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
Sortcode | body | string | Yes | The bank sort code. |
AccountNumber | body | string | Yes | The bank account number. |
Csr | body | string | No | The Csr of the application (if available). |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
Result | form | BankAccountResult | Yes | Contains the bank account lookup result when successful. |
ResponseStatus | form | ResponseStatus | No | Contains response status, details and errors. |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
AccountName | form | string | No | |
BankName | form | string | No | |
SortCode | form | string | No | |
IsValid | form | bool | No | |
IsDirectDebitCapable | form | bool? | No | |
AccountNumber | form | string | No |
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=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 } } }