Skip to main content

RC Challan Detailed API

The following document highlights the details of the RC Challan Detailed API.

API Description

Objective

The RC Challan Detailed API takes the RC number and consent as input and returns the challan details for the given RC number. The response includes information related to the challan, vehicle, and owner details associated with the RC.

InputOutput
rcNumber, consentDetailed challan data grouped under pending and disposed challans, including violation, vehicle, and owner-related details

API URL

https://ind-engine.thomas.hyperverge.co/v1/rcChallanDetailed

API Endpoint

rcChallanDetailed

Overview

The RC Challan Detailed API is RESTful and uses standard HTTP verbs and status codes. The responses are in JSON format, and you should send a POST request with rcNumber and consent in the request body.

Method - POST

Authentication

You need a unique pair of application ID (appId) and application key (appKey) from HyperVerge to verify your identity for accessing the API.

Headers

HeaderMandatory / OptionalDescriptionInput Format
content-typeMandatoryThis parameter defines the media type for the request payload.application/json
appIdMandatoryThe application identifier shared by HyperVerge.This should be a unique value.
appKeyMandatoryThe application key shared by HyperVerge.This should be a unique value.
transactionIdMandatoryA unique identifier for tracking a user journey.This should be both unique and easily associated with the user's journey in your application(s).

Inputs

The following table provides the details of the parameters required for the RC Challan Detailed API request body:

ParameterMandatory / OptionalTypeDescriptionInput FormatDefault Value
rcNumberMandatorystringThe vehicle registration certificate number for which challan details are requested.Should be a valid RC number string (for example: MH12AB1234).Not Applicable
consentMandatorystringThe consent flag that authorizes retrieval of challan details.yes or no.Not Applicable

Sample Request

The following code shows the standard curl request for the RC Challan Detailed API:

curl --location 'https://ind-engine.thomas.hyperverge.co/v1/rcChallanDetailed' \
--header 'Content-Type: application/json' \
--header 'appId: <Enter_the_HyperVerge_appId>' \
--header 'appKey: <Enter_the_HyperVerge_appKey>' \
--header 'transactionId: <Enter_the_HyperVerge_transactionID>' \
--data '{
"rcNumber": "<RC_Number>",
"consent": "yes"
}'

Success Response

The following table outlines the details of the success response from the RC Challan Detailed API:

{
"status": "success",
"statusCode": 200,
"result": {
"message": "Challan Found",
"data": {
"pendingChallan": [
{
"challanNo": "<challan_no>",
"challanDateTime": "<challan_date_time>",
"challanPlace": "<challan_place>",
"challanStatus": "<challan_status>",
"sentToRegCourt": "<sent_to_reg_court>",
"fineImposed": "<fine_imposed>",
"dlNo": "<dl_no>",
"driverName": "<driver_name>",
"ownerName": "<owner_name>",
"nameOfViolator": "<name_of_violator>",
"department": "<department>",
"stateCode": "<state_code>",
"documentImpounded": "<document_impounded>",
"offenceDetails": [
{
"act": "<act>",
"reason": "<reason>"
}
],
"amountOfFineImposed": "<amount_of_fine_imposed>"
}
],
"disposedChallan": [
{
"challanNo": "<challan_no>",
"challanDateTime": "<challan_date_time>",
"challanPlace": "<challan_place>",
"challanStatus": "<challan_status>",
"sentToRegCourt": "<sent_to_reg_court>",
"fineImposed": "<fine_imposed>",
"dlNo": "<dl_no>",
"driverName": "<driver_name>",
"ownerName": "<owner_name>",
"nameOfViolator": "<name_of_violator>",
"department": "<department>",
"stateCode": "<state_code>",
"documentImpounded": "<document_impounded>",
"offenceDetails": [
{
"act": "<act>",
"reason": "<reason>"
}
],
"amountOfFineImposed": "<amount_of_fine_imposed>"
}
]
}
},
"metadata": {
"requestId": "<Request_ID>",
"transactionId": "<Transaction_ID>"
}
}

Success Response Details

The following table provides the details of the fields in a success response.

ParameterTypeDescription
statusstringThe status of the API response.
statusCodenumberThe HTTP status code returned by the API.
resultobjectThe object that contains the primary response information, including the message and challan data.
result.messagestringThe response message that indicates whether challan records were found for the provided RC number.
result.dataobjectThe object that contains challan details grouped under pending and disposed challans.
result.data.pendingChallanarrayThe list of challans that are still pending payment or resolution.
result.data.disposedChallanarrayThe list of challans that have already been paid or resolved.
result.data.[pendingChallan/disposedChallan].challanNostringThe unique challan number generated for the traffic violation.
result.data.[pendingChallan/disposedChallan].challanDateTimestringThe date and time when the challan was issued.
result.data.[pendingChallan/disposedChallan].challanPlacestringThe location where the traffic violation occurred.
result.data.[pendingChallan/disposedChallan].challanStatusstringThe current status of the challan.
result.data.[pendingChallan/disposedChallan].sentToRegCourtstringThe flag that indicates whether the challan has been forwarded to a regional court.
result.data.[pendingChallan/disposedChallan].fineImposedstringThe fine value associated with the violation.
result.data.[pendingChallan/disposedChallan].dlNostringThe driving license number of the driver, if available.
result.data.[pendingChallan/disposedChallan].driverNamestringThe name of the driver involved in the violation.
result.data.[pendingChallan/disposedChallan].ownerNamestringThe name of the vehicle owner.
result.data.[pendingChallan/disposedChallan].nameOfViolatorstringThe name of the person who committed the violation.
result.data.[pendingChallan/disposedChallan].departmentstringThe department responsible for issuing the challan.
result.data.[pendingChallan/disposedChallan].stateCodestringThe state code where the challan was issued.
result.data.[pendingChallan/disposedChallan].documentImpoundedstringThe flag that indicates whether any document was impounded during the violation.
result.data.[pendingChallan/disposedChallan].offenceDetailsarrayThe list of offence entries associated with the challan.
result.data.[pendingChallan/disposedChallan].offenceDetails[].actstringThe law section under which the violation was recorded.
result.data.[pendingChallan/disposedChallan].offenceDetails[].reasonstringThe description that explains the traffic violation.
result.data.[pendingChallan/disposedChallan].amountOfFineImposedstringThe final amount of fine imposed for the challan entry.
metadataobjectThe object that contains request tracing details.
metadata.requestIdstringThe unique request identifier generated for the API call.
metadata.transactionIdstringThe unique transaction identifier passed in the API request.

Error Responses

The following are some error responses from the RC Challan Detailed API:

{
"status": "failure",
"statusCode": 400,
"message": "RC Number is invalid",
"metadata": {
"requestId": "<Request_ID>",
"transactionId": "<Transaction_ID>"
}
}
{
"status": "failure",
"statusCode": 400,
"message": "Input Validation Error: requires property \"rcNumber\""
}

Error Response Details

A failure response contains a failure status with the relevant status code and error message. The following table lists the error responses for the RC Challan Detailed API:

Status CodeError MessageError DescriptionError Resolution
400RC Number is invalidThe provided RC number format is incorrect.The client should validate and send a correctly formatted RC number.
400RC Number is requiredThe RC number field is empty in the request body.The client should pass a non-empty value for rcNumber.
400Consent is requiredThe consent value required for processing is not provided.The client should pass consent with a valid value.
400Input Validation Error: consent is not one of enum values: yes,noThe consent value is outside the supported enum values.The client should pass consent only as yes or no.
400Input Validation Error: requires property "consent"The consent field is missing from the request body.The client should include the consent field in the request payload.
400Input Validation Error: requires property "rcNumber"The rcNumber field is missing from the request body.The client should include the rcNumber field in the request payload.
404Challan not foundThe challan details are not available for the provided RC number.The client should verify the RC number and retry with valid details.
429Maximum retry limit exceededThe request rate has exceeded the permitted threshold.The client should retry after applying backoff and request throttling.
500Internal Server ErrorThe server encountered an unexpected condition while processing the request.The client should retry after some time and contact support if the issue persists.
503External source downtimeThe upstream source required for challan retrieval is temporarily unavailable.The client should retry after some time when the source service is restored.
Was this helpful?
Ask AIBeta
Hi! How can I help?
Ask me anything about HyperVerge products, APIs, and SDKs.
Try asking: