<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'https://hiddenapi.in/serviceapi/pan_v/newpan_response?encData=value',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'POST',
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
?>
API Hit Success Example Response
{
"order_id": "250301**********7431",
"status": 0,
"ack": null,
"amount": null,
"message": "Form not Completed"
}
API Hit Failure Example Response
{
"status": false,
"message": "Enc Data is not valid."
}