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"

Keep reading