winten Posted September 5, 2013 Share Posted September 5, 2013 I was testing API to add order and noticed it fails to do so: I used the following code: $command = "addorder"; $adminuser = "admin"; $values["clientid"] = "1"; $values["domaintype"] = array("register"); $values["domain"] = array("supernicedom.com"); $values["regperiod"] = array(1); $values["dnsmanagement"] = array("on"); $values["idprotection"] = array("on"); $values["nameserver1"] = "ns1.demo.com"; $values["nameserver2"] = "ns2.demo.com"; $values["nameserver3"] = "ns3.demo.com"; $values["nameserver4"] = "ns4.demo.com"; $values["paymentmethod"] = "paypal"; $results = localAPI($command,$values,$adminuser); print_r($results); and obtained result: Array ( [result] => success [orderid] => 0 [productids] => [addonids] => [domainids] => 0 [invoiceid] => ) However the domain was not registered for the client. Any ideas what may be wrong? 0 Quote Link to comment Share on other sites More sharing options...
Kian Posted September 5, 2013 Share Posted September 5, 2013 With "addorder" you are just adding an order to WHMCS. If you also want to register domain you have to use "domainregister" command as described here: http://docs.whmcs.com/API:Register_Domain 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.