OTHER STATE RATION TO UID
Base Endpoint URL
https://api.devilapi.online/service_api/v1/ration/allstate_data.php
Parameters Payload
| Parameter | Type | Required | Description |
|---|---|---|---|
| api_key | string | REQUIRED | enter_key |
| statecode | number | REQUIRED | enter_state_code |
| ration_no | number | REQUIRED | enter_ration_no |
PHP Integration Code
curl_request.php
<?php $curl = curl_init(); curl_setopt_array($curl, array( CURLOPT_URL => 'https://api.devilapi.online/service_api/v1/ration/allstate_data.php?api_key=&statecode=&ration_no=', 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": "", "statecode": "", "ration_no": "" } )); $response = curl_exec($curl); curl_close($curl); echo $response;
Example Response Payload
200 OK
{
"status": true,
"code": 200,
"rationno": "03****41",
"state": "Punjab",
"message": "Uid Data Found Successfully",
"sms_sent": false,
"fee": 150,
"response_time": "4.97 seconds",
"members": [
{
"name": "N******R",
"uid": "****1920"
},
{
"name": "H******R",
"uid": "****3077"
},
{
"name": "S**I",
"uid": "****2055"
},
{
"name": "R*****H",
"uid": "****3193"
},
{
"name": "V*****H",
"uid": "****4918"
},
{
"name": "T**O",
"uid": "****9183"
},
{
"name": "G******H",
"uid": "****4834"
}
]
}
Bearer Token Authentication
All API requests require active authentication tokens sent inside HTTP Bearer headers.