> ## Documentation Index
> Fetch the complete documentation index at: https://idto.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Check a PAN, name and date of birth

> Check a PAN against tax department records and find out whether the name and date of birth you hold match it.

Use PAN Lite when you already have the PAN, name and date of birth from your user and want to know they belong together. idto checks the PAN against Income Tax Department records and tells you whether the name and date of birth you sent match. You also get the PAN status code and whether an Aadhaar is linked to the PAN.

PAN Lite needs all three of `pan`, `name` and `dob`. [PAN Validation](https://idto.mintlify.site/api-reference/pan/pan-validation.md) needs only the PAN and returns the name on record instead of a match result. Use PAN Validation to look up a name, PAN Lite to confirm the one you hold.

## Environments

| Environment | Base URL | Notes |
| - | - | - |
| Production | `https://prod.idto.ai` | Keys from the dashboard after go-live. Billed. |
| Staging | `https://dev.idto.ai` | Keys on request from your idto account manager. Calls reach live sources, so use identities you are authorised to verify. Staging credits are deducted from your staging account. |

## Request

| Field | Required | Rule |
| - | - | - |
| `pan` | Yes | Ten characters: five letters, four digits, one letter (`ABCDE1234F`). Spaces and hyphens are removed and letters are upper-cased first. |
| `name` | Yes | Letters, spaces and `. - / &` only. Leading and trailing spaces are trimmed and repeated spaces collapsed. At most 100 characters. |
| `dob` | Yes | `YYYY-MM-DD`. A real date, not in the future (India time). |
| `user_id` | No | Your own reference for the end user. |

A missing or empty `pan` returns `IDTO_101`. A missing or empty `name` or `dob` returns `IDTO_102`. A value that breaks a rule above returns `IDTO_001`. All three are HTTP 400, checked before any lookup, and not billed.

## 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 check completed. Read `name_match`, `dob_match` and `pan_status`.
* `error_code: "IDTO_202"` with `data: null`: the PAN is not found. This is a definitive answer and is billed.
* On rare occasions a check completes with no details: every `data` value is `null` and the message is `PAN found, but no details were returned.` It is billed.
* `billed` is `true` on every completed check, including a name or date of birth mismatch and a PAN that is not found, and `false` on every error.

## Response fields

`pan`, `name` and `dob` are returned as you sent them, after the clean-up described in [Request](#request). They are not the values on the PAN record.

| Field | Values |
| - | - |
| `pan` | The PAN you sent. |
| `name` | The name you sent. |
| `dob` | The date of birth you sent. |
| `name_match` | `Y` the name matches the PAN record, `N` it does not. |
| `dob_match` | `Y` the date of birth matches the PAN record, `N` it does not. |
| `pan_status` | PAN status code, see the table below. |
| `status` | `VALID` or `INVALID`, the overall verdict on the PAN. Not the same as the top-level `status`. |
| `aadhaar_seeding_status` | `Y` an Aadhaar is linked to the PAN, `R` not linked, `NA` not applicable (a PAN that is not an individual's). |
| `aadhaar_seeding_status_desc` | Plain-text description of `aadhaar_seeding_status`, for example `Aadhaar is linked to PAN`. |

Any field the source does not return is `null`. Codes and values outside the lists on this page are returned as received.

### PAN status codes

| `pan_status` | Meaning | Valid PAN |
| - | - | - |
| `E` | Existing and valid | Yes |
| `EA` | Existing and valid, marked as amalgamation | Yes |
| `EC` | Existing and valid, marked as acquisition | Yes |
| `ED` | Existing and valid, marked as death | Yes |
| `EI` | Existing and valid, marked as dissolution | Yes |
| `EL` | Existing and valid, marked as liquidated | Yes |
| `EM` | Existing and valid, marked as merger | Yes |
| `EP` | Existing and valid, marked as partition | Yes |
| `ES` | Existing and valid, marked as split | Yes |
| `EU` | Existing and valid, marked as under liquidation | Yes |
| `F` | Marked as fake | No |
| `X` | Deactivated | No |
| `D` | Deleted | No |
| `I` | Inoperative | No |
| `N` | Not found, or not a valid PAN. Never appears in `data`: the response is `IDTO_202` with `data: null`. | No |

Every code except `N` is a completed check with `error_code: null`. All of them are billed.

> [!TIP]
>
> 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](https://idto.mintlify.site/concepts/idempotency.md).

## Errors

| Code | HTTP | Message | Billed |
| - | - | - | - |
| `IDTO_202` | 200 | Record is invalid or does not exist. | Yes |
| `IDTO_101` | 400 | A required parameter is missing from the request. (`pan` missing) | No |
| `IDTO_102` | 400 | A required parameter is missing from the request. (`name` or `dob` missing) | No |
| `IDTO_001` | 400 | Invalid input. Please check the request and try again. | No |
| `IDTO_001` | 400 | Invalid input: pan is empty after removing spaces and hyphens. Please check and retry. | No |
| `IDTO_001` | 400 | Idempotency-Key must be at most 255 characters. | No |
| `null` | 400 | Insufficient credits for this operation. | No |
| `IDTO_001` | 422 | The body is not valid JSON or a field has the wrong type. The message names the field. | No |
| `IDTO_004` | 409 | An identical request is already in progress; retry shortly. | No |
| `IDTO_010` | 422 | Idempotency-Key was already used with a different request body. | No |
| `IDTO_006` | 429 | Too many requests. Please wait a moment and retry. | No |
| `IDTO_007` | 500 | Verification could not be completed due to a service configuration issue. Please contact support at [tech@idto.ai](mailto:tech@idto.ai). | No |
| `IDTO_008` | 503 | The verification service is facing downtime due to issues from the source. Please drop a mail to [tech@idto.ai](mailto:tech@idto.ai), and try again later. | No |

Errors on this endpoint carry `billed: false` and no `chargeble` or `user_consent` keys, except the over-length `Idempotency-Key` error, which also carries both as `"false"`. 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](https://idto.mintlify.site/reference/v2-error-codes.md).

## Test scenarios

| Input | Expected result | Billed |
| - | - | - |
| A real PAN with the holder's name and date of birth | 200, `error_code: null`, `name_match: "Y"`, `dob_match: "Y"` | Yes |
| The same PAN with a different name | 200, `error_code: null`, `name_match: "N"` | Yes |
| A well-formed PAN that has no record | 200, `error_code: "IDTO_202"`, `data: null` | Yes |
| Body without `pan` | 400, `IDTO_101` | No |
| Body without `name` or `dob` | 400, `IDTO_102` | No |
| `pan: "ABC"` | 400, `IDTO_001` | No |
| `name` longer than 100 characters, or with a digit | 400, `IDTO_001` | No |
| `dob: "2999-01-01"` or `dob: "01-01-1990"` | 400, `IDTO_001` | No |
| `pan: 123` (a number) | 422, `IDTO_001` | No |
| Same `Idempotency-Key`, same body, sent twice | Second call returns the first response | Charged once |
| Same `Idempotency-Key`, different `name` | 422, `IDTO_010` | No |

## On v1

v1 also exposes `POST /verify/pan_lite` with the same request and the same `data` fields, plus `data.verification_id`, in the v1 envelope: a PAN that is not found returns `status: "failed"` with `IDTO_202` and is billed. Use v2 for new work. See [Migrate from v1](https://idto.mintlify.site/migrate-from-v1.md).

Was this page helpful? Email us at [tech@idto.ai](mailto:tech@idto.ai?subject=Docs%20feedback%3A%20Check%20a%20PAN%2C%20name%20and%20date%20of%20birth) with the page link.


## OpenAPI

````yaml openapi2.0.json POST /v2/verify/pan_lite
openapi: 3.1.0
info:
  title: idto Verification API
  version: 2.0.0
  description: >-
    idto is an identity and KYC verification platform. This API lets you run
    PAN, Aadhaar, bank account,

    business/GST, vehicle, mobile, employment, credit-bureau, DigiLocker,
    driving-licence, face-match,

    liveness, document-OCR, address and eSign verifications through a single set
    of HTTP endpoints,

    either individually or composed into a workflow on the idto dashboard.


    ## Response envelope (v2)


    Every product under `/v2/verify/*` shares one response contract. A call is
    charged when it finishes with a 2xx

    response whose `status` is `"success"`, unless a verification session
    already pays for that step. A charged

    2xx carries `billed: true`, whether the result is a full match (`error_code:
    null`, `data` populated) or a

    definitive no-record outcome (`error_code` set to an `IDTO_2xx` code, `data:
    null`). Callers distinguish a full

    match from a no-record result by checking `error_code`, never by inspecting
    `status`: there is no `"failed"`

    status anywhere in the v2 API.


    Exceptions to the charge rule: a step that a verification session already
    pays for returns its 2xx with

    `billed: false`; an idempotent replay returns the stored response and is not
    charged again; a v1 `202`

    `IDTO_203` handoff is not charged, and the result is charged once when the
    job completes.


    A raised error (any non-2xx response) from `/v2/verify/*` carries `status:
    "error"`, `message`, `error_code`,

    `data: null`, `billed: false` and the legacy string flags `chargeble:
    "false"` and `user_consent: "false"`.

    `tranx_id` and `timestamp` are set when the failed call was recorded. Raised
    errors are

    never billed; `IDTO_204` (no readable Aadhaar QR found) is an ordinary
    raised 422. Authentication failures (401, 403) use

    the framework shape `{"detail": "..."}` on every endpoint.


    ## v1 vs v2


    `/v2/verify/*` is the current, vendor-agnostic contract described above,
    used for every product that

    has been migrated onto it. `/verify/*` (no `/v2` prefix) remains live for
    products that have not been

    ported yet. Because v1 predates the shared envelope, each v1 product's
    response shape is its own:

    consult that product's schema and examples rather than assuming the v2
    envelope applies. Raised errors on

    v1 use three shapes: `{"detail": {...}}` for a failed verification,
    `{"detail": "..."}` for authentication and

    `{"detail": [...]}` for request validation. Each operation names the shape
    it uses.


    ## Asynchronous handoff (v1 employment products)


    Some v1 employment and UAN endpoints can answer `202` with `IDTO_203` and a
    `reference_id` instead of the

    result. Fetch the result with `GET /verify/result/{reference_id}`. Today
    staging returns this 202 and

    production does not, so handle both a 200 result and a 202 handoff.


    ## Idempotency


    Send an `Idempotency-Key` header (max 255 characters) on any v2 request to
    make retries 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). A request with the same key that is still
    in flight returns `IDTO_004` (409). The header is optional; omitting it runs
    every request as new.


    ## Authentication


    Every request to `/verify/*` and `/v2/verify/*` must include two headers:
    `X-Client-ID` and

    `X-API-Key`. Both are issued per environment (staging and production
    credentials are separate and

    not interchangeable).


    ## Error Codes


    | Code | HTTP | Message |

    |---|---|---|

    | IDTO_001 | 400 or 422 | Invalid input. Please check the request and try
    again. |

    | IDTO_004 | 409 | Duplicate request. Verification ID already exists. |

    | IDTO_005 | 400 | User consent is required to proceed. |

    | IDTO_006 | 429 | Too many requests. Please wait a moment and retry. (the
    verification source is limiting requests; idto has no per-key quota) |

    | IDTO_007 | 500 | Verification could not be completed due to a service
    configuration issue. Please contact support at tech@idto.ai. |

    | IDTO_008 | 503 | The verification service is facing downtime due to issues
    from the source. Please drop a mail to tech@idto.ai, and try again later. |

    | IDTO_009 | 402 | Insufficient credits or balance. Recharge, or ask your
    account owner to add credits. |

    | IDTO_010 | 422 | Idempotency-Key was already used with a different request
    body. |

    | IDTO_101 | 400 | A required parameter is missing from the request. |

    | IDTO_102 | 400 | A required parameter is missing from the request. |

    | IDTO_103 | 503 | This verification could not be completed. Please retry
    shortly or contact support at tech@idto.ai. |

    | IDTO_201 | 200 | Bank account is invalid or does not exist. |

    | IDTO_202 | 200 | Record is invalid or does not exist. (per-product
    messages may override this text) |

    | IDTO_203 | 202 | Verification is still in progress. Retrieve the result
    using reference_id. (v1 asynchronous handoff, not billed) |

    | IDTO_204 | 422 | No readable Aadhaar QR was found in the image. (not
    billed, like every raised error) |

    | IDTO_205 | 422 | Invalid OTP or session expired. Please request a new OTP.
    |

    | IDTO_206 | 429 | Maximum OTP attempts exceeded. Please generate a new OTP.
    |

    | IDTO_207 | 404 | No result found for this reference_id. |

    | IDTO_401 | 400 | The account number provided is invalid. |

    | IDTO_402 | 400 | The IFSC code provided is invalid. |

    | IDTO_403 | 503 | This verification could not be completed. Please retry
    shortly or contact support at tech@idto.ai. |

    | IDTO_503 | 413 | The image could not be processed. Please try a clearer,
    smaller image. |

    | IDTO_509 | 500 | Face match could not be completed. Please try again. |

    | IDTO_609 | 500 | Liveness could not be determined. Please try again. |
  contact:
    name: idto Support
    email: tech@idto.ai
servers:
  - url: https://prod.idto.ai
    description: >-
      Production: keys from the idto dashboard after go-live. Every successful
      call is billed.
  - url: https://dev.idto.ai
    description: >-
      Staging: keys on request from your idto account manager. Calls reach live
      sources and deduct staging credits.
security:
  - ClientIdAuth: []
    ApiKeyAuth: []
tags:
  - name: PAN
    description: >-
      PAN validation, detailed lookups, OCR and every PAN-linked crosswalk (UAN,
      GST, CIN, DIN, Udyam).
  - name: Aadhaar
    description: Aadhaar OKYC (OTP-based) and Aadhaar secure-QR read and verification.
  - name: Bank Account
    description: >-
      Bank account penny-drop verification, IFSC lookups, and bank-statement PDF
      processing.
  - name: Business & GST
    description: GSTIN, CIN/MCA, Udyam, FSSAI and shop & establishment registration checks.
  - name: Vehicle & RC
    description: Vehicle registration certificate, challan and FASTag lookups.
  - name: Mobile & UPI
    description: >-
      Mobile-number OTP, subscriber profile, and UPI VPA verification and
      crosswalks.
  - name: Employment (EPFO/UAN)
    description: >-
      EPFO employment history and UAN-linked lookups, including the async
      passbook flows.
  - name: Credit Bureau
    description: >-
      Credit reports and scores from supported bureaus, including OTP-gated
      pulls.
  - name: DigiLocker
    description: >-
      DigiLocker account linking and document fetches (Aadhaar, PAN, DL,
      marksheets, and more).
  - name: Driving Licence
    description: Driving licence verification and OCR.
  - name: Face & Liveness
    description: Face-match comparison and liveness/anti-spoofing checks.
  - name: Document OCR
    description: OCR extraction for PAN, driving licence and Aadhaar card images.
  - name: Address & Invoice
    description: Address verification via OCR on invoices and utility bills.
  - name: Voter & Passport
    description: Voter ID and passport verification.
  - name: eSign
    description: Electronic signature docket creation and signed-document retrieval.
  - name: Verification Links
    description: Hosted, no-code verification links (added by a later documentation pass).
  - name: Webhooks
    description: >-
      Webhook configuration for asynchronous result delivery.


      ## What gets delivered


      Two kinds of event are delivered by webhook: a verification-link session
      completing (see the

      Verification Links tag), and an eSign docket finishing signing (see the
      eSign tag). Both use the

      same delivery, signing and retry mechanism described below, but the two
      payload shapes are

      different and are not wrapped in any shared envelope.


      ## Signing scheme


      The request body sent to your `webhook_url` is compact, key-sorted JSON,
      produced the same way as

      Python's `json.dumps(payload, separators=(",", ":"), sort_keys=True)`, and
      sent as raw UTF-8 bytes.

      A Unix timestamp (whole seconds, encoded as a string) is generated at send
      time.


      The string that gets signed is built by concatenating, as bytes: the
      timestamp string, a literal

      `.`, then the raw request body bytes. In Python terms this is
      `f"{timestamp}.".encode() + raw_body_bytes`,

      a bytes concatenation, not a string concatenation of the decoded body. The
      signature is

      `HMAC-SHA256(secret, signing_string)`, hex-encoded.


      Every delivery carries three headers:


      - `X-idto-Event-Id`: a unique id for this specific delivery, used to
      de-duplicate retried or
        re-sent events on your side.
      - `X-idto-Timestamp`: the same timestamp string used when building the
      signature.

      - `X-idto-Signature`: the signature in the form `sha256=<hex signature>`.


      To verify a delivery, recompute the HMAC over `timestamp + "." +
      raw_body_bytes` using your stored

      secret, and compare the result to `X-idto-Signature` with a constant-time
      comparison, never a plain

      `==` on the strings. During a secret rotation, deliveries in flight may be
      signed with either the

      previous secret or the new one for a short grace window, so verify against
      both secrets if you have

      just rotated.


      ## Event payloads


      There is no shared `event` wrapper key across both event types, so
      distinguish them by shape: the

      eSign event carries an explicit `event` field, the session-completion
      event does not.


      Session completion (implicit, no `event` field):


      ```json

      {
        "session_id": "8f14e45f-ceea-467e-bd93-4a2c11e0a1b2",
        "session_token": "sess_3c9a1e2b7d4f5061",
        "status": "completed",
        "outcome": "approved",
        "partial": false,
        "completed_steps": ["mobile_verification", "pan_validation", "face_match"],
        "skipped_steps": [],
        "fallback_steps": [],
        "branch_excluded_steps": [],
        "consents": [
          {"type": "data_processing", "version": "1.0", "timestamp": "2026-09-14T10:15:30Z"}
        ],
        "event_id": "evt_5b6c7d8e9f0a1b2c",
        "report": {
          "url": "https://reports.idto.ai/r/8f14e45f-ceea-467e-bd93-4a2c11e0a1b2?sig=...",
          "expires_at": "2026-09-14T11:15:30Z",
          "content_type": "application/pdf",
          "filename": "report.pdf"
        }
      }

      ```


      The `report` key is only present when a PDF report is attached to the
      session and the merchant has

      report attachment enabled. Its `url` is a fresh, short-lived presigned
      link generated for that one

      delivery, never a permanent link.


      eSign completion:


      ```json

      {
        "event": "esign.completed",
        "event_id": "evt_esign_2a3b4c5d6e7f8091",
        "tranx_id": "b6e1f2a0-1234-4abc-9def-0123456789ab",
        "docket_id": "b6e1f2a0-1234-4abc-9def-0123456789ab",
        "document_id": "doc_1a2b3c4d5e6f7081",
        "signing_status": "signed",
        "signed_at": "2026-09-14T10:15:30Z"
      }

      ```


      No document bytes are included in this event. Retrieve the signed PDF
      separately through the eSign

      document-download endpoint documented elsewhere in this spec.


      ## Delivery and retries


      A delivery is attempted up to 5 times with exponential backoff between
      attempts, starting at

      roughly 10 seconds and doubling on each retry, capped at 1 hour between
      tries. If every attempt is

      exhausted, the delivery is marked permanently failed and is not retried
      again. Events created before a signing secret exists are still attempted:
      they run through this same 5-attempt retry cycle and are permanently
      dead-lettered within a few minutes, the same as any other delivery
      failure. There is no separate holding queue that waits for you to
      configure a secret. Generate one with `POST
      /merchant/webhook-config/rotate-secret` before, or immediately after,
      setting a webhook URL, or the earliest events from that window are lost
      for good.
  - name: Authentication
    description: SDK and API authentication (added by a later documentation pass).
  - name: Court Records
    description: Court and litigation record checks.
  - name: Name Match
    description: Compare two person or business names and get a match score.
paths:
  /v2/verify/pan_lite:
    post:
      tags:
        - PAN
      summary: Check a PAN, name and date of birth
      description: >-
        Checks a PAN against Income Tax Department records and tells you whether
        the name and date of birth you send match the record. Also returns the
        PAN status code and whether an Aadhaar is linked to the PAN. `pan`,
        `name` and `dob` are all required. To check a PAN on its own and get the
        name on record, use `pan_validation` instead.


        Every completed check is billed, including a name or date of birth
        mismatch and a PAN that is not found (`IDTO_202`, `data: null`). Raised
        errors use the `PanLiteError` shape and are never billed. Authentication
        failures return `{"detail": "..."}`.
      parameters:
        - name: Idempotency-Key
          in: header
          required: false
          description: >-
            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.
          schema:
            type: string
            maxLength: 255
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                pan:
                  type: string
                  pattern: ^[A-Z]{5}[0-9]{4}[A-Z]$
                  description: >-
                    Ten characters: five letters, four digits, one letter.
                    Spaces and hyphens are removed and letters are upper-cased
                    before the check. Missing or empty returns `IDTO_101`.
                  example: ABCDE1234F
                name:
                  type: string
                  maxLength: 100
                  description: >-
                    Name to match against the PAN record. Letters, spaces and `.
                    - / &` only, at most 100 characters after trimming and
                    collapsing repeated spaces. Missing or empty returns
                    `IDTO_102`.
                  example: RAHUL SHARMA
                dob:
                  type: string
                  format: date
                  description: >-
                    Date of birth to match, `YYYY-MM-DD`. Must be a real date
                    and not in the future (India time). Missing or empty returns
                    `IDTO_102`.
                  example: '1990-01-01'
                user_id:
                  type: string
                  description: Optional reference of your own for this end user.
              required:
                - pan
                - name
                - dob
            examples:
              basic:
                summary: Check a PAN, name and date of birth
                value:
                  pan: ABCDE1234F
                  name: RAHUL SHARMA
                  dob: '1990-01-01'
      responses:
        '200':
          description: >-
            The check ran to completion. Billed. Branch on `error_code`: `null`
            with `data` present, or `IDTO_202` with `data: null` when the PAN is
            not found.
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                    enum:
                      - success
                  message:
                    type: string
                    description: >-
                      `PAN verified successfully.`, `PAN found, but no details
                      were returned.` when every `data` value is `null`, or
                      `Record is invalid or does not exist.` on `IDTO_202`.
                  error_code:
                    type:
                      - string
                      - 'null'
                    description: >-
                      `null` on a completed check, `IDTO_202` when the PAN is
                      not found. Both are billed.
                  data:
                    oneOf:
                      - $ref: '#/components/schemas/PanLiteData'
                      - type: 'null'
                  billed:
                    type: boolean
                    enum:
                      - true
                  tranx_id:
                    type:
                      - string
                      - 'null'
                  timestamp:
                    type:
                      - string
                      - 'null'
                    format: date-time
                required:
                  - status
                  - message
                  - error_code
                  - data
                  - billed
              examples:
                success:
                  summary: PAN valid, name and date of birth match
                  value:
                    status: success
                    message: PAN verified successfully.
                    error_code: null
                    data:
                      pan: ABCDE1234F
                      name: RAHUL SHARMA
                      dob: '1990-01-01'
                      name_match: 'Y'
                      dob_match: 'Y'
                      pan_status: E
                      status: VALID
                      aadhaar_seeding_status: 'Y'
                      aadhaar_seeding_status_desc: Aadhaar is linked to PAN
                    tranx_id: 8f14e45f-ceea-467e-bd93-4a2c11e0a1b2
                    timestamp: '2026-12-05T10:15:30.204511+00:00'
                    billed: true
                name_mismatch:
                  summary: PAN valid, name does not match (billed)
                  value:
                    status: success
                    message: PAN verified successfully.
                    error_code: null
                    data:
                      pan: ABCDE1234F
                      name: RAHUL SHARMA
                      dob: '1990-01-01'
                      name_match: 'N'
                      dob_match: 'Y'
                      pan_status: E
                      status: VALID
                      aadhaar_seeding_status: 'Y'
                      aadhaar_seeding_status_desc: Aadhaar is linked to PAN
                    tranx_id: 8f14e45f-ceea-467e-bd93-4a2c11e0a1b2
                    timestamp: '2026-12-05T10:15:30.204511+00:00'
                    billed: true
                no_details:
                  summary: Check completed, no details returned (billed)
                  value:
                    status: success
                    message: PAN found, but no details were returned.
                    error_code: null
                    data:
                      pan: null
                      name: null
                      dob: null
                      name_match: null
                      dob_match: null
                      pan_status: null
                      status: null
                      aadhaar_seeding_status: null
                      aadhaar_seeding_status_desc: null
                    tranx_id: 8f14e45f-ceea-467e-bd93-4a2c11e0a1b2
                    timestamp: '2026-12-05T10:15:30.204511+00:00'
                    billed: true
                not_found:
                  summary: PAN not found (IDTO_202, billed)
                  value:
                    status: success
                    message: Record is invalid or does not exist.
                    error_code: IDTO_202
                    data: null
                    tranx_id: 8f14e45f-ceea-467e-bd93-4a2c11e0a1b2
                    timestamp: '2026-12-05T10:15:30.204511+00:00'
                    billed: true
        '400':
          description: >-
            Invalid input, or your balance does not cover the call. Not billed.
            `IDTO_101`: `pan` missing. `IDTO_102`: `name` or `dob` missing.
            `IDTO_001`: `pan`, `name` or `dob` breaks a format rule, or the
            `Idempotency-Key` is longer than 255 characters. `error_code: null`:
            insufficient credits.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PanLiteError'
              examples:
                missing_pan:
                  summary: pan missing (IDTO_101)
                  value:
                    status: error
                    message: A required parameter is missing from the request.
                    error_code: IDTO_101
                    data: null
                    tranx_id: 8f14e45f-ceea-467e-bd93-4a2c11e0a1b2
                    timestamp: '2026-12-05T10:15:30.204511+00:00'
                    billed: false
                missing_name_or_dob:
                  summary: name or dob missing (IDTO_102)
                  value:
                    status: error
                    message: A required parameter is missing from the request.
                    error_code: IDTO_102
                    data: null
                    tranx_id: 8f14e45f-ceea-467e-bd93-4a2c11e0a1b2
                    timestamp: '2026-12-05T10:15:30.204511+00:00'
                    billed: false
                invalid_input:
                  summary: pan, name or dob breaks a format rule (IDTO_001)
                  value:
                    status: error
                    message: Invalid input. Please check the request and try again.
                    error_code: IDTO_001
                    data: null
                    tranx_id: 8f14e45f-ceea-467e-bd93-4a2c11e0a1b2
                    timestamp: '2026-12-05T10:15:30.204511+00:00'
                    billed: false
                pan_only_separators:
                  summary: pan made only of spaces and hyphens (IDTO_001)
                  value:
                    status: error
                    message: >-
                      Invalid input: pan is empty after removing spaces and
                      hyphens. Please check and retry.
                    error_code: IDTO_001
                    data: null
                    billed: false
                insufficient_credits:
                  summary: Balance does not cover the call
                  value:
                    status: error
                    message: Insufficient credits for this operation.
                    error_code: null
                    data: null
                    billed: false
                idempotency_key_too_long:
                  summary: Idempotency-Key longer than 255 characters
                  value:
                    status: error
                    message: Idempotency-Key must be at most 255 characters.
                    error_code: IDTO_001
                    data: null
                    billed: false
                    chargeble: 'false'
                    user_consent: 'false'
        '401':
          description: >-
            The `X-Client-ID` and `X-API-Key` pair is missing or not recognised.
            Not billed.
          content:
            application/json:
              schema:
                type: object
                properties:
                  detail:
                    type: string
              examples:
                missing_keys:
                  summary: Credentials missing or invalid
                  value:
                    detail: >-
                      Authentication required. Provide either a valid JWT token,
                      API key + client ID, or SDK token.
        '409':
          description: >-
            A request with the same `Idempotency-Key` is still running. Retry
            after it finishes to receive the stored result. Not billed.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PanLiteError'
              examples:
                in_progress:
                  summary: Same Idempotency-Key still in flight
                  value:
                    status: error
                    message: >-
                      An identical request is already in progress; retry
                      shortly.
                    error_code: IDTO_004
                    data: null
                    billed: false
        '422':
          description: >-
            `IDTO_001` when the body is not valid JSON, is not an object, or a
            field has the wrong type: for a wrong type the message starts with
            `Invalid request` and names the field. `IDTO_010` when an
            `Idempotency-Key` is reused with a different body. Not billed.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PanLiteError'
              examples:
                unparseable:
                  summary: Body could not be parsed
                  value:
                    status: error
                    message: Invalid input. Please check the request and try again.
                    error_code: IDTO_001
                    data: null
                    billed: false
                idempotency_conflict:
                  summary: Idempotency-Key reused with a different body
                  value:
                    status: error
                    message: >-
                      Idempotency-Key was already used with a different request
                      body.
                    error_code: IDTO_010
                    data: null
                    billed: false
        '429':
          description: >-
            `IDTO_006`: the verification source is limiting requests. Retry with
            backoff. Not billed.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PanLiteError'
              examples:
                rate_limited:
                  summary: Rate limited
                  value:
                    status: error
                    message: Too many requests. Please wait a moment and retry.
                    error_code: IDTO_006
                    data: null
                    tranx_id: 8f14e45f-ceea-467e-bd93-4a2c11e0a1b2
                    timestamp: '2026-12-05T10:15:30.204511+00:00'
                    billed: false
        '500':
          description: >-
            `IDTO_007`: a configuration problem on idto's side for your account.
            Do not retry; write to tech@idto.ai. Not billed.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PanLiteError'
              examples:
                config_error:
                  summary: Service configuration issue
                  value:
                    status: error
                    message: >-
                      Verification could not be completed due to a service
                      configuration issue. Please contact support at
                      tech@idto.ai.
                    error_code: IDTO_007
                    data: null
                    tranx_id: 8f14e45f-ceea-467e-bd93-4a2c11e0a1b2
                    timestamp: '2026-12-05T10:15:30.204511+00:00'
                    billed: false
        '503':
          description: >-
            `IDTO_008`: the verification source is down, did not answer within
            15 seconds, or idto is shedding load. Retry with backoff. Not
            billed.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PanLiteError'
              examples:
                source_down:
                  summary: Source down
                  value:
                    status: error
                    message: >-
                      The verification service is facing downtime due to issues
                      from the source. Please drop a mail to tech@idto.ai, and
                      try again later.
                    error_code: IDTO_008
                    data: null
                    tranx_id: 8f14e45f-ceea-467e-bd93-4a2c11e0a1b2
                    timestamp: '2026-12-05T10:15:30.204511+00:00'
                    billed: false
      security:
        - ClientIdAuth: []
          ApiKeyAuth: []
components:
  schemas:
    PanLiteData:
      type: object
      description: >-
        Every key is always present. A value the source did not return is
        `null`.
      properties:
        pan:
          type:
            - string
            - 'null'
          description: >-
            The PAN you sent, after spaces and hyphens are removed and letters
            are upper-cased.
        name:
          type:
            - string
            - 'null'
          description: >-
            The name you sent, after trimming and collapsing repeated spaces.
            This is not the name on the PAN record.
        dob:
          type:
            - string
            - 'null'
          description: The date of birth you sent, `YYYY-MM-DD`.
        name_match:
          type:
            - string
            - 'null'
          description: >-
            `Y` when the name you sent matches the PAN record, `N` when it does
            not.
        dob_match:
          type:
            - string
            - 'null'
          description: >-
            `Y` when the date of birth you sent matches the PAN record, `N` when
            it does not.
        pan_status:
          type:
            - string
            - 'null'
          description: >-
            Income Tax Department PAN status code. `E` and the `E` codes `EA`,
            `EC`, `ED`, `EI`, `EL`, `EM`, `EP`, `ES`, `EU` mean the PAN exists
            and is valid; `F` fake, `X` deactivated, `D` deleted, `I`
            inoperative. A PAN that is not found (`N`) never appears here: it
            returns `IDTO_202` with `data: null`. A code not in this list is
            returned as received.
        status:
          type:
            - string
            - 'null'
          description: >-
            Overall verdict on the PAN, `VALID` or `INVALID`. Not the same as
            the top-level `status`.
        aadhaar_seeding_status:
          type:
            - string
            - 'null'
          description: >-
            Whether an Aadhaar is linked to the PAN: `Y` linked, `R` not linked,
            `NA` not applicable (a PAN that is not an individual's). Another
            value is returned as received.
        aadhaar_seeding_status_desc:
          type:
            - string
            - 'null'
          description: >-
            Plain-text description of `aadhaar_seeding_status`, for example
            `Aadhaar is linked to PAN`.
      required:
        - pan
        - name
        - dob
        - name_match
        - dob_match
        - pan_status
        - status
        - aadhaar_seeding_status
        - aadhaar_seeding_status_desc
    PanLiteError:
      type: object
      description: >-
        A raised error from `/v2/verify/pan_lite`. Never billed. Unlike
        `V2ErrorEnvelope`, it carries no `chargeble` or `user_consent` keys,
        except on the over-length `Idempotency-Key` error. Authentication
        failures return `{"detail": "..."}` instead.
      properties:
        status:
          type: string
          enum:
            - error
        message:
          type: string
        error_code:
          type:
            - string
            - 'null'
          description: '`null` only on the low-balance error.'
        data:
          type: 'null'
        billed:
          type: boolean
          enum:
            - false
        tranx_id:
          type:
            - string
            - 'null'
          description: Present when the failed call was recorded.
        timestamp:
          type:
            - string
            - 'null'
          description: Present when the failed call was recorded.
      required:
        - status
        - message
        - error_code
        - data
        - billed
  securitySchemes:
    ClientIdAuth:
      type: apiKey
      in: header
      name: X-Client-ID
      description: >-
        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-default: <client-id>
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
      description: >-
        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.
      x-default: <api-key>

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.