Product List cursor pagination failure

RandySK
New Member
5 0 0

I have been able to get the link for the next page of results from the HTTP header, but when I submit that, I get the error:

{"errors":"[API] Invalid API key or access token (unrecognized login or wrong password)"}

I have tried both including and omitting the header for X-Shopify-Access-Token and I get the same results.  What needs to be done to get the next page of results?

0 Likes
Kevin_A
Shopify Staff
Shopify Staff
293 36 47

Hey @RandySK 

Can you provide us the x-request-id from the response headers? 

Kevin_A | Developer Support @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit Shopify.dev or the Shopify Web Design and Development Blog

0 Likes
RandySK
New Member
5 0 0

We finally figured out that the pagination information is in the HTTP headers.  This is very odd and is different from all other APIs we have used.  They all return the pagination information in the JSON data retuned by the command.  It is much more difficult to retrieve the HTTP headers from a cURL command and it's more difficult to parse data from two sources instead of one.

The documentation was not clear on where you get the pagination data from.

0 Likes