Feel free to reach techsupport@surepass.io for any technical support or guidance.
Authorization header as Bearer TOKEN.https://sandbox.surepass.iohttps://kyc-api.surepass.io| Header | Required | Description |
|---|---|---|
| Authorization | Yes | Bearer token authentication using JWT format |
| Content-Type | Yes | Must be set to application/json |
| Parameter | Type | Required | Description |
|---|---|---|---|
| id_number | String | Yes | Customer ID number for the electricity connection |
| operator_code | String | Yes | Code representing the electricity operator/provider |
{
"id_number": "17000346322745",
"operator_code": "MH"
}| Parameter | Type | Description |
|---|---|---|
| data | Object | Container for the electricity bill details |
| data.client_id | String | Unique identifier for the client in the system |
| data.customer_id | String | Customer ID number for the electricity connection |
| data.operator_code | String | Code representing the electricity operator/provider |
| data.state | String | State where the electricity connection is registered |
| data.full_name | String | Full name of the customer as registered with the provider |
| data.address | String | Complete address of the electricity connection |
| data.mobile | String or null | Customer's mobile number (if available) |
| data.user_email | String or null | Customer's email address (if available) |
| data.bill_amount | String | Total amount due on the electricity bill |
| data.bill_number | String or null | Electricity bill number (if available) |
| data.document_link | String or null | URL to access bill documents (if available) |
| status_code | Integer | HTTP status code indicating the result of the request |
| success | Boolean | Indicates whether the request was successful |
| message | String | Human-readable message describing the result |
| message_code | String | Code representing the result message |
{
"data": {
"client_id": "electricity_jBxiqjAGXuymlqlbrOOb",
"customer_id": "17000346322745",
"operator_code": "MH",
"state": "maharashtra",
"full_name": "SUKHWANI",
"address": "COLONY SOLAPUR ROAD NR LAD GIRNI SHEWALWADI 412307",
"mobile": null,
"user_email": null,
"bill_amount": "1,280.00",
"bill_number": null,
"document_link": null
},
"status_code": 200,
"success": true,
"message": "Success",
"message_code": "success"
}{
"status_code": 400,
"success": false,
"message": "Invalid customer ID provided",
"message_code": "invalid_customer_id"
}curl --location --request POST 'https://kyc-api.surepass.app/api/v1/utility/electricity/' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"id_number": "{{ca_number}}",
"operator_code": "{{operator_code}}"
}'{
"data": {
"client_id": "electricity_jBxiqjAGXuymlqlbrOOb",
"customer_id": "17000346322745",
"operator_code": "MH",
"state": "maharashtra",
"full_name": "SUKHWANI",
"address": "COLONY SOLAPUR ROAD NR LAD GIRNI SHEWALWADI 412307",
"mobile": null,
"user_email": null,
"bill_amount": "1,280.00",
"bill_number": null,
"document_link": null
},
"status_code": 200,
"success": true,
"message": "Success",
"message_code": "success"
}