letshost Posted March 24, 2010 Share Posted March 24, 2010 Hi Guys I am trying to using API addorder command (version 4.12) to add multiple domains in one api call. The whmcs guys said that I need to put the domains in array and the according regperiod into array as well as shown below, but I always get error "invalid TLD/Registration Period ......" . I have tried using a single string with domains seperated by comma etc, none of that is working as well. $postfields["action"] = "addorder"; $postfields["clientid"] = 998776; $postfields["domaintype"] = "register"; $postfields["domain"] = array("jitest.ie", "jitests.com"); // $domain_product_addon_collection['domain']; $postfields["regperiod"] = array('1','1') ; // $domain_product_addon_collection['regperiod']; $postfields["paymentmethod"] = "mailin"; ------error message -------------------- Invalid TLD/Registration Period Supplied for doamin .....' Can I anybody help me out please? Thans Ji zhang 0 Quote Link to comment Share on other sites More sharing options...
downunder Posted November 4, 2010 Share Posted November 4, 2010 From WHMCS Staff, eg: $postfields["domain[0]"] = "domain.com"; $postfields["domain[1]"] = "domain1.com"; $postfields["domaintype[0]"] = "register"; $postfields["domain[1]"] = "register"; etc etc, 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.