cancel
Showing results for 
Search instead for 
Did you mean: 

REST API products list and out of stock

REST API products list and out of stock

In the api call V1/products i get also out of stock products, even though I've set in Stores->configuration->catalog->inventory "Display out of stock products" to No.

there's a way to get rid of this annoing missing feature?

7 REPLIES 7

Re: REST API products list and out of stock

@dandreoli have you did reindex?


Problem solved? Click Kudos & Accept as Solution!
Sunil Patel
Magento 2 Certified Professional Developer & Frontend Developer

Re: REST API products list and out of stock

of course, I find out also this attribute "quantity_and_stock_status" but it's not associated with all products but only few of them

Re: REST API products list and out of stock

@dandreoli have you migrate data from magento 1 to magento2?


@dandreoli wrote:

of course, I find out also this attribute "quantity_and_stock_status" but it's not associated with all products but only few of them


 


Problem solved? Click Kudos & Accept as Solution!
Sunil Patel
Magento 2 Certified Professional Developer & Frontend Developer

Re: REST API products list and out of stock

Yes, I've migrated data, why? There is some steps i need to follow?


@Sunil Patel wrote:

@dandreoli have you migrate data from magento 1 to magento2?


@dandreoli wrote:

of course, I find out also this attribute "quantity_and_stock_status" but it's not associated with all products but only few of them


 


 

Re: REST API products list and out of stock

@dandreoli

Can you please create new product from admin and make that product to out of stock, is that showing for you?


Problem solved? Click Kudos & Accept as Solution!
Sunil Patel
Magento 2 Certified Professional Developer & Frontend Developer

Re: REST API products list and out of stock

No way, I've just tryied, but no rows on attribute added

Re: REST API products list and out of stock

I've the same issue on 2.3 commerce edition.

If Display Out of Stock Products is set to no, via api rest you can't get the product.

Absurd...