Can you clarify where you're seeing a null location_id?
I'll point out that all orders contain a location_id field directly on the order object, but note that this field is only populated for POS orders processed at a physical retail location.
You can query a shop on
/admin/api/2020-04/locations.json to get all the locations contained in that shop. I also recommend looking into the new Fulfillment Order API which takes lots of the guesswork out of the fulfillment process by automatically grouping items that are to be fulfilled from the same location.
JB | Developer Support @ Shopify
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Click Accept as Solution