I am trying to place an order via WHMCS API on my local environment. This is my order code,
$postfields["action"] = "addorder";
$postfields["clientid"] = "104";
$postfields["billingcycle"] = "monthly";
$postfields["pid"] = "55";
$postfields['configoptions'] = base64_encode(serialize(array(1 => 3)));
$postfields["regperiod"] = "5";
$postfields["paymentmethod"] = "paypal";
It is listed on the API doc that 'configoptions',
$postfields['configoptions'] = base64_encode(serialize(array(1 => 3)));
^ is for changing the order quantity and other options(first element is for the quantity). Problem is that the invoice generated by WHMCS only contains quantity as 1 and not 3.
---------------------------------------------------------Edit 1 ------------------------------------------------------------------
I have looked into the product configurations, "Tick this box to allow customers to specify if they want more than 1 of this item when ordering" option is ticked as well!