Validate one or more Pix Keys
curl --request POST \
--url https://api-stg.pandablue.com/v5/account/pix_key/validate \
--header 'Authorization: <authorization>' \
--header 'Content-Type: <content-type>' \
--header 'X-Date: <x-date>' \
--header 'X-Login: <x-login>' \
--data '
[
{
"pix": "<string>"
}
]
'import requests
url = "https://api-stg.pandablue.com/v5/account/pix_key/validate"
payload = [{ "pix": "<string>" }]
headers = {
"Content-Type": "<content-type>",
"X-Date": "<x-date>",
"X-Login": "<x-login>",
"Authorization": "<authorization>"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'Content-Type': '<content-type>',
'X-Date': '<x-date>',
'X-Login': '<x-login>',
Authorization: '<authorization>'
},
body: JSON.stringify([{pix: '<string>'}])
};
fetch('https://api-stg.pandablue.com/v5/account/pix_key/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/pix_key/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([
[
'pix' => '<string>'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: <authorization>",
"Content-Type: <content-type>",
"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/pix_key/validate"
payload := strings.NewReader("[\n {\n \"pix\": \"<string>\"\n }\n]")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "<content-type>")
req.Header.Add("X-Date", "<x-date>")
req.Header.Add("X-Login", "<x-login>")
req.Header.Add("Authorization", "<authorization>")
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/pix_key/validate")
.header("Content-Type", "<content-type>")
.header("X-Date", "<x-date>")
.header("X-Login", "<x-login>")
.header("Authorization", "<authorization>")
.body("[\n {\n \"pix\": \"<string>\"\n }\n]")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-stg.pandablue.com/v5/account/pix_key/validate")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = '<content-type>'
request["X-Date"] = '<x-date>'
request["X-Login"] = '<x-login>'
request["Authorization"] = '<authorization>'
request.body = "[\n {\n \"pix\": \"<string>\"\n }\n]"
response = http.request(request)
puts response.read_body[
{
"pix": "<string>",
"valid": true
}
]{
"code": 123,
"description": "<string>",
"type": "<string>"
}Validate bank accounts
Pix keys validator
This endpoint allows you to verify whether a Pix Key exists or not. All Pix Key types can be verified with this API.
POST
/
account
/
pix_key
/
validate
Validate one or more Pix Keys
curl --request POST \
--url https://api-stg.pandablue.com/v5/account/pix_key/validate \
--header 'Authorization: <authorization>' \
--header 'Content-Type: <content-type>' \
--header 'X-Date: <x-date>' \
--header 'X-Login: <x-login>' \
--data '
[
{
"pix": "<string>"
}
]
'import requests
url = "https://api-stg.pandablue.com/v5/account/pix_key/validate"
payload = [{ "pix": "<string>" }]
headers = {
"Content-Type": "<content-type>",
"X-Date": "<x-date>",
"X-Login": "<x-login>",
"Authorization": "<authorization>"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'Content-Type': '<content-type>',
'X-Date': '<x-date>',
'X-Login': '<x-login>',
Authorization: '<authorization>'
},
body: JSON.stringify([{pix: '<string>'}])
};
fetch('https://api-stg.pandablue.com/v5/account/pix_key/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/pix_key/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([
[
'pix' => '<string>'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: <authorization>",
"Content-Type: <content-type>",
"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/pix_key/validate"
payload := strings.NewReader("[\n {\n \"pix\": \"<string>\"\n }\n]")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "<content-type>")
req.Header.Add("X-Date", "<x-date>")
req.Header.Add("X-Login", "<x-login>")
req.Header.Add("Authorization", "<authorization>")
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/pix_key/validate")
.header("Content-Type", "<content-type>")
.header("X-Date", "<x-date>")
.header("X-Login", "<x-login>")
.header("Authorization", "<authorization>")
.body("[\n {\n \"pix\": \"<string>\"\n }\n]")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-stg.pandablue.com/v5/account/pix_key/validate")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = '<content-type>'
request["X-Date"] = '<x-date>'
request["X-Login"] = '<x-login>'
request["Authorization"] = '<authorization>'
request.body = "[\n {\n \"pix\": \"<string>\"\n }\n]"
response = http.request(request)
puts response.read_body[
{
"pix": "<string>",
"valid": true
}
]{
"code": 123,
"description": "<string>",
"type": "<string>"
}Headers
Body
application/json
A JSON array of Pix Key objects to be validated.