Development discussions around Shopify APIs
For orders created from draft orders on the webpage, the `source_name` of the orders will be `shopify_draft_order`. But for orders created from draft orders on the mobile app, the `source_name` seems to be `android` instead (note: I have not test it on iOS). I saw another post saying to use the `landing_site` but for my case the `landing_site` is null. So how do I identify this?
Hey @yukari ,
'source_name' would be the best field to check for to determine if the order was originally from a draft order, but as you may have already noticed, if the order is completed (PUT /admin/draft_orders/#{draft_order_id}/complete.json) using the DraftOrders API, then the "source_name" value will be set to the API client which completed the order.
If the draft order was made through Cash on Deliver or Other payment form (rather than credit card) you can also check “gateway” and see if it is set to ‘manual’, as a potential solution to to see if it came from draft orders
As the most fool proof solution, you can set a note on the Order or a tag in order to specifically indicate that this order originated as a draft order
Hassain | Developer Support Specialist @ Shopify
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Click Accept as Solution
Photo by Marco Verch Sales channels on Shopify are various platforms where you can sell...
By Ollie May 25, 2023Summary of EventsBeginning in January of 2023, some merchants reported seeing a large amo...
By Trevor May 15, 2023With 2-Factor Authentication being required to use Shopify Payments, we’re here to help yo...
By Imogen Apr 26, 2023