PAN Comprehensive API
Send a PAN with consent and get back the registered name (split into first and last), date of birth, gender, holder category, masked linked Aadhaar and address fields where available.
- Source
- Income Tax Department PAN records, through authorised data partners
- Turnaround
- Real time, usually a few seconds
- Endpoint
- POST /v1/pan/comprehensive
- Who can use it
- Businesses with the holder's consent and a KYC or onboarding purpose. We review the use case before switching it on.
Overview
Where the standard PAN check answers 'does this match?', this one fills the form for you. Send a PAN and we return the registered details so the user doesn't have to type their name and DOB, and you start with the official spelling rather than whatever they typed.
Good to know
Address and gender are not available for every PAN, especially older or non-individual ones. Treat them as optional fields.
What you get
- Pre-fill formsName and DOB arrive in the format the tax department holds, which cuts typos and later mismatches.
- Split name fieldsFirst, middle and last name where the source splits them, handy for bureau pulls that want them separately.
- Linked Aadhaar, maskedThe last four digits of the linked Aadhaar help you cross-check an Aadhaar the user gives you later.
- Address where heldState and PIN code, when present, help with serviceability checks before you go further.
Request
POST https://api.ampletrails.com/v1/pan/comprehensive
| Field | Type | Status | Description |
|---|---|---|---|
id_number | string | Required | 10-character PAN |
consent | string | Required | Y if the user has given explicit consent |
Response
Fields inside data. Every response also carries status, request_id and, on errors, message. See error codes.
| Field | Meaning | Example |
|---|---|---|
full_name | Name of the PAN holder as registered | RAVI KUMAR |
first_name | First name, if split is available | RAVI |
last_name | Last name, if split is available | KUMAR |
dob | Date of birth or incorporation | 1990-04-12 |
gender | Gender: M, F or T (individuals only) | M |
category | Holder type | Individual |
masked_aadhaar | Masked Aadhaar linked to the PAN, if any | XXXXXXXX4321 |
aadhaar_linked | Whether the PAN is linked to an Aadhaar | true |
address.state | State on record, where available | Haryana |
address.pincode | PIN code on record, where available | 122001 |
Example
curl -X POST https://api.ampletrails.com/v1/pan/comprehensive \
-H "Authorization: Bearer $AMPLE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"id_number": "ABCDE1234F", "consent": "Y"}'import os, requests
resp = requests.post(
"https://api.ampletrails.com/v1/pan/comprehensive",
headers={"Authorization": f"Bearer {os.environ['AMPLE_API_KEY']}"},
json={
"id_number": "ABCDE1234F",
"consent": "Y"
},
timeout=30,
)
resp.raise_for_status()
print(resp.json()["data"])const resp = await fetch("https://api.ampletrails.com/v1/pan/comprehensive", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.AMPLE_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"id_number": "ABCDE1234F",
"consent": "Y"
}),
});
const { data } = await resp.json();$ch = curl_init("https://api.ampletrails.com/v1/pan/comprehensive");
curl_setopt_array($ch, [
CURLOPT_POST => true,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTPHEADER => [
"Authorization: Bearer " . getenv("AMPLE_API_KEY"),
"Content-Type: application/json",
],
CURLOPT_POSTFIELDS => json_encode(["id_number" => "ABCDE1234F", "consent" => "Y"]),
]);
$data = json_decode(curl_exec($ch), true)["data"];{
"status": "success",
"request_id": "req_7f3a9c21e4",
"data": {
"full_name": "RAVI KUMAR",
"first_name": "RAVI",
"last_name": "KUMAR",
"dob": "1990-04-12",
"gender": "M",
"category": "Individual",
"masked_aadhaar": "XXXXXXXX4321",
"aadhaar_linked": true,
"address": {
"state": "Haryana",
"pincode": "122001"
}
}
}Example data. The exact field list for your account comes with your sandbox documentation.
Use cases
Short-form loan journeys
Ask only for PAN and mobile, then pre-fill the rest and let the user confirm.
Credit bureau pulls
Use the official name and DOB to get a cleaner match at the bureau.
Insurance quotes
Pre-fill proposer details in a quote flow so the user only checks and confirms.
Questions about this API
How is this different from PAN Verification?
PAN Verification checks the details you already have. PAN Comprehensive returns the details so you don't have to ask for them.
Will every PAN return an address?
No. Many records don't carry a usable address. Plan your form so address is collected from the user if the field comes back empty.
Can I use this to look up strangers?
No. Every call needs the holder's consent and a genuine onboarding purpose. We switch the API on per use case and watch for unusual lookup patterns.
Is the full Aadhaar number returned?
Never. Only the masked form with the last four digits.
Try the PAN Comprehensive API
Sandbox keys, the full field reference and a Postman collection, usually within a working day.