App reviews, troubleshooting, and recommendations
Hello,
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
https://%s:%s@%s.myshopify.com/admin/variants.json?fields=id,product_id,sku,inventory_quantity,price,inventory_item_id&limit=250&since_id=
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
variant.save()
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 🙂 )
Thanks
Sorin
Discover how to increase the efficiency of commerce operations with Shopify Academy's l...
By Jacqui Mar 26, 2025Shopify and our financial partners regularly review and update verification requiremen...
By Jacqui Mar 14, 2025Unlock the potential of marketing on your business growth with Shopify Academy's late...
By Shopify Mar 12, 2025