Oauth error invalid_request: Could not find Shopify API application with api_key

GuiShimoku
New Member
2 0 1

Hi! I'm trying to get the access token from a shop that has one application I created installed.

I'm calling the "https://integrationtestshimoku.myshopify.com/admin/oauth/access_token" where "https://integrationtestshimoku.myshopify.com" is the URL of my shop that already have the app installed. 

 

shim-installed.png

The response I'm receiving is:  "Oauth error invalid_request: Could not find Shopify API application with api_key"    

I'm making the request using Postman with a POST method and a JSON body with the following content:

{
"cliend_id": "XXXXXXXXXXXXXXXXXXX",
"client_secret": "shpss_XXXXXXXXXXXXXXXXXXXXXXXXXXXX",
"code": "XXXXXXXXXXXXXXXXXXXXXXXXXXX"
}
 
I checked the client id secret and code params were correct and I tried with different newly created stores and applications but I always get the same error.
 
Does someone know how to solve it? Thanks in advance, Guillermo. 
 
0 Likes
L_J_K
Shopify Staff
Shopify Staff
143 15 24

Hey @GuiShimoku 

That sounds strange! I checked out the logs for this request and indeed the Oauth Controller is returning a 400 Bad Request. cliend_id sounds like it could be a typo?

Also, I note that Shimoku test app doesn't exist on https://integrationtestshimoku.myshopify.com anymore now - I would check that the client_id matches the app's API key. They would both be the same. Hope that helps - let me know how you get on!

| API Support @ Shopify |
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution!
0 Likes
GuiShimoku
New Member
2 0 1

The keys were OK, It actually was a typo, as you can see in the JSON I was writing: 

{
"cliend_id""XXXXXXXXXXXXXXXXXXX",
"client_secret""shpss_XXXXXXXXXXXXXXXXXXXXXXXXXXXX",
"code""XXXXXXXXXXXXXXXXXXXXXXXXXXX"
}
 
cliend instead of client.
 
It seems it works now, thanks