Hi,
We are in the process of migrating our APIs to Shopify’s 2024-07 version, which introduces significant changes compared to the 2023-07 version. I’ve encountered an issue with the productCreate mutation and need your assistance.
Key Changes and Challenges:
- In the 2024-07 version, variant data must be sent in a separate mutation (productVariantsBulkCreate) instead of within the productInput as in the previous version.
- For products with multiple variants, I’ve successfully implemented this using productCreate and productVariantsBulkCreate mutations.
- However, for products with default variants and options, I’m facing difficulties:
- The productVariantsBulkCreate mutation creates new variants, but I need to create default variant.
- Using productCreate alone doesn’t allow me to include crucial details like SKU, price, weight, and inventoryItem, as these belong to variantsInput.
Assistance Required:-
I need guidance on how to create a product with default variants using GraphQL in the new API version. Specifically, I’m looking for a way to include variant-specific details (SKU, price, weight, inventoryItem) when creating a product with default variants.
Your expertise in resolving this issue would be greatly appreciated. Please let me know if you need any further information or clarification.
Thank you for your support.