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:
Why would a write order block effect a request for the product list?
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:
Can anyone tell me why I keep getting this same error message when I try and sync our products for the first time in Word Press?
Thank you!
I found that using the HttpClient (C#) was causing the problem. When I switched to using RestSharp I was able to retrieve all pages using the links. RestSharp must be doing something in the background that I was not able to track down when configuring the HttpClient.
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=
User | RANK |
---|---|
7 | |
5 | |
4 | |
4 | |
3 |