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
Imports System
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports CDD_Engine_WS.dto.Requests
Imports CDD_Engine_WS.dto.Responses

Namespace Global

    Namespace CDD_Engine_WS.dto.Requests

        Public Partial Class BankAccountRequest
            '''<Summary>
            '''The bank sort code.
            '''</Summary>
            <Required>
            Public Overridable Property Sortcode As String

            '''<Summary>
            '''The bank account number.
            '''</Summary>
            <Required>
            Public Overridable Property AccountNumber As String

            '''<Summary>
            '''The Csr of the application (if available).
            '''</Summary>
            Public Overridable Property Csr As String
        End Class
    End Namespace

    Namespace CDD_Engine_WS.dto.Responses

        Public Partial Class BankAccountResponse
            '''<Summary>
            '''Contains the bank account lookup result when successful.
            '''</Summary>
            Public Overridable Property Result As BankAccountResult
            '''<Summary>
            '''Contains response status, details and errors.
            '''</Summary>
            Public Overridable Property ResponseStatus As ResponseStatus
        End Class

        Public Partial Class BankAccountResult
            Public Overridable Property AccountName As String
            Public Overridable Property BankName As String
            Public Overridable Property SortCode As String
            Public Overridable Property IsValid As Boolean
            Public Overridable Property IsDirectDebitCapable As Nullable(Of Boolean)
            Public Overridable Property AccountNumber As String
        End Class
    End Namespace
End Namespace

VB.NET BankAccountRequest DTOs

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"}}}