Hi, I am creating product in bulk on shopify for one of my projects using graphql api in bulk but i am getting error for variant in the new version its going with the old version but getting error for latest version . can any one provide me input for creating product with variant
Please share the specific error information.
Hello @HARSH_7878 ,
As far as I know, since the 2024-04 version, Shopify has removed the field variants when calling the productCreate mutation. This explains why the code still works in older versions.
To make the code work from version 2024-04 onwards, you should omit the variants when calling the productCreate mutation, then use the productOptionsCreate mutation to create variants for that product.
If you have any additional information, please let me know.
I hope this helps you.