Hello. I would like to know if there may be possibility to find older API documentations? I am unable to get clients details properly using older version of WHMCS and newer documentations are no help at all. No, upgrade is not a solution for my case
Currently using:
$postfields["action"] = "getclientsdetails";
$postfields["username"] = env('WHMCS_API_USER');
$postfields["password"] = md5(env('WHMCS_API_PASS'));
$postfields["clientid"] = intval($userid);
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_TIMEOUT, 100);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $postfields);
$response = curl_exec($ch);
curl_close($ch);
Log::info(get_class($this).' WHMCS: '.$response);
And receiving:
{"status":"fail","message":"Invalid parameters submitted","data":null,"code":100008}
Thank you!