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 (JWT format) |
Content-Type | Yes | multipart/form-data |
Parameter | Type | Required | Description |
---|---|---|---|
file | Image | Yes | Upload Cheque Image |
use_pdf | Boolean | No | Set to true if the file type is PDF |
Parameter | Type | Required | Description |
---|---|---|---|
base_64 | String | Yes | Cheque Image in Base64 format |
Parameter | Type | Required | Description |
---|---|---|---|
link | String | Yes | Cheque Image Link/URL |
Parameter | Type | Description |
---|---|---|
data | Object | Contains all the extracted and verified information |
data.client_id | String | Unique identifier for the API request |
data.ocr_response | Object | Contains all fields extracted from the document with confidence scores |
data.verifier_response | Object | Contains verified data from official records |
data.name_match | Boolean | Indicates if the deceased's name matches verified data |
data.date_of_death_match | Boolean | Indicates if the date of death matches verified data |
data.registration_number_match | Boolean | Indicates if the registration number matches verified data |
data.name_of_father_match | Boolean | Indicates if the father's name matches verified data |
data.application_number_match | Boolean | Indicates if the application number matches verified data |
data.serial_number_match | Boolean | Indicates if the serial number matches verified data |
data.qr_found | Boolean | Indicates if a QR code was found on the document |
data.valid_qr | Boolean | Indicates if the QR code is valid |
data.qr_status | String | Status of the QR code verification |
status_code | Integer | HTTP status code of the response |
success | Boolean | Indicates if the API call was successful |
message | String | Human-readable status message |
message_code | String | Machine-readable status code |
{
"data": {
"client_id": "ocr_death_certificate_ttwhOehfWsdZhAuGgcrR",
"ocr_response": {
"name_of_deceased": {
"value": "SUNITA NARANG",
"confidence": 99
},
"date_of_death": {
"value": "2023-12-17",
"confidence": 98
},
"age_of_deceased": {
"value": "",
"confidence": null
},
"address_of_deceased": {
"value": "80 A COOL ROAD JYOTI NAGAR GATE NO 9 JALANDHAR",
"confidence": 98
},
"permanent_address_of_deceased": {
"value": "80 A COOL ROAD JYOTI NAGAR GATE NO 9 JALANDHAR",
"confidence": 99
},
"date_of_issue": {
"value": "2023-12-26",
"confidence": 98
},
"updated_on": {
"value": "",
"confidence": null
},
"place_of_death": {
"value": "NHS HOSPITAL NASA BRAIN AND SPINE CENTRE JALANDHAR",
"confidence": 99
},
"sex": {
"value": "Female",
"confidence": 99
},
"name_of_spouse": {
"value": "KRISHAN CHANDER VERMA",
"confidence": 98
},
"state_name": {
"value": "Punjab",
"confidence": 97
},
"city": {
"value": "Jalandhar",
"confidence": 99
},
"district": {
"value": "Jalandhar",
"confidence": 98
},
"pincode": {
"value": "",
"confidence": null
},
"certificate_number": {
"value": "",
"confidence": null
},
"authority": {
"value": "Chief Registrar (Birth & Death), Punjab",
"confidence": 98
},
"name_of_father": {
"value": "WONG DAN DANMOL RATTAN NARANG",
"confidence": 99
},
"date_of_registration": {
"value": "2023-12-25",
"confidence": 98
},
"serial_number": {
"value": "ES18484053",
"confidence": 98
},
"application_number": {
"value": "",
"confidence": null
},
"deceased_aadhaar_number": {
"value": "",
"confidence": null
},
"father_aadhaar_number": {
"value": "",
"confidence": null
},
"mother_aadhaar_number": {
"value": "",
"confidence": null
},
"registration_number": {
"value": "DU/ES/23/0056380019",
"confidence": 98
}
},
"verifier_response": {
"name_of_deceased": "SUNITA NARANG",
"date_of_death": "2023-12-17",
"registration_number": "DU/ES/23/0056123456",
"name_of_father": "KRISHAN CHANDER VERMA R",
"serial_number": "",
"application_number": ""
},
"name_match": true,
"date_of_death_match": true,
"registration_number_match": true,
"name_of_father_match": false,
"application_number_match": false,
"serial_number_match": false,
"qr_found": true,
"valid_qr": true,
"qr_status": "verified"
},
"status_code": 200,
"success": true,
"message": "Success",
"message_code": "success"
}
{
"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/death-certificate' \
--form 'file=@""' \
--form 'use_pdf="false"'
{
"data": {
"client_id": "ocr_death_certificate_ttwhOehfWsdZhAuGgcrR",
"ocr_response": {
"name_of_deceased": {
"value": "SUNITA NARANG",
"confidence": 99
},
"date_of_death": {
"value": "2023-12-17",
"confidence": 98
},
"age_of_deceased": {
"value": "",
"confidence": null
},
"address_of_deceased": {
"value": "80 A COOL ROAD JYOTI NAGAR GATE NO 9 JALANDHAR",
"confidence": 98
},
"permanent_address_of_deceased": {
"value": "80 A COOL ROAD JYOTI NAGAR GATE NO 9 JALANDHAR",
"confidence": 99
},
"date_of_issue": {
"value": "2023-12-26",
"confidence": 98
},
"updated_on": {
"value": "",
"confidence": null
},
"place_of_death": {
"value": "NHS HOSPITAL NASA BRAIN AND SPINE CENTRE JALANDHAR",
"confidence": 99
},
"sex": {
"value": "Female",
"confidence": 99
},
"name_of_spouse": {
"value": "KRISHAN CHANDER VERMA",
"confidence": 98
},
"state_name": {
"value": "Punjab",
"confidence": 97
},
"city": {
"value": "Jalandhar",
"confidence": 99
},
"district": {
"value": "Jalandhar",
"confidence": 98
},
"pincode": {
"value": "",
"confidence": null
},
"certificate_number": {
"value": "",
"confidence": null
},
"authority": {
"value": "Chief Registrar (Birth & Death), Punjab",
"confidence": 98
},
"name_of_father": {
"value": "WONG DAN DANMOL RATTAN NARANG",
"confidence": 99
},
"date_of_registration": {
"value": "2023-12-25",
"confidence": 98
},
"serial_number": {
"value": "ES18484053",
"confidence": 98
},
"application_number": {
"value": "",
"confidence": null
},
"deceased_aadhaar_number": {
"value": "",
"confidence": null
},
"father_aadhaar_number": {
"value": "",
"confidence": null
},
"mother_aadhaar_number": {
"value": "",
"confidence": null
},
"registration_number": {
"value": "DU/ES/23/0056380019",
"confidence": 98
}
},
"verifier_response": {
"name_of_deceased": "SUNITA NARANG",
"date_of_death": "2023-12-17",
"registration_number": "DU/ES/23/0056123456",
"name_of_father": "KRISHAN CHANDER VERMA R",
"serial_number": "",
"application_number": ""
},
"name_match": true,
"date_of_death_match": true,
"registration_number_match": true,
"name_of_father_match": false,
"application_number_match": false,
"serial_number_match": false,
"qr_found": true,
"valid_qr": true,
"qr_status": "verified"
},
"status_code": 200,
"success": true,
"message": "Success",
"message_code": "success"
}