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. Format: Bearer YOUR_JWT_TOKEN |
| Content-Type | Yes | Must be set to application/json |
| Parameter | Type | Required | Description |
|---|---|---|---|
| client_id | string | Yes | Unique identifier for the Maharashtra Challan client. This ID is provided during API onboarding and identifies your integration instance. |
| mobile_number_id | string | Yes | Unique identifier for the linked mobile number. This references a previously registered mobile number in the system that is associated with traffic challan records. |
{
"client_id": "maharashtra_challan_afqOprZOdrcDazuUndHP",
"mobile_number_id": "linked_mobile_RhQevbwcTapdWpfxhgkf"
}| Parameter | Type | Description |
|---|---|---|
| data | object | Container object holding the response payload |
| data.client_id | string | Echo of the client_id sent in the request, confirming the client context |
| data.input_mobile_number_id | string | Echo of the mobile_number_id sent in the request, confirming the mobile number context |
| data.otp_generated | boolean | Indicates whether the OTP was successfully generated and sent. true means OTP sent successfully |
| status_code | integer | HTTP status code of the response (200 for success) |
| success | boolean | Overall success indicator for the API call |
| message | string | Human-readable message describing the result |
| message_code | string | Machine-readable code for programmatic handling of the response |
{
"data": {
"client_id": "maharashtra_challan_afqOprZOdrcDazuUndHP",
"input_mobile_number_id": "linked_mobile_RhQevbwcTapdWpfxhgkf",
"otp_generated": true
},
"status_code": 200,
"success": true,
"message": "Success",
"message_code": "success"
}{
"data": null,
"status_code": 400,
"success": false,
"message": "Invalid client_id provided",
"message_code": "invalid_client_id"
}curl --location --request POST 'https://kyc-api.surepass.app/api/v1/maharashtra-challan/generate-otp' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"client_id": "maharashtra_challan_afqOprZOdrcDazuUndHP",
"mobile_number_id": "linked_mobile_RhQevbwcTapdWpfxhgkf"
}'{
"data": {
"client_id": "maharashtra_challan_afqOprZOdrcDazuUndHP",
"input_mobile_number_id": "linked_mobile_RhQevbwcTapdWpfxhgkf",
"otp_generated": true
},
"status_code": 200,
"success": true,
"message": "Success",
"message_code": "success"
}