Difference between location and origin_location in Order API

Daelan_Wood
Shopify Partner
32 0 11

Can anyone shed some light for me on the difference between location and origin_location when grabbing orders using the Order API?

 

The location seems to be directly tied to the ID of the location that the order was sold in, but I can't seem to figure out what origin_location is referring to. It appears different for orders that were processed in the place and pulled from the same inventory.

 

Also, just to clarify, i'm not talking about orders that have been fulfilled yet. So these IDs have nothing to do with fulfillment locations. This is before they are fulfilled.

Replies 3 (3)

ClementG
Shopify Partner
660 0 130

I'm curious where you see the origin_location?

Is that on the order the order.fulfillments?

Daelan_Wood
Shopify Partner
32 0 11

It's part of the Line Items object

 

Screen Shot 2019-03-28 at 8.26.11 AM.png

Teo_Sam
Visitor
1 0 0

Hello,

 

I have a Zap that has been fetching line items origin location name and it has been a week since it stopped. We havent changed anything in the Shopify level and now I am looking out for the code where I can edit the origin location name, so I need to find that code above.

 

Where can I find this code you posted above, so that I edit it?

 

Is it under the Themes menu and if yes where exactly?