Development discussions around Shopify APIs
I'm finding the order source_name when created through draft orders to be inconsistent. Sometimes it's "shopify_draft_order" and other times "web". Following their draft order and order timelines, I'm unable to find any differences between the order/draft orders. The API doc merely lists the Shopify values (web, pos, shopify_draft_order, iphone, and android) but does not explain the conditions of their assignment. Yes, they would be self-explanatory if it weren't for this inconsistency.... Does anyone know why this is happening?
Thank you!
I'm running into this issue as well.
I'm trying to add a tag with the API when a new order is created from a draft order, but I can't reliably evaluate source_name to be what I expect. These are my steps:
It seems like it should always be shopify_draft_order in this case.
I am not a programmer but here's what I've found.
If one creates and completes the draft order entirely via the backend, the source name is "shopify_draft_order".
If one creates a draft and uses the link from the email, the source is "web", although a new field (something about landing site) populates with a long string which contains the word "invoice". That field does not appear in regular, customer-generated orders.
Hope this helps
User | RANK |
---|---|
12 | |
7 | |
5 | |
5 | |
5 |
Learn these 5 things I had to learn the hard way with starting and running my own business
By Kitana Jan 27, 2023Would you love to unleash the unbridled power of the Google Shopping Channel into your sho...
By Gabe Jan 6, 2023How can you turn a hobby into a career? That’s what Emmanuel did while working as a wa...
By Skye Dec 30, 2022