API:Add OrderFrom WHMCS DocumentationThis command is used to add a new order to the system. Attributes clientid - client id for order pid - product id domain - domain name billingcycle - monthly, quarterly, semiannual, etc.. addons - comma seperated list of addon ids customfields - a base64 encoded serialized array of custom field values configoptions - a base64 encoded serialized array of configurable product options domaintype - set for domain registration - register or transfer regperiod = 1,2,3,etc... dnsmanagement - true to enable emailforwarding - true to enable idprotection - true to enable eppcode - if transfer ns1 - first nameserver (domain reg only) ns2 - second nameserver ns3 - third nameserver ns4 - fourth nameserver paymentmethod - paypal, authorize, etc... Example Command $postfields["action"] = "addorder";
$postfields["clientid"] = "1";
$postfields["pid"] = "1";
$postfields["domain"] = "whmcs.com";
$postfields["billingcycle"] = "monthly";
$postfields["addons"] = "1,3,9";
$postfields["customfields"] = base64_encode(serialize(array("1"=>"Google")));
$postfields["domaintype"] = "register";
$postfields["regperiod"] = "1";
$postfields["paymentmethod"] = "mailin";
Returned Variables orderid invoiceid API Functions |
|





