I was testing some code while trying to add an order item to an invoice and I’m getting this error:
Failed to invoke method addOrderItem in class com.infusionsoft.api.xmlrpc.XmlRpcInvoiceService: id must be valid
My PHP Code
// Create Order Item
$productId = 95;
$type = 4;
$price = (float)1500.00;
$qty = 1;
$item = $iSDK->addOrderItem($invoice_id, $productId, $type, $price, $qty, ‘Product Name’, ‘Added by API’);
… I’ve used this before w/o issue… is this a new bug, or have I truly done something wrong in my code?
I’ve seen some previous posts from 2017 where this similar issue was encountered, but I’ve used this as of the 15th of last month and it worked…