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
bank*
Object
Mandatory. Bank object.
branch.code
String
Branch code. Only mandatory for brazilian's bank account. It lenght should be between 1 to 5 characters
bank.account.number*
String
Mandatory. Bank account number.
{
"code": "200",
"description": "Valid bank code and account number"
}
Validation Error Codes Please find all the possible error codes in this link
{
"code": "404",
"description": "bank code doesn't exist"
}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"
}
}
}curl --location --request POST 'https://api.stage.localpayment.com/api/validation/bank' \
--header 'Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNjQ2Njc3NTY4LCJqdGkiOiJkMDM5MDAzZGUwOTQ0OGI3YTM2NjU0MDk4M2FlYTg0ZCIsInVzZXJfaWQiOjMwLCJzdXBlcnVzZXIiOnRydWUsImlzX3N0YWZmIjpmYWxzZSwicm9sZXMiOlsiQUxMIl0sImNvdW50cmllcyI6WyJBTEwiXSwiY29tcGFueSI6IjAwMDEiLCJjbGllbnRfY29kZSI6IjAwMDEifQ.DOceicigffhfAVjvldfpi2D5byOp_pEYr5Sq3b_kp7Q' \
--header 'Content-Type: application/json' \
--data-raw '{
"country" : "ARG",
"bank" : {
"code" : "191",
"account" : {
"number" : "1910119655111901676653",
"type" : "s"
}
}
}'{
"country" : "BRA",
"bank" : {
"code" : "341",
"branch": {
"code" : "6393"
},
"account" : {
"number" : "217309",
"type" : "S"
}
}
}curl --location --request POST 'https://api.stage.localpayment.com/api/validation/bank' \
--header 'Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNjQ2Njc3OTIyLCJqdGkiOiIxNzk1YWY3MTdkMTE0ZjAwYmYwNmY3YTVmYzRjZGY3NCIsInVzZXJfaWQiOjMwLCJzdXBlcnVzZXIiOnRydWUsImlzX3N0YWZmIjpmYWxzZSwicm9sZXMiOlsiQUxMIl0sImNvdW50cmllcyI6WyJBTEwiXSwiY29tcGFueSI6IjAwMDEiLCJjbGllbnRfY29kZSI6IjAwMDEifQ.RjbPtAOJ8RSqa3HWdB0vZb4uWLbW5gS_ODu62BOgVNc' \
--header 'Content-Type: application/json' \
--data-raw '{
"country" : "BRA",
"bank" : {
"code" : "341",
"branch": {
"code" : "6393"
},
"account" : {
"number" : "217309",
"type" : "S"
}
}
}'Examples: Bank account validations response
{
"code" : "200",
"description" : "Valid bank code and account number"
}{
"code": "701",
"description": "Bank code not found"
}Please Check all the possible error codes in this link
Validation Error CodesCheck the CountryISO Code3 in the following section:
Country CodesCheck our bank code list in the following section
Bank codesCheck the bank account validations requirements in each country in the following section:
Bank account validationsLast updated
Was this helpful?