API documentation
Business document OCR
Reads a PAN card, GST certificate, certificate of incorporation, Udyam certificate or TAN letter.
Endpoint
POST https://api.finovel.in/v1/document-ocrCharged only when the call succeeds. Errors are never charged. See how every API works for keys, retries and status codes.
Request fields
| Field | Type | Required | Description |
|---|---|---|---|
file | file | Yes | Document photo or PDF |
document_type | select | No | Document type. Leave empty to detect it. One of: PAN, GST, CIN, MSME, TAN, AADHAAR. |
pdf_password | text | No | PDF password. Only for a password-protected PDF. |
Example request
curl -X POST https://api.finovel.in/v1/document-ocr \
-H "Authorization: Bearer fin_test_your_key" \
-H "Content-Type: application/json" \
-d '{}'Response fields
Inside data:
| Field | Description |
|---|---|
documentType | Document type |
pan | PAN |
gstin | GSTIN |
cin | CIN |
udyamNumber | Udyam number |
tan | TAN |
name | Name |
verification.requiresManualReview | Needs manual review |
Example response from the sandbox
{
"request_id": "req_...",
"success": true,
"status": "success",
"environment": "sandbox",
"message": "OK",
"data": {
"pan": "ABCDE1234F",
"name": "SANDBOX TEST USER",
"documentType": "PAN",
"verification": {
"requiresManualReview": false
}
},
"error": null,
"charged_paise": 0
}Sandbox scenarios
With a test key, this API can return:
- PAN card read (default)