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 | Application/json |
Parameter | Type | Required | Description |
---|---|---|---|
client_id | String | Yes | Unique identifier of the client whose passport details are being requested |
Parameter | Type | Description |
---|---|---|
data | Object | Contains all passport details |
data.doe | String | Date of expiry of passport (YYYY-MM-DD) |
data.dob | String | Date of birth (YYYY-MM-DD) |
data.father | String | Father's name as listed in passport |
data.given_name | String | Given name of passport holder |
data.mrz_line_1 | String | First line of Machine Readable Zone |
data.old_passport_num | String | Previous passport number if applicable |
data.file_num | String | File number associated with the passport |
data.client_id | String | Unique identifier for the client |
data.place_of_issue | String | Location where passport was issued |
data.spouse | String | Spouse's name if applicable |
data.country_code | String | Three-letter country code (e.g., IND for India) |
data.address | String | Residential address of passport holder |
data.surname | String | Surname/family name of passport holder |
data.mrz_line_2 | String | Second line of Machine Readable Zone |
data.passport_num | String | Current passport number |
data.doi | String | Date of issue of current passport (YYYY-MM-DD) |
data.old_doi | String | Date of issue of previous passport if applicable (YYYY-MM-DD) |
data.gender | String | Gender as listed in passport |
data.nationality | String | Nationality of passport holder |
data.place_of_birth | String | Place of birth as listed in passport |
data.mother | String | Mother's name as listed in passport |
data.old_place_of_issue | String | Place where previous passport was issued, if applicable |
data.pin | String | Postal/ZIP code |
data.verified | Boolean | Verification status of the passport |
status_code | Integer | HTTP status code of the response |
message | String | Additional information or error message |
success | Boolean | Indicates if the request 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",
"verified": true
},
"status_code": 200,
"message": "",
"success": true
}
{
"data": null,
"status_code": 404,
"message": "No passport found for the provided client ID",
"success": false
}
curl --location --request GET 'https://kyc-api.surepass.app/api/v1/passport/passport/' \
--header 'Accept: application/json'
{
"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",
"verified": true
},
"status_code": 200,
"message": "",
"success": true
}