There has been some unique changes regarding how products are now created via the newer GraphQL APIs (2025+).
Trying to figure out the best approach because I keep running into snags regarding product creations.
I am first using productCreate mutation to create the product.
I then need to add the sku and inventoryItem.tracked along with a inventoryPolicy (which can only be done on the variant level).
So after creating the product with productCreate I can no longer simply add this data for the variants it keeps saying I need options and/or the variant.id (which I cannot get from productCreate any longer).
I have tried productVariantsBulkUpdate and productVariantsBulkCreate but they need those fields which I dont have nor do I want to create any options. This is very frustrating, not sure why the productCreate got rid of the variants input.
Any ideas on how to get this going with the most effective approach?
No worries @Stats_Marketing, definitely understand where you’re coming from on this - I did a bit more digging into this and it looks like this might be being triggered by the “Default” variant which is created upon product creation (essentially a dummy variant). There’s a bit more info in this thread here on our old community forum.. It looks like my colleague Liam suggested this as a possible workaround though:
I’m going to reach out to our developers to see if this is the recommended workaround or if we can escalate a feature request their way. I’ll loop back with you here once I hear back.
Hey @Stats_Marketing - was able to get an answer on this for you quickly here from our developers. The above is still the recommend method, but I was able to pass along feedback to our developers and they mentioned they will mention this to the product/variants component team to see if we can make creating option-less variants/products less restricted going forward.
Let me know if I can help with anything else on my end here.