<div dir="ltr"><div><div><div><div>Hi,<br><br></div>I'm working on a new module and I need to add a new order using the the API.<br><br></div>I've used vtws_retrieve_inventory to retrieve the order now I'm trying to add a new one. Is the following the correct way to do it:<br><br>vtws_create('SalesOrder',$array,$user) <br><br>and for the lines items <br><br>vtws_create('LineItem',$array,$user)<br><br></div><div><br></div><div>Is there a way to add the entire order in just one call?<br></div><br></div>Thanks,<br><br><div><div><br><br></div></div></div>