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| Header | Required | Description |
|---|---|---|
| Authorization | Yes | Bearer token for API authentication (JWT format) |
| Content-Type | Yes | Must be set to application/json |
| Parameter | Type | Required | Description |
|---|---|---|---|
| latitude | String | Yes | The latitude coordinate as a decimal string (e.g., "15.83453574") |
| longitude | String | Yes | The longitude coordinate as a decimal string (e.g., "78.53027344") |
{
"latitude": "15.83453574",
"longitude": "78.53027344"
}| Parameter | Type | Description |
|---|---|---|
| data.client_id | String | Unique client identifier for the request |
| data.latitude | Number | The processed latitude coordinate as a number |
| data.longitude | Number | The processed longitude coordinate as a number |
| data.digipin | String | The generated digipin code (format: XXX-XXX-XXXX) |
| status_code | Number | HTTP status code of the response |
| success | Boolean | Indicates whether the request was successful |
| message | String | Human-readable status message |
| message_code | String | Machine-readable status code |
{
"data": {
"client_id": "digipin_UlrmHNmUQejqjaETillR",
"latitude": 15.83453574,
"longitude": 78.53027344,
"digipin": "459-285-L38L"
},
"status_code": 200,
"success": true,
"message": "Success",
"message_code": "success"
}{
"data": null,
"status_code": 401,
"success": false,
"message": "Invalid or expired authentication token",
"message_code": "auth_error"
}curl --location --request POST 'https://kyc-api.surepass.app/api/v1/utils/digipin/' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"latitude": "15.83453574",
"longitude": "78.53027344"
}'{
"data": {
"client_id": "digipin_UlrmHNmUQejqjaETillR",
"latitude": 15.83453574,
"longitude": 78.53027344,
"digipin": "459-285-L38L"
},
"status_code": 200,
"success": true,
"message": "Success",
"message_code": "success"
}