Bank Account Validation

Check if a bank account is valid. Use this service before sending a request in order to avoid transaction rejection due to data mismatch.

Bank Account Validation

POST https://api.stage.localpayment.com/api/validation/bank

Request Body

NameTypeDescription

country*

String

Mantory. Country of the bank account to be validated. Country ISOCode3 format.

bank*

Object

Mandatory. Bank object.

bank.code*

String

Mandatory. Bank code, according to Localpayment bank codes list.

branch

Object

Branch object. Only mandatory for brazilian's bank account

branch.code

String

Branch code. Only mandatory for brazilian's bank account. It lenght should be between 1 to 5 characters

bank.account*

Object

bank.account.number*

String

Mandatory. Bank account number.

type*

String

Mandatory. Bank account type. It has to be "C" for "ckeching" or "S" for "saving". In Chile and Peru have more account types.


    {
        "code": "200",
        "description": "Valid bank code and account number"
    }

Bank Account Validation: Example request

Below there are two sample requests, both in json and curl format. The first request example is to validate bank accounts from all the countries that LP works with, except Brazil. The second example is therefore to validate Brazilian bank accounts.

{
    "country" : "ARG",
    "bank" : {
        "code" : "191",
        "account" : {
            "number" : "1910119655111901676653",
            "type" : "s"
        }
    }
}

Examples: Bank account validations response

{
    "code" : "200",
    "description" : "Valid bank code and account number"
 
}
Validation Error Codes

Check the CountryISO Code3 in the following section:

Country Codes

Check our bank code list in the following section

Bank codes

Check the bank account validations requirements in each country in the following section:

Bank account validations

Last updated