CDD Engine Web Service v2.14.0.0

<back to all web services

BankDetailsValidationRequest

Requires Authentication
The following routes are available for this service:
POST/BankAccountValidation/submit
import 'package:servicestack/servicestack.dart';

class BankDetailsValidationRequest implements IConvertible
{
    String? CSR;
    String? Sortcode;
    String? AccountNumber;
    String? SourceCode;

    BankDetailsValidationRequest({this.CSR,this.Sortcode,this.AccountNumber,this.SourceCode});
    BankDetailsValidationRequest.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        CSR = json['CSR'];
        Sortcode = json['Sortcode'];
        AccountNumber = json['AccountNumber'];
        SourceCode = json['SourceCode'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'CSR': CSR,
        'Sortcode': Sortcode,
        'AccountNumber': AccountNumber,
        'SourceCode': SourceCode
    };

    getTypeName() => "BankDetailsValidationRequest";
    TypeContext? context = _ctx;
}

TypeContext _ctx = TypeContext(library: 'wp_cddws_test.worldpay.com', types: <String, TypeInfo> {
    'BankDetailsValidationRequest': TypeInfo(TypeOf.Class, create:() => BankDetailsValidationRequest()),
});

Dart BankDetailsValidationRequest 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 /BankAccountValidation/submit HTTP/1.1 
Host: wp-cddws-test.worldpay.com 
Accept: text/csv
Content-Type: text/csv
Content-Length: length

{"CSR":"String","Sortcode":"String","AccountNumber":"String","SourceCode":"String"}