Find a variant ID
You can use variant IDs for several reasons. This article will show you how to locate the ID of a specific variant.
From your Shopify admin, click Products (or press
Click on a product.
Look at your URL bar on the product page. You should see something like this:
At the end of this URL you want to add ".xml"
So your product's admin URL will looks something like this:
Press the Enter key.
You will then see an XML file that contains all of the variant information for that product. It may look intimidating at first, but don't let it scare you! You can see that each variant has its own "block", and within each block you'll find a single line for "id". The number between the
<id type="integer"> and
</id> is the variant id that you want to grab.