Feel free to reach techsupport@surepass.io for any technical support or guidance.
Authorization header as Bearer TOKEN.https://sandbox.surepass.apphttps://kyc-api.surepass.app| Parameter | Type | Description |
|---|---|---|
| file | File | The VISA card document file. Supported formats: PDF, JPG, PNG. |
| use_pdf | Boolean | If the file type is PDF, set this to true |
| Parameter | Type | Description |
|---|---|---|
| base_64 | String | The VISA card document in Base64 format |
| Parameter | Type | Description |
|---|---|---|
| link | String | The VISA card document Link/URL |
| Parameter | Type | Description |
|---|---|---|
| success | Boolean | Indicates whether the API request was successful |
| status_code | Integer | HTTP status code of the response |
| message | String | Descriptive message about the response status |
| message_code | String | Machine-readable code representing the response status |
| data | Object | Container object for all extracted visa card information |
| data.client_id | String | Unique identifier for this OCR transaction |
| data.document_type | String | Type of document processed (e.g., "V" for Visa) |
| data.country_code | String | ISO country code of the visa issuing country |
| data.surname | String | Surname/last name as it appears on the visa |
| data.given_name | String | Given name/first name as it appears on the visa |
| data.passport_number | String | Passport number associated with the visa |
| data.visa_type | String | Type/category of visa (e.g., TOURIST, BUSINESS, WORK) |
| data.number_of_entries | String | Number of entries permitted (e.g., SINGLE, MULTIPLE) |
| data.visa_number | String | Unique visa identification number |
| data.endorsements | Array | List of endorsements or special conditions on the visa |
| data.date_of_issue | String | Date when the visa was issued (format: YYYY-MM-DD) |
| data.date_of_expiry | String | Date when the visa expires (format: YYYY-MM-DD) |
| data.mrz_line_1 | String | First line of the Machine Readable Zone |
| data.mrz_line_2 | String | Second line of the Machine Readable Zone |
| data.is_valid | Boolean | Indicates whether the extracted visa information is valid |
{
"data": {
"client_id": "ocr_visa_card_ajLeaOTBrqdDACnNTMfu",
"document_type": "V",
"country_code": "IND",
"surname": "GIANN",
"given_name": "ANNIS",
"passport_number": "AI0012345",
"visa_type": "TOURIST",
"number_of_entries": "SINGLE",
"visa_number": "VJ1230124",
"endorsements": [
"TOURIST VISA NON-EXTENDABLE",
"Change of Purpose Not Allowed."
],
"date_of_issue": "2015-01-01",
"date_of_expiry": "2015-03-01",
"mrz_line_1": "VTINDGIANN<<<<<<<<<IOANNIS<<<<<<<<<<<<<<<<<<",
"mrz_line_2": "VJ12305123GRC1111151M1102136ARED<<<<<<<<<<<2",
"is_valid": true
},
"status_code": 200,
"success": true,
"message": "Success",
"message_code": "success"
}{
"success": false,
"status_code": 401,
"message": "Invalid or expired token",
"message_code": "unauthorized"
}curl --location --request POST 'https://kyc-api.surepass.app/api/v1/ocr/visa-card' \
--header 'Authorization: Bearer <token>' \
--form 'file=@""' \
--form 'use_pdf=""'{
"data": {
"client_id": "ocr_visa_card_ajLeaOTBrqdDACnNTMfu",
"document_type": "V",
"country_code": "IND",
"surname": "GIANN",
"given_name": "ANNIS",
"passport_number": "AI0012345",
"visa_type": "TOURIST",
"number_of_entries": "SINGLE",
"visa_number": "VJ1230124",
"endorsements": [
"TOURIST VISA NON-EXTENDABLE",
"Change of Purpose Not Allowed."
],
"date_of_issue": "2015-01-01",
"date_of_expiry": "2015-03-01",
"mrz_line_1": "VTINDGIANN<<<<<<<<<IOANNIS<<<<<<<<<<<<<<<<<<",
"mrz_line_2": "VJ12305123GRC1111151M1102136ARED<<<<<<<<<<<2",
"is_valid": true
},
"status_code": 200,
"success": true,
"message": "Success",
"message_code": "success"
}