FROM CACHE - en_header

Product API docs incorrect

ClementBR
Shopify Partner
128 2 34

The docs at https://shopify.dev/docs/admin-api/rest/reference/products/product?api%5Bversion%5D=2021-01#index-20... claim that the default value for 'status' is 'active'.

However in practice it seems to be 'any'.

For example, have a look at X-Request-Id: e9798f25-5f3a-4216-96c8-efee60784d46 which is a simple GET /admin/api/2020-10/products.json?limit=250 and notice that the results contain products with a status of "archived".

Can you please fix the documentation?

I'm not sure if this issue affects other API versions?

Reply 1 (1)
CalD
Shopify Staff
Shopify Staff
140 21 33

Hey @ClementBR,

Can you clarify? Looking at the docs at that URL, the default status specified is "any" (which will return archived orders etc).

Screen Shot 2021-02-19 at 6.12.56 PM.png

CalD | 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