Jump to content

api add order multiple domain in one go


letshost

Recommended Posts

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 :cry:

Link to comment
Share on other sites

  • 7 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated