Identify Location used to fulfill order

Solved
Highlighted
Shopify Partner
18 1 0

When a shop has multiple locations, how can I find out which location the inventory for a specific order came from?  Is this information included in the Order object?

0 Likes
Highlighted
Shopify Staff
Shopify Staff
1040 139 163

Hey @Tolulope_Akinol,

 

You can look up the fulfillments of an order, which contains a location ID. You can use the location ID to look up the location.

0 Likes
Highlighted
Shopify Partner
18 1 0

This is an accepted solution.

To anyone else looking for a solution, I solved it by getting the location from the associated FuilfilmentOrder (https://shopify.dev/docs/admin-api/rest/reference/shipping-and-fulfillment/fulfillmentorder)

0 Likes