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