[BROKEN API] Shopify Collection Listing API is not respecting page url parameter

New Member
5 0 0

I'm calling the endpoint: GET /admin/api/2019-04/product_listings/product_ids.json

Documentation: https://help.shopify.com/en/api/reference/sales-channels/collectionlisting#product_ids

 

and I'm seeing the same results for the following input 

 

https://<shopify_account>.myshopify.com/admin/api/2019-04/collection_listings/<listing_id>/product_ids.json?page=1

https://<shopify_account>.myshopify.com/admin/api/2019-04/collection_listings/<listing_id>/product_ids.json?page=5

 

When calling with a larger limit, I was able to fetch all productIds in a single page. But, for any collection listings with >1000 products, this API is broken.

 

 

0 Likes
New Member
5 0 0

We have found a workaround using an undocumented param 'last_id', but are still looking for at least confirmation from Shopify's side regarding the undocumented API breakage.

0 Likes
Highlighted
Community Manager
Community Manager
579 35 67

Hi @pcuralate,

 

Can you share a sample request id (found in the X-Request-ID response header) for one of the calls that did not behave the way you expected? I'd like to dig into our logs to see what's happening. 

 

Thanks!

0 Likes
New Member
5 0 0

@Busfox Thank you for your response.

 

Here are a few request ids where I modified the request page parameter and the response is the same:

06d49d01-1a7f-4368-8192-1bd168c9c92e

38e07ff1-553f-483e-8b80-3987d1a24990

f21a8a98-9348-4cd0-997e-86e98b75cd12

0 Likes
Community Manager
Community Manager
579 35 67

Thanks @pcuralate,

 

I see what you mean! I've brought this up as an issue with our engineers, and they are shipping a fix. Hold tight!

0 Likes
New Member
5 0 0

Thanks @Busfox !

0 Likes
Community Manager
Community Manager
579 35 67

@pcuralate should be fixed now

0 Likes
New Member
5 0 0

I've confirmed that it is fixed!

 

Thanks again @Busfox and the Shopify devs!

0 Likes