cancel
Showing results for 
Search instead for 
Did you mean: 

Fetch stock status via /products API call

SOLVED

Re: Fetch stock status via /products API call

Hi @Ankit Jasani,

 

I tried the curl you have added as well by adding the host_url & token. But this won't work for me. but If I try the REST API I would be able to fetch products. Are there anything to check in the magento2 instance?

Re: Fetch stock status via /products API call

Hi @Ankit Jasani,

 

My magento version is 2.4.7 and it shows elastic search version 7 is deprecated as in the below screenshot. Can this be the issue here? But when I try to fetch data from a sample store whose magento version is 2.4.4 elastic search version 7 is not deprecated and connection is also success. but I couldn't able to fecth data from graphql API there as well from the same curl. Could you please help me to resolve this?

 

Screenshot from 2025-06-13 10-18-20.png

Re: Fetch stock status via /products API call

Can I get this done from the REST API to fetch the product details along with the stock data? In which magento version is this is working?