Feel free to reach techsupport@surepass.io for any technical support or guidance.
Authorization
header as Bearer TOKEN
.https://sandbox.surepass.io
https://kyc-api.surepass.io
Header | Required | Description |
---|---|---|
Authorization | Yes | Bearer token for authentication. Format: Bearer YOUR_JWT_TOKEN |
Content-Type | Yes | Must be set to multipart/form-data for file upload |
Parameter | Type | Description |
---|---|---|
file | Image | Upload Cheque Image |
use_pdf | Boolean | If the file type is PDF, set this to true |
Parameter | Type | Description |
---|---|---|
base_64 | String | Cheque Image in Base64 format |
Parameter | Type | Description |
---|---|---|
link | String | Cheque Image Link/URL |
Parameter | Type | Description |
---|---|---|
data | Object | Container for the response data |
data.client_id | String | Unique identifier for the OCR request |
data.ocr_fields | Array | List of extracted document information |
data.ocr_fields[].document_type | String | Type of document processed (always "pan" for this endpoint) |
data.ocr_fields[].pan_number | Object | Contains the extracted PAN number and confidence score |
data.ocr_fields[].full_name | Object | Contains the extracted full name and confidence score |
data.ocr_fields[].father_name | Object | Contains the extracted father's name and confidence score |
data.ocr_fields[].dob | Object | Contains the extracted date of birth and confidence score |
status_code | Integer | HTTP status code of the response |
message_code | String | Status message code |
message | String | Additional message information (null if successful) |
success | Boolean | Indicates if the request was successful |
{
"data": {
"client_id": "pan_photo_mesSqeyCjoohnpbdxerB",
"ocr_fields": [
{
"document_type": "pan",
"pan_number": {
"value": "ABCPD1234E",
"confidence": 99
},
"full_name": {
"value": "Munna Bhaiya",
"confidence": 99
},
"father_name": {
"value": "Kaleen Bhaiya",
"confidence": 99
},
"dob": {
"value": "01/01/1990",
"confidence": 99
}
}
]
},
"status_code": 200,
"message_code": "success",
"message": null,
"success": true
}
{
"error": null,
"message": "Your token is invalid. Please ensure that correct token is being used.",
"status_code": 401,
"success": false,
"message_code": "invalid_token"
}
curl --location --request POST 'https://kyc-api.surepass.app/api/v1/ocr/pan' \
--form 'file=@""'
{
"data": {
"client_id": "pan_photo_mesSqeyCjoohnpbdxerB",
"ocr_fields": [
{
"document_type": "pan",
"pan_number": {
"value": "ABCPD1234E",
"confidence": 99
},
"full_name": {
"value": "Munna Bhaiya",
"confidence": 99
},
"father_name": {
"value": "Kaleen Bhaiya",
"confidence": 99
},
"dob": {
"value": "01/01/1990",
"confidence": 99
}
}
]
},
"status_code": 200,
"message_code": "success",
"message": null,
"success": true
}