Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

Re: API calls stopped working

API calls stopped working

Marco_Monroy
Visitor
2 0 0

Hi guys,

 

I just noticed that my app (and Postman) are getting "Invalid API key or access token (unrecognized login or wrong password)" when I try to make a request.

 

This is weird because the same calls were working fine 2 days ago. But since yesterday every call (no matter the shop) is returning the "Invalid API key or access token" message.

 

Has anyone faced this issue?

banned
Replies 3 (3)

disanza
Visitor
3 0 0

I experienced the same thing and it turns out a third authorization key has been added called an Access Token. It used to be just a consumer key and consumer secret that was required, at least with my experience. If you are not including the access token as a header, you will need to add it. If you don’t have one, you can generate it from the apps section of the website. Once you install the required app, you can expose your key. If you need helping finding that, I can help later once I’m at my PC and am able to provide links. Just let me know.

 

I am now experiencing a different issue which I am about to post a question about, but basically GET is the only working request for me at the moment. Hopefully you don’t run into that.

Marco_Monroy
Visitor
2 0 0

Thank you Disanza!

 

This is my first uploaded app, so I am a little bit rookie. I would appreciate if you help me to find the option to generate the access token please.

 

Thanks!!!

banned
disanza
Visitor
3 0 0

Sure thing. Give this a try.

disanza_1-1644026959454.png

Navigate to the app developer. I noticed that the old apps say Private App and don't seem to have the option for generating the Access Token. You may want to consider creating a new app (it says custom app afterwards instead of private). A new app should lead you to the next screen shot where you need to configure the API scope.

disanza_2-1644027145936.png

After doing that the option to install the app will appear and then it will grant you visibility of your Access Token.

disanza_3-1644027211948.png

For info on providing the Access Token in your requests, you can visit this link.
REST Admin API reference (shopify.dev)

 

Good luck!