How to find Product ID and Variant ID?
The easiest way to find a Product ID is through your Shopify admin dashboard:
- Log in to your Shopify admin panel.
- Go to the Products page and select the product you need.
- Check the browser address bar—the URL will end with …/products/product-handle. The numbers immediately after /products/ represent the product ID.

For Variant ID:
- Go to the Products page and select the Variant you need. You will be directed to Variant page.
- Check the browser address bar—the URL will end with …/products/product-handle/variants/variant-handle. The numbers immediately after /variants/ represent the variant ID.

How to find Collection ID?
- Go to the Collections page and select the collection you need.
- Check the browser address bar—the URL will end with …/collections/collection-handle. The numbers immediately after /collections/ represent the collection ID.

How to find inventory location ID?
- Log in to your Shopify admin panel.
- Go to the Settings page and select Locations tab.
- Select a location you need to get ID.
- Check the browser address bar—the URL will end with …/locations/location-handle. The numbers immediately after /locations/ represent the inventory location ID.

Product/Variant metafield information
- Go to the Settings page and select the Custom data tab.
- Choose an existing metafield or create a new one.
- In given template, enter the required fields in the following format:
{key: [metafield key], value: “[value1]”, “[value2]”, label: [metafield name]}
- [metafield name] → The text specified in the “Name” field.
- [metafield key] → The text found in the “Namespace and key” field after “custom.”
- [value] → The values you assign to each product/variant for that metafield.

