I am interested in having the following flow: creating an order with customer shipping address included, deducting from inventory and finishing the other to be shipped. I am basically looking to perform the entire purchase process programmatically while taking payment outside of Shopify.
So far I have gathered that I should likely use the Draft Order endpoints to create a Draft Order
-
When creating a Draft Order, are we able to pass in the shipping address?
-
When creating a Draft Order, the inventory is not deducted, however, when we update the Draft Order to Completed, does the inventory get deducted at that point?
-
The goal is to perform the ordering all in one step (as far as the user is concerned). We’ll take the customer’s order outside of Shopify, we create the order via the API, and also take payment outside of Shopify, then complete the order and ship. Im I on the right track by using draft orders, if not what API endpoints should I use, and in what order?
Thank you for your time and help!