Custom APP, Invalid API key or access token using POSTMAN

Highlighted
New Member
6 0 0

Hi Experts,

 

I am trying to access admin data using postman Get request, but i am facing this error:

"errors""[API] Invalid API key or access token (unrecognized login or wrong password)"
 
My url is:
https://apikey:secretkey@myshop.myshopify.com/admin/api/2020-02/customers.json

 

Please help me, i am trying from yesterday. 

 

Thanks in advance.

 

0 Likes
Highlighted
Shopify Partner
3 1 0

Have you tried the method described here?  https://shopify.dev/tutorials/authenticate-with-oauth#step-4-making-authenticated-requests

 

When your custom app is installed, save the token sent by Shopify in step 6 of this flow: https://shopify.dev/tutorials/authenticate-with-oauth#step-4-making-authenticated-requests and use it as a header value with the key 'X-Shopify-Access-Token'.  The 'apikey:secret@' portion of the API URL should not be included.

 

Here is an example in Postman GUI with test token value:

 

Screen Shot 2020-02-22 at 11.36.33 AM.png

 

 

0 Likes
Highlighted
New Member
6 0 0

Thanks for reply. 

How can i get access_token? I am facing problem to get access_token?

0 Likes
Highlighted
Shopify Partner
3 1 0

It is sent by the Shopify API in the step described here:  https://shopify.dev/tutorials/authenticate-with-oauth#step-3-confirm-installation  The token is how the Shopify API knows which API permissions (scopes) your app has.

0 Likes
Highlighted
New Member
6 0 0

I am newbie in shopify api. Can you please help me to get data from shopify. 

What will be steps and urls in postman to get data?

 

Thanks

0 Likes
Highlighted
New Member
6 0 0

1.PNG

 

When i send get request from postman then it is showing this screen and i am stuck to move one.

0 Likes