Devil API

VEHICLE CHALLAN CHEK

Base Endpoint URL

https://api.devilapi.online/service_api/v1/pariwahan/challan.php

Parameters Payload

Parameter Type Required Description
api_key string REQUIRED enter_key
vehicle_number string REQUIRED enter_vehicle_number

PHP Integration Code

curl_request.php
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
   CURLOPT_URL => 'https://api.devilapi.online/service_api/v1/pariwahan/challan.php?api_key=&vehicle_number=',
   CURLOPT_RETURNTRANSFER => true,
   CURLOPT_ENCODING => '',
   CURLOPT_MAXREDIRS => 10,
   CURLOPT_TIMEOUT => 30,
   CURLOPT_FOLLOWLOCATION => true,
   CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
   CURLOPT_CUSTOMREQUEST => 'GET',
   CURLOPT_POSTFIELDS => {
    "api_key": "",
    "vehicle_number": ""
}
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
Example Response Payload
200 OK
{
    "status": "success",
    "message": "Challan found for vehicle ************",
    "fee": "***",
    "sms_sent": true,
    "total_records": "***",
    "challans": [
        {
            "id": "********",
            "challan_receipt_url": null,
            "challan_number": "********************",
            "challan_date": "****-**-**",
            "challan_time": "**:**:**",
            "accused_name": "********",
            "vehicle_number": "************",
            "payment_receipt_url": null,
            "challan_status": "*******",
            "amount": "****",
            "court_status": "*",
            "source": "**************",
            "offence_location": "********************",
            "offence_name": "******************************",
            "penalty": null,
            "normal_court_eligible": "*",
            "online_payment_eligible": "*"
        },
        {
            "id": "********",
            "challan_receipt_url": null,
            "challan_number": "********************",
            "challan_date": "****-**-**",
            "challan_time": "**:**:**",
            "accused_name": "********",
            "vehicle_number": "************",
            "payment_receipt_url": null,
            "challan_status": "*******",
            "amount": "****",
            "court_status": "*",
            "source": "**************",
            "offence_location": "********************",
            "offence_name": "******************************",
            "penalty": null,
            "normal_court_eligible": "*",
            "online_payment_eligible": "*"
        }
    ]
}
Bearer Token Authentication All API requests require active authentication tokens sent inside HTTP Bearer headers.