I have a Python script in charge of updating price and qty for all the products in the store (of course, if there's something to change).
Recently, there was a message that private apps will stop working after April, 2021. OK, gone back to the script , update it here and there, send it back and linked to a newly private app with API version 2020-10. The message reappeared.
The logic and requests of the script are:
https://%s:%s@%s.myshopify.com/admin/variants.json?fields=id,product_id,sku,inventory_quantity,price... -> this is the first request for the variants, after that, since_id is used to get the rest of them
To update the qty this command is used:
shopify.InventoryLevel.set(location_id = location, inventory_item_id= inventoryItemID, available=newQty)
Price is updated like this:
variant = shopify.Variant.find(variantID)
variant.price = newPrice
I tried to find where's the problem but I couldn't find anything.
The script, as it is, it's doing the right thing. It's set up to run @ 15 min interval and there's no error in its execution.
What should I do to get rid of that message? (ignoring it it's not an option