Product API docs incorrect

ClementBR
Shopify Partner
110 2 18

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?

0 Likes
CalD
Shopify Staff
Shopify Staff
91 8 12

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

0 Likes