I am writing a one-off app for a client that looks at current inventory stock numbers, and adjusts them based on user input. To adjust them, I am creating an order and adding the line items of the products I want to adjust, then applying a 100% discount to the order.
I have successfully created an order, added items to it, and applied a discount.
I need help with how to finish the order so that the stock of those items goes down according to the order and the order appears completed.
(I am currently working with an API token in the sandbox.)