ValidateBankAccount

Summary

Validates and evaluates the account and bank details in the context of direct debit payment. It is possible to transfer either the combination of BankCode and AccountNumber or IBAN and BIC

Resource URL /api/v3/validate/bank-account
HTTP method POST
Content type application/json; charset=utf-8

Input parameters

Parameter name Location Type / Model Description
request Body ValidateBankAccountRequest required

Responses

HTTP status code Model Comment
OK(200) ValidateBankAccountResponse Check account response
BadRequest (400) array of ResponseMessage Request failed. Check response model for list of Errors.
Unauthorized (401) API user is unauthorized. Make sure X-Auth-Key header is sent.
InternalServerError (500) Request failed due internal error. Retry request later.

Examples

{
  "bankAccount": "NB0000188645236",
  "bankCode": "XYZ000ABC"
}
{
  "isValid": true
}
var AfterPayApi = require("./afterPay.js");
var apiKeyAuthentication = require("./api_key_filter");

var key = 'CHANGE_ME';
var client = new AfterPayApi().addFilter(apiKeyAuthentication.create(key));
var request = {
  "bankAccount": "NB0000188645236",
  "bankCode": "XYZ000ABC"
};

client.Common.validateBankAccount(request, 
  function(err, response, httpRequest, httpResponse) {
  });
$LOAD_PATH.unshift File.dirname(__FILE__)
require 'after_pay.rb'
require 'json'

client = AfterPayApi::AfterPay.new(AfterPayApi::ApiKeyCredentials.new('YOUR_API_KEY'))

requestAsJson = '{"bankAccount":"NB0000188645236","bankCode":"XYZ000ABC"}'
request = AfterPayApi::Models::ValidateBankAccountRequest.deserialize_object(JSON.parse(requestAsJson))


client.common.validateBankAccount_async(request).then{|response|

}.execute.wait
var key = "CHANGE_ME";
var client = new CommonApi(new Configuration() { DefaultHeader = new Dictionary<string, string>() { { "X-Auth-Key", key} } });

var request = new ValidateBankAccountRequest(){
  BankAccount = "NB0000188645236",
  BankCode = "XYZ000ABC"
};

var responce = client.CommonValidateBankAccount(request);