Error creating product using the API with Python

1 0 0

I try to connect to our store and create product using the API but I'm getting the below error even though I've all the necessary credentials

 'Failed to create Shopify product. Status code: 401 {"errors":"[API] Invalid API key or access token (unrecognized login or wrong password)"}' 

I have the Admin API access token, API key, and API secret key

here is how I construct my url






I've created two apps which gave the same result.
When I use the script on my personal Shopify store which is a partner account everything works fine. But on the company's account it doesn't. What could be the problem and solution to it.

Replies 0 (0)