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 authentication using 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 | Container for the extracted passport information |
data.client_id | String | Unique identifier for the OCR request |
data.passport_type | String | Type of passport (e.g., international_passport) |
data.passport_number | String | The passport's identification number |
data.country | String | Country that issued the passport |
data.surname | String | Last name of the passport holder |
data.given_names | String | First and middle names of the passport holder |
data.nationality | String | Nationality of the passport holder |
data.nationality_code | String | Three-letter code representing the nationality |
data.sex | String | Gender of the passport holder (M/F) |
data.date_of_birth | String | Birth date in YYYY-MM-DD format |
data.place_of_birth | String | Location where the passport holder was born |
data.issuing_authority | String | Organization that issued the passport |
data.issue_date | String | Date when the passport was issued (YYYY-MM-DD) |
data.expiry_date | String | Date when the passport expires (YYYY-MM-DD) |
data.code | String | Additional code associated with the passport (if available) |
data.type | String | Type classification of the passport |
data.height | String | Height of the passport holder (if available) |
data.personal_code_number | String | Personal identification code (if available) |
data.country_code | String | Country code from the passport (if available) |
data.profession | String | Profession of the passport holder (if available) |
data.mrz_line_1 | String | First line of the Machine Readable Zone |
data.mrz_line_2 | String | Second line of the Machine Readable Zone |
status_code | Integer | HTTP status code of the response |
success | Boolean | Indicates if the request was successful |
message | String | Human-readable status message |
message_code | String | Machine-readable status code |
{
"data": {
"client_id": "ocr_international_passport_v2_fPxSdoAgvlNptLHmYDPu",
"passport_type": "international_passport",
"passport_number": "N 0148412345",
"country": "SYRIAN ARAB REPUBLIC",
"surname": "SHEHADEH",
"given_names": "AMMAR",
"nationality": "SYRIAN ARAB REPUBLIC",
"nationality_code": "SYR",
"sex": "M",
"date_of_birth": "1988-06-01",
"place_of_birth": "DAMASCUS",
"issuing_authority": "INTERIOR-DEPARTMENT OF IMMIGRATION AND PASSPORTS",
"issue_date": "2021-10-23",
"expiry_date": "2024-04-22",
"code": null,
"type": "Type Coy",
"height": null,
"personal_code_number": null,
"country_code": null,
"profession": null,
"mrz_line_1": "PNSYRSHEHADEH<<AMMAR<<<<<<<<<<<",
"mrz_line_2": "0148421ABCD12348806013M2404222010<20120024<<24"
},
"status_code": 200,
"success": true,
"message": "Success",
"message_code": "success"
}
{
"status_code": 401,
"success": false,
"message": "Invalid or expired token",
"message_code": "unauthorized"
}
curl --location --request POST 'https://kyc-api.surepass.app/api/v1/ocr/international-passport-v2' \
--form 'file=@""'
{
"data": {
"client_id": "ocr_international_passport_v2_fPxSdoAgvlNptLHmYDPu",
"passport_type": "international_passport",
"passport_number": "N 0148412345",
"country": "SYRIAN ARAB REPUBLIC",
"surname": "SHEHADEH",
"given_names": "AMMAR",
"nationality": "SYRIAN ARAB REPUBLIC",
"nationality_code": "SYR",
"sex": "M",
"date_of_birth": "1988-06-01",
"place_of_birth": "DAMASCUS",
"issuing_authority": "INTERIOR-DEPARTMENT OF IMMIGRATION AND PASSPORTS",
"issue_date": "2021-10-23",
"expiry_date": "2024-04-22",
"code": null,
"type": "Type Coy",
"height": null,
"personal_code_number": null,
"country_code": null,
"profession": null,
"mrz_line_1": "PNSYRSHEHADEH<<AMMAR<<<<<<<<<<<",
"mrz_line_2": "0148421ABCD12348806013M2404222010<20120024<<24"
},
"status_code": 200,
"success": true,
"message": "Success",
"message_code": "success"
}