Documentation V3
Ask or search…
K

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.
post
https://api.stage.localpayment.com/api/validation/bank
Bank Account Validation

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.
JSON: Example request
cURL: Example request
BRA: Example request (JSON)
BRA: Example request (cURL)
{
"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

Status OK
Bad Request
{
"code" : "200",
"description" : "Valid bank code and account number"
}
{
"code": "701",
"description": "Bank code not found"
}

Check the CountryISO Code3 in the following section:

Check our bank code list in the following section

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