This topic and discussion board has been closed.
To stay updated on announcements related to the API please review this post about the new Developer changelog.
The Draft Orders API is officially launched and moving out of Beta!
Since our initial Beta launch, we've made the following improvements:
We are continuing to make improvements and considering feature requests as these are reported in the Shopify API and SDKs forum. We look forward to seeing what you build!
Here is an example of the updated Sales by Channel report, reflecting Orders created by an application named Order Application using the Orders API, and Orders completed by the Draft Order Application via the Draft Orders API.
There are some amusing aspects of using Draft Orders that would be nice for Shopify to point out in a detailed explanation of their use.
As an example, one funny (or not depending on your view) thing about them is that when you mark a Draft Order as paid, that action generates a webhook for Orders/Paid. Seems about right. Except, the order does not actually exist in good shape yet. If you were to do some API snooping at that time, you'd notice inventory is not yet affected, as the payment has to go through. Apparently the payment action takes some time in the background, so to know what that Draft Order does to inventory you have to count on the Orders/Create webhook instead, which fires once payment is accepted. That is just so intuitive!
Anyway.. yay for progress, even if we have many many issues to now sort through and learn. Hopefully Shopify has some souls dedicated to informing us all about the little things we might not know except through discovery and careful use.
We can only address what we know about. As such, your feedback is important to ensuring we can improve the API, and also to document some of the less obvious aspects as accurately and effectively as possible. I wasn't aware that you've been using the API, if there's anything you think we should improve, feel free to post additional detail in the Shopify API and SDKs forum.
Is there a way to use the draft orders API calculate the draft order totals (kinda like what the calculate endpoint does on refunds), without actually creating the draft order? I notice on the Shopify Admin, when you create a draft order, it builds the draft order but doesn't create it until you save the draft order. It would be great if there was similar functionality on the Draft Orders API.
Our use case is that we want to be able to allow our users to create draft orders for their customers, by adding products / variants and viewing the draft order summary as they go along, but only creating the draft order after they've reviewed everything.
There seems to be a bug in case of sorting order_by in Draft order APIs.
I have tried to access the order API with the following URL and it is working perfectly:
But when I try to access with the same parameters with the draft order API, it only shows the result in ascending order.
Does anyone face the same issue with Draft Order API?
It would be nice to be able to put custom weights on the custom line products so shipping can calculate.
Thanks to all Community members that participated in our inaugural 2 week AMA on the new E...By Jacqui Mar 10, 2023
Upskill and stand out with the new Shopify Foundations Certification programBy SarahF_Shopify Mar 6, 2023
One of the key components to running a successful online business is having clear and co...By Ollie Mar 6, 2023