Skip to main content
POST
Use PAN Detailed when a PAN check alone is not enough and you want the record behind it to prefill or cross-check an application. It runs the same input checks as PAN Validation and returns a richer data object. Sensitive values come back masked: Aadhaar to its last 4 digits, phone to its last 2 digits, email to the first 2 characters of the local part, and bank account numbers to their last 4 digits.

Environments

How to read the result

  • Branch on error_code: null means the record was found, IDTO_202 means no record exists. Both are status: "success" and both are billed.
  • Not every source returns every field. gender, email, phone_number, masked_aadhaar and dob can be null, address fields can be empty strings, and bank_details can be an empty list. Treat each field as optional.
  • full_name_split is [first, middle, last]; the middle entry is an empty string when there is none.
  • category is one of individual, company, huf, firm, aop, trust, boi, local_authority, artificial_juridical_person, government or unknown.
  • name in the request is optional. The fields above do not depend on it.
  • extras can carry additional fields when the source returns them, and is often an empty object. Do not build logic on its keys.
Send an Idempotency-Key header on every call so a retry after a timeout returns the first result instead of charging you again. See Idempotency.

Errors

A missing or wrong X-Client-ID / X-API-Key pair returns 401 with a detail string and is not billed. The full code list is in v2 error codes.

Test scenarios

See the PAN FAQ for common questions. Was this page helpful? Email us at tech@idto.ai with the page link.

Authorizations

X-Client-ID
string
header
default:<client-id>
required

The Client ID shown on the API Credentials page of the idto dashboard. It is not your account or customer ID, which returns 401. Send it on every server-to-server request together with X-API-Key. Staging and production client IDs are different.

X-API-Key
string
header
default:<api-key>
required

Your API key from the idto dashboard (API credentials). Keep it on your server; never ship it in a browser or mobile app. Send it on every server-to-server request together with X-Client-ID.

Headers

Idempotency-Key
string

Make retries of this exact request safe. If the same key is replayed with an identical request body, the original result is returned without re-running the verification or billing again. If the same key is replayed with a different body, the request is rejected with IDTO_010 (422). Omitting this header runs every request as new.

Maximum string length: 255

Body

application/json
pan_number
string
required
Pattern: ^[A-Z]{5}[0-9]{4}[A-Z]$
Example:

"ABCDE1234F"

Example:

true

name
string
user_id
string
workflow_session_token
string

Response

Detailed PAN lookup ran to completion.

status
enum<string>
required
Available options:
success
message
string
required
error_code
string | null
required

null on a full match, an IDTO_2xx code on a definitive no-record result. Both are billed.

data
object | null
required
billed
enum<boolean>
required
Available options:
true
tranx_id
string | null
timestamp
string<date-time> | null
Last modified on December 1, 2026