Failed to create Shopify product. Status code: 401 ...[API] Invalid API key or access token

Failed to create Shopify product. Status code: 401 ...[API] Invalid API key or access token

Nazzcodek
Shopify Partner
1 0 0

Using the shopify API with python I was able to create product on my personal store but when I want to use the same script on my company's store I'm getting the below error.

my company's shop uses 2-step authentication and I have the admin API key, API key and API secret key 

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

below is my shop url construct 

SHOPIFY_URL = f'https://{API_KEY}:{ADMIN_KEY}@{SHOP_URL}/admin/api/{API_VERSION}/'
Reply 1 (1)

Paddy3000
Shopify Partner
16 0 2

Hey Nazzcodek,

Id do have the same issues.

Have you solved it by now?

Thanks a lot!

Patrick