PRODUCT_ORDER_DELIVERY_ITEM_COMPLETE PRODUCT Endpoint
  /rpc/product/?method=PRODUCT_ORDER_DELIVERY_ITEM_COMPLETE  
 

Call this method once you have updated all the delivery items (PRODUCT_ORDER_DELIVERY_ITEM_MANAGE).

It creates the stock general journal, creates the invoice, and updates the order status based on whether all items have been delivered.

 
  PARAMETERS  
  id Product ID
  RETURN  
  Invoice Created Invoice ID
  GeneralJournal Created GeneralJournal ID