- Daily Developer Hurdles
- Posts
- Where can I find a Location Id in my Shopify Admin?
Where can I find a Location Id in my Shopify Admin?
This article will help you to find a location id for any of the location in your Shopify store. While there is not direct application of this article, but this will be handy to perform some specific tasks where you need to find the location id. For eg. while creating a Shopify flow to update the product quantity based on some condition.
Intended Audience:
Shopify Merchants
Shopify Developer
Context:
You are creating a Shopify Flow and you need to use the the location id somewhere in the conditions. The context can be expanded to more use cases like, you have installed some public app and you need to configure a location id somewhere in the app, etc…
Solution:
Go to Settings > Locations
Settings button in Shopify Admin[at the bottom left corner]
Click on the Location Name for which you need the ID?
List of all the locations in store
Find the ID of the location in the url of the browser
Location id of a selected location [in the URL bar]
Note:
It is important to understand the format of the id. Some time you might need the id as it is, and for some use case you might need the admin_graphql_api_id. Here are both the format of the location id.
ID: 99930767642
or
admin_graphql_api_id: "gid://shopify/Location/99930767642"