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 |
---|---|---|---|
name | String | Yes | Full name of the individual |
mobile | String | Yes | Mobile number of the individual |
id_number | String | Yes | Identification number (PAN or Aadhaar) |
id_type | Enum | Yes | Type of ID provided (pan or aadhaar ) |
consent | String | Yes | User consent indicator (e.g., "Y") |
gender | Enum | Yes | Gender of the individual (male or female ) |
{
"name": "Vishal Rathore",
"id_number": "EKRPR1234F",
"id_type": "pan",
"mobile": "8079012345",
"consent": "Y",
"gender": "male"
}
Parameter | Type | Description |
---|---|---|
data | Object | Container for the response data |
data.client_id | String | Unique identifier for the credit report request |
data.id_number | String | Masked identification number for privacy |
data.id_type | String | Type of identification used (pan or aadhaar ) |
data.mobile | String | Mobile number provided in the request |
data.name | String | Name of the individual as provided in the request |
data.credit_score | String | Numerical credit score of the individual |
data.credit_report | Object | Empty object placeholder for credit report data |
data.credit_report_link | String | URL to download the PDF credit report |
status_code | Number | HTTP status code indicating the result of the request |
success | Boolean | Indicates whether the request was successful |
message | String | Human-readable status message |
message_code | String | Machine-readable status code |
{
"data": {
"client_id": "credit_report_v2_pdf_ywWaXdhazoIEjbpPuvqc",
"id_number": "********5514",
"id_type": "aadhaar",
"mobile": "8079012345",
"name": "Vishal Rathore",
"credit_score": "799",
"credit_report": {},
"credit_report_link": "https://aadhaar-kyc-docs.s3.amazonaws.com/vishal.rathore/credit_report_v2/credit_reporure=568a2c563ec24f24fe3a6a03ce3180a888b27091d1e55d8a7562fd06247f3693"
},
"status_code": 200,
"success": true,
"message": "Success",
"message_code": "success"
}
{
"status_code": 400,
"success": false,
"message": "Invalid ID type provided. Supported types are 'pan' and 'aadhaar'.",
"message_code": "invalid_id_type"
}
curl --location --request POST 'https://kyc-api.surepass.app/api/v1/credit-report-v2/fetch-pdf-report' \
--header 'Content-Type: application/json' \
--data-raw '{
"name": "Vishal Rathore",
"id_number": "EKRPR1234F",
"id_type": "pan",
"mobile": "8079012345",
"consent": "Y",
"gender": "male"
}'
{
"data": {
"client_id": "credit_report_v2_pdf_ywWaXdhazoIEjbpPuvqc",
"id_number": "********5514",
"id_type": "aadhaar",
"mobile": "8079012345",
"name": "Vishal Rathore",
"credit_score": "799",
"credit_report": {},
"credit_report_link": "https://aadhaar-kyc-docs.s3.amazonaws.com/vishal.rathore/credit_report_v2/credit_reporure=568a2c563ec24f24fe3a6a03ce3180a888b27091d1e55d8a7562fd06247f3693"
},
"status_code": 200,
"success": true,
"message": "Success",
"message_code": "success"
}