$url = "https://xxx.com/includes/api.php"; # URL to WHMCS API file
 $postfields["username"] = "adminusername"; 
 $postfields["password"] = md5("adminpassword"); 
 
 $postfields["action"] = "getorders";
 
 $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);
 $data = curl_exec($ch);
 curl_close($ch);
 
 $data = explode(";",$data);
 foreach ($data AS $temp) {
   $temp = explode("=",$temp);
   $results[$temp[0]] = $temp[1];
 }
 
 if ($results["result"]=="success") {
   # Result was OK!
 } else {
   # An error occured
   echo "The following error occured: ".$results["message"];
 }
Api ile client ve bu clientlere product ekleyebiliyorum, fakat orderlerı gösteremiyorum. Aldığım hata sadece
The following error occured:
detay da vermiyor. Sorun ne olabilir? pending orderları asıl gösterebilirim?