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 | Must be set to multipart/form-data for file upload |
Parameter | Required | Description |
---|---|---|
client_id | Yes | Unique identifier for the client whose passport is being uploaded |
Parameter | Type | Required | Description |
---|---|---|---|
file | File | Yes | Image of the passport (JPG or PNG format, max 5MB) |
Parameter | Type | Description |
---|---|---|
data | Object | Contains all extracted passport information |
data.doe | String | Date of expiry (YYYY-MM-DD) |
data.dob | String | Date of birth (YYYY-MM-DD) |
data.father | String | Father's name |
data.given_name | String | Given name of the passport holder |
data.mrz_line_1 | String | First line of the Machine Readable Zone |
data.old_passport_num | String | Previous passport number, if applicable |
data.file_num | String | File number of the passport |
data.client_id | String | Client identifier |
data.place_of_issue | String | Location where the passport was issued |
data.spouse | String | Spouse's name, if applicable |
data.country_code | String | Three-letter country code |
data.address | String | Address of the passport holder |
data.surname | String | Surname/family name of the passport holder |
data.mrz_line_2 | String | Second line of the Machine Readable Zone |
data.passport_num | String | Passport number |
data.doi | String | Date of issue (YYYY-MM-DD) |
data.old_doi | String | Date of issue of previous passport, if applicable |
data.gender | String | Gender of the passport holder |
data.nationality | String | Nationality of the passport holder |
data.place_of_birth | String | Place of birth |
data.mother | String | Mother's name |
data.old_place_of_issue | String | Place where previous passport was issued, if applicable |
data.pin | String | PIN code/postal code |
data.passport_validity | String | Validity status of the passport |
status_code | Integer | HTTP status code indicating the result of the operation |
message | String | Additional information or error message |
success | Boolean | Indicates whether the operation was successful |
{
"data": {
"doe": "2020-09-15",
"dob": "1990-08-31",
"father": "KALEEN BHAIYA",
"given_name": "MUNNA BHAIYA",
"mrz_line_1": "PPINDBHAIYA<<MUNNA<<<<<<<<<<<<<<<<<<<<<<<<<<",
"old_passport_num": "F0233736",
"file_num": "UPHM00597710",
"client_id": "TTJmMxbZQi",
"place_of_issue": "MIRZAPUR",
"spouse": "",
"country_code": "IND",
"address": "TRIPATHI HAVELI, MIRZAPUR",
"surname": "BAGGA",
"mrz_line_2": "J0933933<1IND9008319M2009155<<<<<<<<<<<<<<04",
"passport_num": "J0933836",
"doi": "2010-10-15",
"old_doi": "2005-10-15",
"gender": "MALE",
"nationality": "INDIAN",
"place_of_birth": " MIRZAPUR",
"mother": "BEENA TRIPATHI",
"old_place_of_issue": "MIRZAPUR",
"pin": "231001",
"passport_validity": null
},
"status_code": 200,
"message": "",
"success": true
}
{
"data": null,
"status_code": 401,
"message": "Invalid or expired token",
"success": false
}
curl --location --request POST 'https://kyc-api.surepass.app/api/v1/passport/passport//upload' \
--form 'file=@""'
{
"data": {
"doe": "2020-09-15",
"dob": "1990-08-31",
"father": "KALEEN BHAIYA",
"given_name": "MUNNA BHAIYA",
"mrz_line_1": "PPINDBHAIYA<<MUNNA<<<<<<<<<<<<<<<<<<<<<<<<<<",
"old_passport_num": "F0233736",
"file_num": "UPHM00597710",
"client_id": "TTJmMxbZQi",
"place_of_issue": "MIRZAPUR",
"spouse": "",
"country_code": "IND",
"address": "TRIPATHI HAVELI, MIRZAPUR",
"surname": "BAGGA",
"mrz_line_2": "J0933933<1IND9008319M2009155<<<<<<<<<<<<<<04",
"passport_num": "J0933836",
"doi": "2010-10-15",
"old_doi": "2005-10-15",
"gender": "MALE",
"nationality": "INDIAN",
"place_of_birth": " MIRZAPUR",
"mother": "BEENA TRIPATHI",
"old_place_of_issue": "MIRZAPUR",
"pin": "231001",
"passport_validity": null
},
"status_code": 200,
"message": "",
"success": true
}