Identity API

PAN Verification

Verify a 10-character Permanent Account Number (PAN) issued by the Indian Income Tax Department.

Request Example
<?php $ch = curl_init(); curl_setopt_array($ch, [ CURLOPT_URL => "https://app.way2api.com/api/v1/pan/verify", CURLOPT_RETURNTRANSFER => true, CURLOPT_POST => true, CURLOPT_HTTPHEADER => [ "Authorization: Bearer YOUR_API_KEY", "Content-Type: application/json" ], CURLOPT_POSTFIELDS => json_encode([ "pan_number" => "ABCDE1234F" ]) ]); $response = curl_exec($ch); $httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE); curl_close($ch); $data = json_decode($response, true); print_r($data);
const response = await fetch("https://app.way2api.com/api/v1/pan/verify", { method: "POST", headers: { "Authorization": "Bearer YOUR_API_KEY", "Content-Type": "application/json" }, body: JSON.stringify({ "pan_number": "ABCDE1234F" }) }); if (!response.ok) { throw new Error(`HTTP error: ${response.status}`); } const data = await response.json(); console.log(data);
curl -X POST https://app.way2api.com/api/v1/pan/verify \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{\"pan_number\":\"ABCDE1234F\"}'
$.ajax({ url: "https://app.way2api.com/api/v1/pan/verify", type: "POST", contentType: "application/json", headers: { "Authorization": "Bearer YOUR_API_KEY" }, data: JSON.stringify({ "pan_number": "ABCDE1234F" }), success: function(data) { console.log(data); }, error: function(xhr) { console.error(xhr.responseJSON); } });
const { data } = await axios.post( "https://app.way2api.com/api/v1/pan/verify", {"pan_number":"ABCDE1234F"}, { headers: { "Authorization": "Bearer YOUR_API_KEY" } } ); console.log(data);
import requests response = requests.post( "https://app.way2api.com/api/v1/pan/verify", headers={ "Authorization": "Bearer YOUR_API_KEY", "Content-Type": "application/json" }, json={ "pan_number": "ABCDE1234F" } ) print(response.status_code) print(response.json())
Response Example
200 OK Success Response
{
    "success": true,
    "message": "",
    "data": {
        "order_id": "W2A1739512345abcdef01",
        "result": {
            "pan_number": "ABCDE1234F",
            "full_name": "RAJESH KUMAR",
            "title": "",
            "full_name_split": [
                "",
                "",
                "RAJESH KUMAR"
            ],
            "pan_status": "E",
            "pan_status_desc": "EXISTING AND VALID",
            "aadhaar_seeding_status": "Y",
            "aadhaar_seeding_status_desc": "Seeded",
            "pan_modified_date": null,
            "category": "individual",
            "client_id": "pan_advanced_v2_xxxxxxxxxxxxxxxxxxxx"
        }
    }
}
4xx Error Response
{
    "success": false,
    "message": "Invalid PAN",
    "data": {
        "order_id": "W2A1739512345abcdef01",
        "error_code": "VERIFICATION_FAILED",
        "result": {
            "pan_number": "AABCY04940",
            "full_name": "",
            "title": "",
            "full_name_split": [],
            "pan_status": "",
            "pan_status_desc": "",
            "aadhaar_seeding_status": "",
            "aadhaar_seeding_status_desc": "",
            "pan_modified_date": null,
            "category": "company"
        }
    }
}
Common Response Codes
Code Meaning
200 OK — Request successful
400 Bad Request — Missing or invalid parameters
401 Unauthorized — Invalid or missing API key
429 Too Many Requests — Rate limit exceeded
500 Server Error — Try again later
Ready to integrate?

Start with free trial API calls. No credit card required.

Get API Key — Free Browse All APIs
Way2API Way2API
Contact Way2API

Login