Verify PAN
curl --request POST \
--url https://api.stablepay.global/v2/users/{userId}/kyc/pan/verify \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"panNumber": "<string>",
"name": "<string>",
"deviceId": "<string>"
}
'import requests
url = "https://api.stablepay.global/v2/users/{userId}/kyc/pan/verify"
payload = {
"panNumber": "<string>",
"name": "<string>",
"deviceId": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({panNumber: '<string>', name: '<string>', deviceId: '<string>'})
};
fetch('https://api.stablepay.global/v2/users/{userId}/kyc/pan/verify', 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.stablepay.global/v2/users/{userId}/kyc/pan/verify",
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([
'panNumber' => '<string>',
'name' => '<string>',
'deviceId' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$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.stablepay.global/v2/users/{userId}/kyc/pan/verify"
payload := strings.NewReader("{\n \"panNumber\": \"<string>\",\n \"name\": \"<string>\",\n \"deviceId\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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.stablepay.global/v2/users/{userId}/kyc/pan/verify")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"panNumber\": \"<string>\",\n \"name\": \"<string>\",\n \"deviceId\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.stablepay.global/v2/users/{userId}/kyc/pan/verify")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"panNumber\": \"<string>\",\n \"name\": \"<string>\",\n \"deviceId\": \"<string>\"\n}"
response = http.request(request)
puts response.read_bodyKYC
Verify PAN
Verify user PAN card
POST
/
v2
/
users
/
{userId}
/
kyc
/
pan
/
verify
Verify PAN
curl --request POST \
--url https://api.stablepay.global/v2/users/{userId}/kyc/pan/verify \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"panNumber": "<string>",
"name": "<string>",
"deviceId": "<string>"
}
'import requests
url = "https://api.stablepay.global/v2/users/{userId}/kyc/pan/verify"
payload = {
"panNumber": "<string>",
"name": "<string>",
"deviceId": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({panNumber: '<string>', name: '<string>', deviceId: '<string>'})
};
fetch('https://api.stablepay.global/v2/users/{userId}/kyc/pan/verify', 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.stablepay.global/v2/users/{userId}/kyc/pan/verify",
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([
'panNumber' => '<string>',
'name' => '<string>',
'deviceId' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$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.stablepay.global/v2/users/{userId}/kyc/pan/verify"
payload := strings.NewReader("{\n \"panNumber\": \"<string>\",\n \"name\": \"<string>\",\n \"deviceId\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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.stablepay.global/v2/users/{userId}/kyc/pan/verify")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"panNumber\": \"<string>\",\n \"name\": \"<string>\",\n \"deviceId\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.stablepay.global/v2/users/{userId}/kyc/pan/verify")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"panNumber\": \"<string>\",\n \"name\": \"<string>\",\n \"deviceId\": \"<string>\"\n}"
response = http.request(request)
puts response.read_bodyVerify PAN
Verifies the user’s PAN card against government database.10-character PAN number (e.g., ABCDE1234F)
Name to match against (2-255 chars). If omitted, the verified Aadhaar name is used.
Device fingerprint/ID for FIU compliance. Must be captured from the client device.
Request
curl -X POST https://api.stablepay.global/v2/users/usr_abc123/kyc/pan/verify \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"panNumber": "ABCDE1234F",
"deviceId": "device-fingerprint-12345"
}'
Response
{
"success": true,
"data": {
"verified": true,
"name": "RAHUL KUMAR",
"maskedPan": "XXXXX1234X",
"nameMatchScore": 95
}
}
nameMatchScore is an integer from 0-100, or null when there was no name to match against.
Errors
error | Description |
|---|---|
Validation Error | Invalid PAN format |
Already Verified | PAN is already verified for this user |
Verification Failed | PAN not found in the government database |
Not Found | User not found |
⌘I
