Validate a bank account
curl --request POST \
--url https://api-stg.pandablue.com/v5/account/validate \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--header 'X-Date: <x-date>' \
--header 'X-Login: <x-login>' \
--data '
{
"country": "<string>",
"document": "<string>",
"document_type": "<string>",
"bank_account": {
"account": "<string>",
"bank_code": 123,
"branch": "<string>",
"account_type": "<string>"
},
"first_name": "<string>",
"last_name": "<string>",
"amount": 123,
"currency": "<string>"
}
'import requests
url = "https://api-stg.pandablue.com/v5/account/validate"
payload = {
"country": "<string>",
"document": "<string>",
"document_type": "<string>",
"bank_account": {
"account": "<string>",
"bank_code": 123,
"branch": "<string>",
"account_type": "<string>"
},
"first_name": "<string>",
"last_name": "<string>",
"amount": 123,
"currency": "<string>"
}
headers = {
"X-Date": "<x-date>",
"X-Login": "<x-login>",
"Authorization": "<authorization>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'X-Date': '<x-date>',
'X-Login': '<x-login>',
Authorization: '<authorization>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
country: '<string>',
document: '<string>',
document_type: '<string>',
bank_account: {
account: '<string>',
bank_code: 123,
branch: '<string>',
account_type: '<string>'
},
first_name: '<string>',
last_name: '<string>',
amount: 123,
currency: '<string>'
})
};
fetch('https://api-stg.pandablue.com/v5/account/validate', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api-stg.pandablue.com/v5/account/validate",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'country' => '<string>',
'document' => '<string>',
'document_type' => '<string>',
'bank_account' => [
'account' => '<string>',
'bank_code' => 123,
'branch' => '<string>',
'account_type' => '<string>'
],
'first_name' => '<string>',
'last_name' => '<string>',
'amount' => 123,
'currency' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: <authorization>",
"Content-Type: application/json",
"X-Date: <x-date>",
"X-Login: <x-login>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api-stg.pandablue.com/v5/account/validate"
payload := strings.NewReader("{\n \"country\": \"<string>\",\n \"document\": \"<string>\",\n \"document_type\": \"<string>\",\n \"bank_account\": {\n \"account\": \"<string>\",\n \"bank_code\": 123,\n \"branch\": \"<string>\",\n \"account_type\": \"<string>\"\n },\n \"first_name\": \"<string>\",\n \"last_name\": \"<string>\",\n \"amount\": 123,\n \"currency\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-Date", "<x-date>")
req.Header.Add("X-Login", "<x-login>")
req.Header.Add("Authorization", "<authorization>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api-stg.pandablue.com/v5/account/validate")
.header("X-Date", "<x-date>")
.header("X-Login", "<x-login>")
.header("Authorization", "<authorization>")
.header("Content-Type", "application/json")
.body("{\n \"country\": \"<string>\",\n \"document\": \"<string>\",\n \"document_type\": \"<string>\",\n \"bank_account\": {\n \"account\": \"<string>\",\n \"bank_code\": 123,\n \"branch\": \"<string>\",\n \"account_type\": \"<string>\"\n },\n \"first_name\": \"<string>\",\n \"last_name\": \"<string>\",\n \"amount\": 123,\n \"currency\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-stg.pandablue.com/v5/account/validate")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-Date"] = '<x-date>'
request["X-Login"] = '<x-login>'
request["Authorization"] = '<authorization>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"country\": \"<string>\",\n \"document\": \"<string>\",\n \"document_type\": \"<string>\",\n \"bank_account\": {\n \"account\": \"<string>\",\n \"bank_code\": 123,\n \"branch\": \"<string>\",\n \"account_type\": \"<string>\"\n },\n \"first_name\": \"<string>\",\n \"last_name\": \"<string>\",\n \"amount\": 123,\n \"currency\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"code": 123,
"description": "<string>",
"type": "<string>"
}{
"code": 123,
"description": "<string>",
"type": "<string>"
}Validate bank accounts
Bank account validator
Validates the correctness of beneficiary details, checks if the account exists in the bank, and confirms if it can receive funds. The validations performed are:
- The bank account, branch and type are valid.
- The account exists in the bank.
- The bank account belongs to the beneficiary details indicated (Document, name, etc).
- The amount specified is within the minimum and maximum limits (optional, only performed if amount is sent).
- The account can receive funds (itโs not blocked, closed, etc).
POST
/
account
/
validate
Validate a bank account
curl --request POST \
--url https://api-stg.pandablue.com/v5/account/validate \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--header 'X-Date: <x-date>' \
--header 'X-Login: <x-login>' \
--data '
{
"country": "<string>",
"document": "<string>",
"document_type": "<string>",
"bank_account": {
"account": "<string>",
"bank_code": 123,
"branch": "<string>",
"account_type": "<string>"
},
"first_name": "<string>",
"last_name": "<string>",
"amount": 123,
"currency": "<string>"
}
'import requests
url = "https://api-stg.pandablue.com/v5/account/validate"
payload = {
"country": "<string>",
"document": "<string>",
"document_type": "<string>",
"bank_account": {
"account": "<string>",
"bank_code": 123,
"branch": "<string>",
"account_type": "<string>"
},
"first_name": "<string>",
"last_name": "<string>",
"amount": 123,
"currency": "<string>"
}
headers = {
"X-Date": "<x-date>",
"X-Login": "<x-login>",
"Authorization": "<authorization>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'X-Date': '<x-date>',
'X-Login': '<x-login>',
Authorization: '<authorization>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
country: '<string>',
document: '<string>',
document_type: '<string>',
bank_account: {
account: '<string>',
bank_code: 123,
branch: '<string>',
account_type: '<string>'
},
first_name: '<string>',
last_name: '<string>',
amount: 123,
currency: '<string>'
})
};
fetch('https://api-stg.pandablue.com/v5/account/validate', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api-stg.pandablue.com/v5/account/validate",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'country' => '<string>',
'document' => '<string>',
'document_type' => '<string>',
'bank_account' => [
'account' => '<string>',
'bank_code' => 123,
'branch' => '<string>',
'account_type' => '<string>'
],
'first_name' => '<string>',
'last_name' => '<string>',
'amount' => 123,
'currency' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: <authorization>",
"Content-Type: application/json",
"X-Date: <x-date>",
"X-Login: <x-login>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api-stg.pandablue.com/v5/account/validate"
payload := strings.NewReader("{\n \"country\": \"<string>\",\n \"document\": \"<string>\",\n \"document_type\": \"<string>\",\n \"bank_account\": {\n \"account\": \"<string>\",\n \"bank_code\": 123,\n \"branch\": \"<string>\",\n \"account_type\": \"<string>\"\n },\n \"first_name\": \"<string>\",\n \"last_name\": \"<string>\",\n \"amount\": 123,\n \"currency\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-Date", "<x-date>")
req.Header.Add("X-Login", "<x-login>")
req.Header.Add("Authorization", "<authorization>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api-stg.pandablue.com/v5/account/validate")
.header("X-Date", "<x-date>")
.header("X-Login", "<x-login>")
.header("Authorization", "<authorization>")
.header("Content-Type", "application/json")
.body("{\n \"country\": \"<string>\",\n \"document\": \"<string>\",\n \"document_type\": \"<string>\",\n \"bank_account\": {\n \"account\": \"<string>\",\n \"bank_code\": 123,\n \"branch\": \"<string>\",\n \"account_type\": \"<string>\"\n },\n \"first_name\": \"<string>\",\n \"last_name\": \"<string>\",\n \"amount\": 123,\n \"currency\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-stg.pandablue.com/v5/account/validate")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-Date"] = '<x-date>'
request["X-Login"] = '<x-login>'
request["Authorization"] = '<authorization>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"country\": \"<string>\",\n \"document\": \"<string>\",\n \"document_type\": \"<string>\",\n \"bank_account\": {\n \"account\": \"<string>\",\n \"bank_code\": 123,\n \"branch\": \"<string>\",\n \"account_type\": \"<string>\"\n },\n \"first_name\": \"<string>\",\n \"last_name\": \"<string>\",\n \"amount\": 123,\n \"currency\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"code": 123,
"description": "<string>",
"type": "<string>"
}{
"code": 123,
"description": "<string>",
"type": "<string>"
}Validate a bank account
Validates the correctness of beneficiary details, checks if the account exists in the bank, and confirms if it can receive funds.
The validations performed are:
1. The bank account, branch and type are valid.
2. The account exists in the bank.
3. The bank account belongs to the beneficiary details indicated (Document, name, etc).
4. The amount specified is within the minimum and maximum limits (optional, only performed if amount is sent).\
Headers
Body
application/json
Details of the bank account to validate.
Response
No Content. The bank account is valid and passed all validations.