PAN Extraction
Headers
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. |