Getting error while order cancellation in php

jitendra
As per the kiteconnect.php , I am sending the following parameters to cancel an order.

$api_key = $_POST["api_key"];
$access_token = $_POST["access_token"];
$orderId= $_POST['orderId'];

$kite = new KiteConnect($api_key);
$kite->orderCancel('$orderId',null,[
"api_key" => $api_key,
"access_token" => $access_token
],"regular");

I am getting following error.

Fatal error: Uncaught GeneralException (404) 'Route not found' thrown in C:\xampp\htdocs\kiteconnect.php on line 587

Please let me know , where I am wrong.
This discussion has been closed.