Skip to main content
POST
Use PAN Validation when you hold a PAN and need to know it is real before you continue onboarding. One call returns the name on record, whether the PAN is active, and the holder category (individual, company, HUF and so on) read from the PAN itself. If you also need address, masked Aadhaar or linked bank accounts, call PAN Detailed instead.

Environments

How to read the result

  • status is success for every completed check, found or not. Branch on error_code, never on status.
  • error_code: null with data present: the PAN was found. data.pan_status is Valid for a valid PAN. Another status the source reports is returned in title case.
  • error_code: "IDTO_202" with data: null: no record exists for this PAN. This is a definitive answer and is billed.
  • billed tells you whether this call was charged. It is true for both outcomes above, and false on every error.
  • user_consent in the request must be true; record the end user’s consent before you call.
Send an Idempotency-Key header (up to 255 characters) on every call. If a network error makes you retry with the same key and the same body, you get the first result back and are not charged 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

Input rules: pan_number is 10 characters, five letters, four digits, one letter (ABCDE1234F), sent in upper case. See the PAN FAQ and the PAN recipe for a worked example. 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

user_id
string
workflow_session_token
string

Response

PAN validation 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