Products published only on the post of sale are not fetched using the REST API call

I am fetching the products using the REST API to get products. The filters I am sending for the request are:

  • status = active

  • published_status = any

Based on the filters I should get all the active products whether they are published on the online channel or point of sale. But I am specifically not getting the products which are published only on the point of sale.

What is the correct way to fetch all the products irrespective of the channels they are published on.

Thanks.

Hi @kushgoyal !

In this context the term “published” is reserved for the Online Store only, so including the published_status filter will exclude POS-only products. You can confirm this by fetching a single product that is POS-only and looking at the published_at field in the response; it will come back as null.

Hi Mike,

Thanks for the reply. What is the correct way to fetch all products including null status? I am sending published status as any.

Simply using the products.json endpoint without filters or, in your case, without the published_status filter will fetch all products.