Pan Details V1

Post  https://api.aopay.co.in/api/AOP/V1/Validation/PanDetails


Fetches comprehensive details of the PAN card holder, including PAN status, full name, and other available attributes as returned by the PAN authority. Useful for deeper validation or when additional PAN-related information is required for compliance or verification.

Body Parameters
{
 "PanNumber" : "JRXXS9XX0D",
 "RegistrationID" : "AOP-554"
}
Request Parameters
Name Type Description
PanNumber String 10-character alphanumeric PAN to be validated.
RegistrationID String Unique registration identifier, often tied to the user.
Responses

200

200

Response

200

RESPONSE BODY

Json

401

401

Response

401

RESPONSE BODY

Object

status     boolean

response_code     integer

message     string


Did this page help you?     Yes    No

Language
shell Shell
python Python
node Node
c# C#
php PHP

cURL

curl --location  'https://api.aopay.co.in/api/AOP/V1/Validation/PanDetails' \
--data  '{
  "PanNumber": "JRXXS9XX0D",
  "RegistrationID": "AOP-554"
}'
                                
import requests

url = 'https://api.aopay.co.in/api/AOP/V1/Validation/PanDetails'

payload = json.dumps({
 "PanNumber": "JRXXS9XX0D",
 "RegistrationID": "AOP-554"
}) 
headers = {
  "Content-type" : "application/json"
}

response = requests.request("POST", url, headers=headers, data=payload)

print (response.text)
                                
var requests = require("request");
var options = { 
  "method" : "POST",
  "url" : 'https://api.aopay.co.in/api/AOP/V1/Validation/PanDetails',
  "headers" : {
      "Content-Type" : 'application/json'
    },
    body: JSON.stringify({
     "PanNumber": "JRXXS9XX0D",
     "RegistrationID": "AOP-554"
    }) 
}; 
request(options, function(error, response){
   if(error) throw new Error(error);
   console.log(response.body); 
}); 
                                
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Post,'https://api.aopay.co.in/api/AOP/V1/Validation/PanDetails')
var content = new StringContent(
  "{
   "PanNumber": "JRXXS9XX0D",
   "RegistrationID": "AOP-554"
  }",
  null,"application/json"
);

request.Content = content;
var response =  await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());
                                
<?php
$curl =  curl_init();
curl_setopt_array($curl, array(
  CURLOPT_URL =>  'https://api.aopay.co.in/api/AOP/V1/Validation/PanDetails',
  CURLOPT_RETURNTRANSFER =>  true,
  CURLOPT_ENCODING =>  '',
  CURLOPT_MAXREDIRS =>  10,
  CURLOPT_TIMEOUT =>  0,
  CURLOPT_FOLLOWLOCATION =>  true,
  CURLOPT_HTTP_VERSION =>  CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST =>  'POST',
  CURLOPT_POSTFIELDS =>  '{
    "PanNumber": "JRXXS9XX0D",
    "RegistrationID": "AOP-554"
  }',
  CURLOPT_HTTPHEADER =>  array(
    'Content-Type: application/json'
  ),
));
$response =  curl_exec($curl);
curl_close($curl);
echo $response;
                                

RESPONSE

200

401

-Result

Example

{
    "http_response_code": 200,
    "result_code": 101,
    "request_id":   "01988364-afd5-897b-bcb7-f8b6b61db455",
    "client_ref_num": "TERF53519",
    "result": {
            "pan": "JRXXS9XX0D",
            "pan_type": "Individual",
            "fullname": "Tester Expert",
            "first_name": "Tester",
            "middle_name": "",
            "last_name": "Expert",
            "gender": "male",
            "dob": "18/06/2001",
            aadhaar_number": "XXXXXXXXXX36",
            "aadhaar_linked": true,
            "address": {
                    "building_name": "",
                    "locality": "",
                    "street_name": "",
                    "pincode": "",
                    "city": "",
                    "state": "",
                    "country": "India",
            }, 
            "mobile": "",
            "email": ""
            },
            "Status": "FALSE",
            "message": "",
            "Value": ""
       }