Order line_items origin_location data missing

Highlighted
New Member
3 0 0

Hello,

I noticed that for some orders, line_items[x].origin_location exists, and for others it's missing. Why is it there for some orders and missing for others?

In particular, I'm trying to write an algorithm that can determine the origin location for fulfilling an order. Some shops want to use the shop's address data as the origin location, but others have a different origin location configured in their shipping settings. This should cause the correct origin location data to flow through to each order's line_items[x].origin_location data, but I entered a different shipping origin for my test shop, then created new test orders, and the data are missing--so there's no way to determine where a fulfillment should ship from! Help!

LR

0 Likes
Highlighted
New Member
3 0 0

Update: the origin_location data appears to be filled in for orders that come in via the actual shop, but *not* for orders that are created in the admin panel. Why?

Thanks.

0 Likes
Highlighted
New Member
6 0 0

Hey @Jonathan6 

 

I'm handling the same issue right now.

 

Do you have more information about this use-case? 

0 Likes