New Shopify Certification now available: Liquid Storefronts for Theme Developers

[API] Invalid API Key Or Access Token (Unrecognized Login Or Wrong Password)

Shopify Partner
5 0 0

I have a public app and it generated an access token for a store "A".

I called order count API with the token as follows:


curl -X GET "" -H "X-Shopify-Access-Token: ****"


Then I got the following error.

[API] Invalid API key or access token (unrecognized login or wrong password)


Actually I have another store "B" and its token works well with the same API and the same scope.

What is the problem of the token for store A? How can I remove this error and get the order count of the store?

Reply 1 (1)
Shopify Staff
Shopify Staff
246 57 62

Hi there 👋

That error means that the access token for store A is not correct. 

Some things you may want to verify to help you debug

  • Is your app currently installed on Store A? 
  • Is the access token an online or offline access token?
  • Are there any copy paste errors with your access token when creating your curl request?

To learn more visit the Shopify Help Center or the Community Blog.