PAN Extraction


Request Method :: POST
Description: This API facilitates the extraction of the provided Pan image. Extraction is initiated only if the request includes the appropriate Client Credentials in the headers, with corresponding privileges verified from the JWT.
The supported input formats for the Pan image are as follows:
  1. JSON Format : The image is provided as a URL within a JSON payload.
  2. Base64 Format : The image is provided as a Base64-encoded string.
  3. File Format : The image is uploaded as a file using multipart form data.
Each format serves different use cases, enabling flexibility for integration with various systems. The API ensures secure access by validating Client Credentials and corresponding privileges before proceeding with the extraction process

Headers


Content-Type: application/JSON
client_id:  To be shared during integration by ISU Team
client_secret:  To be shared during integration by ISU Team

Request Body Parameters

Parameters Parameter description with validations and examples Data type Mandatory/Optional
image PAN Image
Input key (JSON format with URL).
E.g. - "https://firebasestorage.googleapis.com/..."
String Mandatory

Sample Request Body


Response Body Parameters 

Parameters Parameter description with examples Data type
code Status of the performed action. String
data Description of the other items on the document.  
DOB Date of Birth of the user. string
confidence Extraction Accuracy number
details This section contains different extracted labels in the documents and the accuracy with which the extraction process is done. String
confidence Extraction Accuracy number
details This section contains different extracted labels in the documents and the accuracy with which the extraction process is done.  
DOB Extracted DOB Details  
confidence Accuracy of the extracted DOB. number
text Extracted DOB string
fatherName Extracted Father Name Details  
confidence Accuracy of the extracted Father’s Name. number
text Extracted Name of Father. string
name Extracted Name Details  
confidence Accuracy of the extracted Name. number
text Extracted Name. string
pan Extracted PAN Details  
confidence Accuracy of the extracted PAN. number
text Extracted PAN. String
fatherName Name of Father. String
idType ID Type. Will be "PAN" in this case. string
name Name. string
pan PAN Number. string
devMsg The developer message, after the operation. string
message Front-end message displayed after the operation. string
status Status of the operation.
0 denotes a Successful Request.
-1 denotes an Unsuccessful Request.
number

Sample Response Body


SUCCESS:

 

FAILED:

Segmentation Failed:

No Input Image:

Issue with Image Quality:

Classification Failed:

Status Codes and description

Status HTTP Code Description
0 200 Data retrieved successfully
-1 400 Please Try Again
-1 400 Invalid Request
-1 422 Valid PAN Document Not Detected From Image (Issues with the image quality of valid PAN documents).
-1 435 PAN Bottom Back Document not in the correct format.