Newbie needs help! Can't create new product using Python

Highlighted
Shopify Partner
9 0 0

Hi, I have been trying to get started with my Python app.  I tried to create a new product listing on my own store, using Shopify's own example (https://help.shopify.com/en/api/reference/products/product#create).  However, I kept on getting this error: 

{"errors":{"product":"Required parameter missing or invalid"}}

Please help!!

codes:

=============================================

import requests
import json

url = 'https://somekey:somepw@oolong-inc.myshopify.com/admin/products.json'
productDict={"product":{"title": "Burton Custom Freestyle 151","body_html": "<strong>Good snowboard!</strong>","vendor": "Burton","product_type": "Snowboard","published": "false"}}
payload = json.dumps(productDict)


# POST with form-encoded data
r = requests.post(url, data=payload)

print(r.text)

0 Likes
Highlighted
New Member
3 0 0

Hi Winston,

There is some parameter missing or invalid. Can you drop me a email at me@mrclarify.com or just contact me trought skype me@mrclarify.com

I will help you with this issue.

Thank you,

Victor Nizeyimana

0 Likes