Inconsistent Order `source_name` when created from Draft Order: `shopify_draft_order` or `web`

dmmk
New Member
1 0 0

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!

0 Likes
ImpressEv
New Member
1 0 0

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:

  • Create a draft order and send email to customer for payment (through the normal Shopify UI)
  • Customer Pays invoice
  • New order is created and new order webhook is fired
  • Sometimes the source_name is 'web' and other times it's 'shopify_draft_order'

It seems like it should always be shopify_draft_order in this case.

0 Likes