Liquid, JavaScript, themes, sales channels
Hi I am techy savy, but not very code intelligent person. I have used CHATGPT to help me create a python code that archives/drafts products when I enter the sku. It seems like I have gotten almost everything to work, my code even finds the correct item id. But there seems to be an issue with the payload I cannot get past. I continuously get this error in the terminal:
Payload being sent: {'product': {'id': 8047613051133, 'status': 'draft'}}
Failed to set product with SKU: 100075 to draft. Error: {"errors":{"product":"Required parameter missing or invalid"}}
Can anyone help? I assume its something to do with the phrasing of 'product', 'status', or 'draft' but as I said I am not extremely fluent with python so I would not know. Thank you.
User | RANK |
---|---|
37 | |
28 | |
13 | |
13 | |
9 |
On our Shopify Expert Marketplace, you can find many trusted third party developers and fr...
By Arno Nov 27, 2023You've downloaded the Search & Discovery app from the Shopify App store, and as you're ...
By Skye Nov 8, 2023The year-end shopping season is just around the corner. Is a flash sale on your radar? Are...
By Jasonh Nov 6, 2023