Validate Customer KYC
curl --request POST \
--url https://api-stg.pandablue.com/v1/kyc \
--header 'Authorization: <authorization>' \
--header 'Content-Type: <content-type>' \
--header 'X-Date: <x-date>' \
--header 'X-Login: <x-login>' \
--data '
{
"country": "<string>",
"document": "<string>",
"document_type": "<string>",
"first_name": "<string>",
"last_name": "<string>",
"phone": "<string>",
"email": "[email protected]",
"bank_account": {
"bank_code": "<string>",
"account": "<string>",
"branch": "<string>",
"account_type": "<string>"
},
"user_ip": "<string>"
}
'import requests
url = "https://api-stg.pandablue.com/v1/kyc"
payload = {
"country": "<string>",
"document": "<string>",
"document_type": "<string>",
"first_name": "<string>",
"last_name": "<string>",
"phone": "<string>",
"email": "[email protected]",
"bank_account": {
"bank_code": "<string>",
"account": "<string>",
"branch": "<string>",
"account_type": "<string>"
},
"user_ip": "<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({
country: '<string>',
document: '<string>',
document_type: '<string>',
first_name: '<string>',
last_name: '<string>',
phone: '<string>',
email: '[email protected]',
bank_account: {
bank_code: '<string>',
account: '<string>',
branch: '<string>',
account_type: '<string>'
},
user_ip: '<string>'
})
};
fetch('https://api-stg.pandablue.com/v1/kyc', 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/v1/kyc",
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>',
'first_name' => '<string>',
'last_name' => '<string>',
'phone' => '<string>',
'email' => '[email protected]',
'bank_account' => [
'bank_code' => '<string>',
'account' => '<string>',
'branch' => '<string>',
'account_type' => '<string>'
],
'user_ip' => '<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/v1/kyc"
payload := strings.NewReader("{\n \"country\": \"<string>\",\n \"document\": \"<string>\",\n \"document_type\": \"<string>\",\n \"first_name\": \"<string>\",\n \"last_name\": \"<string>\",\n \"phone\": \"<string>\",\n \"email\": \"[email protected]\",\n \"bank_account\": {\n \"bank_code\": \"<string>\",\n \"account\": \"<string>\",\n \"branch\": \"<string>\",\n \"account_type\": \"<string>\"\n },\n \"user_ip\": \"<string>\"\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/v1/kyc")
.header("Content-Type", "<content-type>")
.header("X-Date", "<x-date>")
.header("X-Login", "<x-login>")
.header("Authorization", "<authorization>")
.body("{\n \"country\": \"<string>\",\n \"document\": \"<string>\",\n \"document_type\": \"<string>\",\n \"first_name\": \"<string>\",\n \"last_name\": \"<string>\",\n \"phone\": \"<string>\",\n \"email\": \"[email protected]\",\n \"bank_account\": {\n \"bank_code\": \"<string>\",\n \"account\": \"<string>\",\n \"branch\": \"<string>\",\n \"account_type\": \"<string>\"\n },\n \"user_ip\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-stg.pandablue.com/v1/kyc")
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 \"country\": \"<string>\",\n \"document\": \"<string>\",\n \"document_type\": \"<string>\",\n \"first_name\": \"<string>\",\n \"last_name\": \"<string>\",\n \"phone\": \"<string>\",\n \"email\": \"[email protected]\",\n \"bank_account\": {\n \"bank_code\": \"<string>\",\n \"account\": \"<string>\",\n \"branch\": \"<string>\",\n \"account_type\": \"<string>\"\n },\n \"user_ip\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"description": "<string>",
"user": {},
"fraud_statistics": {},
"errors": [
{}
]
}{
"code": 123,
"description": "<string>",
"type": "<string>"
}{
"code": 123,
"description": "<string>",
"type": "<string>"
}Get customer information
Get customer information
This endpoint allows you to validate your customerโs KYC information. The feature must be enabled for your account before use.
POST
/
kyc
Validate Customer KYC
curl --request POST \
--url https://api-stg.pandablue.com/v1/kyc \
--header 'Authorization: <authorization>' \
--header 'Content-Type: <content-type>' \
--header 'X-Date: <x-date>' \
--header 'X-Login: <x-login>' \
--data '
{
"country": "<string>",
"document": "<string>",
"document_type": "<string>",
"first_name": "<string>",
"last_name": "<string>",
"phone": "<string>",
"email": "[email protected]",
"bank_account": {
"bank_code": "<string>",
"account": "<string>",
"branch": "<string>",
"account_type": "<string>"
},
"user_ip": "<string>"
}
'import requests
url = "https://api-stg.pandablue.com/v1/kyc"
payload = {
"country": "<string>",
"document": "<string>",
"document_type": "<string>",
"first_name": "<string>",
"last_name": "<string>",
"phone": "<string>",
"email": "[email protected]",
"bank_account": {
"bank_code": "<string>",
"account": "<string>",
"branch": "<string>",
"account_type": "<string>"
},
"user_ip": "<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({
country: '<string>',
document: '<string>',
document_type: '<string>',
first_name: '<string>',
last_name: '<string>',
phone: '<string>',
email: '[email protected]',
bank_account: {
bank_code: '<string>',
account: '<string>',
branch: '<string>',
account_type: '<string>'
},
user_ip: '<string>'
})
};
fetch('https://api-stg.pandablue.com/v1/kyc', 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/v1/kyc",
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>',
'first_name' => '<string>',
'last_name' => '<string>',
'phone' => '<string>',
'email' => '[email protected]',
'bank_account' => [
'bank_code' => '<string>',
'account' => '<string>',
'branch' => '<string>',
'account_type' => '<string>'
],
'user_ip' => '<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/v1/kyc"
payload := strings.NewReader("{\n \"country\": \"<string>\",\n \"document\": \"<string>\",\n \"document_type\": \"<string>\",\n \"first_name\": \"<string>\",\n \"last_name\": \"<string>\",\n \"phone\": \"<string>\",\n \"email\": \"[email protected]\",\n \"bank_account\": {\n \"bank_code\": \"<string>\",\n \"account\": \"<string>\",\n \"branch\": \"<string>\",\n \"account_type\": \"<string>\"\n },\n \"user_ip\": \"<string>\"\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/v1/kyc")
.header("Content-Type", "<content-type>")
.header("X-Date", "<x-date>")
.header("X-Login", "<x-login>")
.header("Authorization", "<authorization>")
.body("{\n \"country\": \"<string>\",\n \"document\": \"<string>\",\n \"document_type\": \"<string>\",\n \"first_name\": \"<string>\",\n \"last_name\": \"<string>\",\n \"phone\": \"<string>\",\n \"email\": \"[email protected]\",\n \"bank_account\": {\n \"bank_code\": \"<string>\",\n \"account\": \"<string>\",\n \"branch\": \"<string>\",\n \"account_type\": \"<string>\"\n },\n \"user_ip\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-stg.pandablue.com/v1/kyc")
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 \"country\": \"<string>\",\n \"document\": \"<string>\",\n \"document_type\": \"<string>\",\n \"first_name\": \"<string>\",\n \"last_name\": \"<string>\",\n \"phone\": \"<string>\",\n \"email\": \"[email protected]\",\n \"bank_account\": {\n \"bank_code\": \"<string>\",\n \"account\": \"<string>\",\n \"branch\": \"<string>\",\n \"account_type\": \"<string>\"\n },\n \"user_ip\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"description": "<string>",
"user": {},
"fraud_statistics": {},
"errors": [
{}
]
}{
"code": 123,
"description": "<string>",
"type": "<string>"
}{
"code": 123,
"description": "<string>",
"type": "<string>"
}Headers
Body
application/json
KYC data for validation.