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
Solved! Go to the solution
This is an accepted solution.
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:
It works with HttpClient but it's a bit "special", so in case someone needs this in the future, here is the solution https://shopify.dev/tutorials/authenticate-a-private-app-with-shopify-admin#:~:text=Basic%20authenti....
Join the API key and password with a single colon (:).
Encode the resulting string in base64 representation.
Prepend the base64-encoded string with Basic and a space and add this as header: Authorization: Basic NDQ3OGViN2FjMTM4YTEzNjg1MmJhYmQ4NjE5NTZjMTk6M2U1YTZlZGVjNzFlYWIwMzk0MjJjNjQ0NGQwMjY1OWQ=