Shopify ADMIN API Invalid API key or access token (products)

kristiantg
Shopify Partner
1 0 0

When I try to call: 

I get the following response:

{"errors":"[API] Invalid API key or access token (unrecognized login or wrong password)"}

It is possible for me to call the count:

/admin/api/2023-04/products/count.json

That returns correctly. 

Any idea of what could be causing this? I am using a development store.

Reply 1 (1)

sherpabot
Shopify Partner
16 0 2

Is this a Shopify app? Either way, be sure to have the proper scopes inside your custom app or root .toml file. 

If you changed the scopes during the process uninstall and reinstall to get access via the oAuth process. 

I know it sounds silly to mention, but be sure you are using the correct method ("GET" | "POST"), and proper data structure for the body/query params (if at all). I mess up these small things all the time. After batting my head against the wall I realize its a small type or something as simple as this, haha. 

Any other details will help better answer though. Be sure to like and reply so I know to respond. Good luck, hope this helps a bit.