Issue with Deprecated API Call in ProductVariantsBulkInput. deadline: Jan 1, 2025

Issue with Deprecated API Call in ProductVariantsBulkInput. deadline: Jan 1, 2025

TMD-APPS
Shopify Partner
2 0 0

Hello Shopify Community,

I am encountering an issue while using the ProductVariantsBulkInput mutation for adding product options. Shopify has flagged a deprecated API call in my app

 

Deprecated API calls made by Custom App

 

However, I am unable to find a clear solution for handling this deprecation. I also attempted using productOptionsCreate but noticed that it only adds one option instead of all options.

 

I am currently using the following structure for options:

 

 

"options" => [
    [
        "name" => "Color",
        "values" => ["Red", "Black", "White"]
    ],
    [
        "name" => "Size",
        "values" => ["M", "L", "A"]
    ]
],

 

 

Could anyone provide clarity on:

How to handle multiple options with the updated API structure?
What is the correct mutation or approach to replace ProductVariantsBulkInput?
Your guidance or a working example for this scenario would be incredibly helpful.

Thank you in advance!

Replies 0 (0)