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 | JWT Bearer token for authentication. Format: Bearer <your_token> |
Content-Type | Yes | Must be set to application/json |
Parameter | Type | Required | Description |
---|---|---|---|
qr_text | String | Yes | The text content extracted from the Aadhaar QR code |
{
"qr_text": "<?xml version=\"1.0\" encoding=\"UTF-8\"?><PrintLetterBarcodeData uid=\"999941057058\" name=\"Some Name\" gender=\"M\" dateOfBirth=\"1990-01-01\" careOf=\"S/O: Father's Name\" building=\"\" street=\"\" landmark=\"\" locality=\"Some Locality\" vtcName=\"Some Village\" poName=\"Some Post Office\" districtName=\"Some District\" stateName=\"Some State\" pincode=\"123456\"/>"
}
Parameter | Type | Description |
---|---|---|
data | Object | Contains the extracted Aadhaar information |
data.aadhaar_number | String | Masked Aadhaar number |
data.name | String | Name of the Aadhaar holder |
data.dob | String | Date of birth in YYYY-MM-DD format |
data.gender | String | Gender of the Aadhaar holder (M/F/T) |
data.address | Object | Address details from the Aadhaar |
data.address.care_of | String | Care of information |
data.address.house | String | House number/name |
data.address.street | String | Street name |
data.address.landmark | String | Landmark information |
data.address.locality | String | Locality information |
data.address.vtc | String | Village/Town/City |
data.address.district | String | District name |
data.address.state | String | State name |
data.address.pincode | String | Postal code |
data.address.post_office | String | Post office name |
data.image | String | Base64 encoded photograph (if available in QR) |
data.qr_type | String | Type of QR code (Secure/Offline) |
data.raw_xml | String | Raw XML data from the QR code |
status_code | Integer | HTTP status code of the response |
success | Boolean | Indicates whether the API call was successful |
message | String | Human-readable message describing the result |
message_code | String | Machine-readable code indicating the result type |
{
"data": {
"aadhaar_number": "XXXX-XXXX-7058",
"name": "Some Name",
"dob": "1990-01-01",
"gender": "M",
"address": {
"care_of": "S/O: Father's Name",
"house": "",
"street": "",
"landmark": "",
"locality": "Some Locality",
"vtc": "Some Village",
"district": "Some District",
"state": "Some State",
"pincode": "123456",
"post_office": "Some Post Office"
},
"image": null,
"qr_type": "Secure",
"raw_xml": "<?xml version=\"1.0\" encoding=\"UTF-8\"?><PrintLetterBarcodeData uid=\"999941057058\" name=\"Some Name\" gender=\"M\" dateOfBirth=\"1990-01-01\" careOf=\"S/O: Father's Name\" building=\"\" street=\"\" landmark=\"\" locality=\"Some Locality\" vtcName=\"Some Village\" poName=\"Some Post Office\" districtName=\"Some District\" stateName=\"Some State\" pincode=\"123456\"/>"
},
"status_code": 200,
"success": true,
"message": null,
"message_code": "success"
}
{
"status_code": 422,
"success": false,
"message": "Verification Failed.",
"message_code": "verification_failed"
}
curl --location --request POST 'https://kyc-api.surepass.app/api/v1/aadhaar/upload/qr' \
--form 'qr_text=""'
{
"data": {
"aadhaar_number": "XXXX-XXXX-7058",
"name": "Some Name",
"dob": "1990-01-01",
"gender": "M",
"address": {
"care_of": "S/O: Father's Name",
"house": "",
"street": "",
"landmark": "",
"locality": "Some Locality",
"vtc": "Some Village",
"district": "Some District",
"state": "Some State",
"pincode": "123456",
"post_office": "Some Post Office"
},
"image": null,
"qr_type": "Secure",
"raw_xml": "<?xml version=\"1.0\" encoding=\"UTF-8\"?><PrintLetterBarcodeData uid=\"999941057058\" name=\"Some Name\" gender=\"M\" dateOfBirth=\"1990-01-01\" careOf=\"S/O: Father's Name\" building=\"\" street=\"\" landmark=\"\" locality=\"Some Locality\" vtcName=\"Some Village\" poName=\"Some Post Office\" districtName=\"Some District\" stateName=\"Some State\" pincode=\"123456\"/>"
},
"status_code": 200,
"success": true,
"message": null,
"message_code": "success"
}