Invalid API key or access token

Solved
Tourist
8 1 0

I'm using Postman to test needed updates to API version 2019-07.  

 

I have a request for orders.json using API version 2019-07 that is returning orders as expected.

 

The call to get a list of products.json and it gives me "401 Unauthorized" status and the error

{

"errors": "[API] Invalid API key or access token (unrecognized login or wrong password)"
}
 
I have the same authorization on both calls.
 
If I change the orders.json Postman call to the products.json call I get the same error.
 
The last X-Request-ID is 447925f5-7d2d-4045-995e-182ceaf14c93
 
Any ideas on what to look for?
 
Thanks
0 Likes
Highlighted
Shopify Partner
135 2 12
Edit:
Hi,
There is possibility of only access for read_orders, please double check for read_products also
0 Likes
Tourist
8 1 0

Why would a write order block effect a request for the product list?

0 Likes

Success.

Tourist
8 1 0

You were correct about the access to read_products.  I dug into our integration and found that the client I was using to test was not set up for us to synch products.  When I changed to a client that we were synching products I got the list.

 

Now I pull the "Link" from the header to get the next set of products and send it through postman and I get:

 

{
"errors": {
"page_info": "Invalid value."
}
}
 
Is there a time span where the page_info is valid?

 

 

0 Likes