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 |
---|---|---|---|
id_number | String | Yes | The ESIC ID number to be verified |
{
"id_number": "123456789"
}
Parameter | Type | Description |
---|---|---|
data | Object | Contains the ESIC holder information |
data.client_id | String | Unique identifier for the API request |
data.id_number | String | The ESIC ID number that was provided in the request |
data.name | String | Full name of the ESIC holder as registered |
data.mobile_number | String | Registered mobile number of the ESIC holder |
status_code | Integer | HTTP status code of the response |
success | Boolean | Indicates whether the API call was successful |
message | String or null | Additional information about the response (null if successful) |
message_code | String | Code indicating the status of the request |
{
"data": {
"client_id": "esic_advanced_v2_tEttMSzjXlmaMsFVkcnz",
"id_number": "123456789",
"name": "DEEPAK KUMAR",
"mobile_number": "9191919191"
},
"status_code": 200,
"success": true,
"message": null,
"message_code": "success"
}
{
"data": null,
"status_code": 400,
"success": false,
"message": "Invalid ESIC ID number provided",
"message_code": "invalid_input"
}
curl --location --request POST 'https://kyc-api.surepass.app/api/v1/esic/esic-advanced-v2' \
--header 'Content-Type: application/json' \
--data-raw '{
"id_number": "123456789"
}'
{
"data": {
"client_id": "esic_advanced_v2_tEttMSzjXlmaMsFVkcnz",
"id_number": "123456789",
"name": "DEEPAK KUMAR",
"mobile_number": "9191919191"
},
"status_code": 200,
"success": true,
"message": null,
"message_code": "success"
}