API Product stop working when status=any

Solved
Highlighted
New Member
1 0 0

We use the https://github.com/singer-io/tap-shopify to download products for a couple of months, but we noted since 2020-07-28 it stopped retrieving data from shopify.

After a deep investigation, I could find out that Shopify REST API is not retrieving any data when the query string has the following parameter status=any in the url:

https://xxxxx.myshopify.com/admin/api/2019-10/products.json?since_id=1&status=any

removing the status or changing its value to blank works fine status= 

It used to work fine before, I did not see any release notes on this change.

What should we do, shopify changes to behave as it was before, or we should change the open source tool to handle this now?

I tested with the other endpoints as orders - locations - customers  are working fine with this status=any

 

 

 

0 Likes
Highlighted
Excursionist
26 4 3

This is an accepted solution.

Hello,

If you see the documentation in shopify about product. there is no object called "STATUS" in product JSON. so its useless to write status in query for getting products. status you can use in orders etc..

so please cut the status from your query. if you want to filter your query then please write exactly what kind of response you want. then i can help you.

you can filter your product response something lie this:

title

Filter results by product title.

vendor

Filter results by product vendor.

handle

Filter results by product handle.

product_type

Filter results by product type.

collection_id

Filter results by product collection ID.

 

and there is some more which you can find at

https://shopify.dev/docs/admin-api/rest/reference/products

Thanks

 

0 Likes