Development discussions around Shopify APIs
The description of shop resource (GET /admin/shop.json) says that the primary_location_id attribute is deprecated.
But the location resource GET /admin/locations.json does not provide any attribute to find out the shipping origin.
What is the correct way to get the shipping origin?
Hey there,
Currently this is still the correct way to get a shop's shipping origin location.
Now that Shopify has shifted toward the concept of multiple locations though, there may not always truly be a 'primary' location. If you're using this field for fulfillment or inventory management purposes, in the long run it's likely safer to look up the location that inventory has been stocked at using either this guide (if you're creating fulfillments) or this guide (if you're managing inventory).
Josh | Shopify
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit the Shopify Help Center or the Shopify Blog
User | RANK |
---|---|
10 | |
4 | |
3 | |
3 | |
3 |
We're excited to announce improvements to the threaded messaging experience in our communi...
By TyW May 31, 2023Thank you to everyone who participated in our AMA with Klaviyo. It was great to see so man...
By Jacqui May 30, 2023Photo by Marco Verch Sales channels on Shopify are various platforms where you can sell...
By Ollie May 25, 2023