Have your say in Community Polls: What was/is your greatest motivation to start your own business?

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

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

nemmy
Shopify Partner
6 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 "https://storeA.myshopify.com/admin/api/2023-07/orders/count.json?status=any" -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?

Replies 0 (0)