How to represent products where there are multiple SKUs per "Product Variant"?

This is a question about how or if one can handle representing a product hierarchy that looks like this:

  • Product

  • Product Variant

  • Product Variant Batch (SKU) ← How do we describe these in Shopify?

To put this into words, the above describes a structure where the unique SKU identifies a particular batch of a product variant. This means that there are multiple batches of a given product variant.

It’s not obvious how to represent this structure in Shopify. Looking at the Shopify APIs, both the Product Variants and the Inventory Items have a sku field. However, the docs for Inventory Items says, “[t]here is a 1:1 relationship between a product variant and an inventory item”, so this relationship can’t be used to express the 1:many relationship between product variants and their batches.

Has anyone here encountered this situation before?

1 Like

Hi @emiller

I find the best way to understand the structure is to look at the admin and create a product. This will mirror the options that are available through the API as well. You can have multiple variants that have a same SKU if you want. The field does not require a unique value. You could have: Product A → Variant options: Size / Color. Within these options you can have Small, Medium, Large and then Blue, Red, etc.