cancel
Showing results for 
Search instead for 
Did you mean: 

REST API CatalogInventory Bulk

REST API CatalogInventory Bulk

Hello,

 

I tried to do a PUT request to update the stock qty and it worked correctly:

/rest/V1/products/productSku/stockItems/1
 
If instead I try to make the same request according to Bulk specifications, I have an error "Request does not match any route":
/rest/async/bulk/V1/products/bySku/stockItems/1
 
The documentation only indicates that GET and DELETE requests are not supported.
 
Is it possible to perform a Bulk update of the quantities with the REST API?
Thanks.
 
7 REPLIES 7

Re: REST API CatalogInventory Bulk

Hello @beniamino_carriero 

This error generally shows if URL is wrong.

 

Are you adding https?

Do you need to add store scope?

 

POST /<store_code>/async/bulk/V1/products
PUT /<store_code>/async/bulk/V1/products/:sku

async/bulk/V1/products/bySku/media/byEntryI
Was my answer helpful? You can accept it as a solution.
175+ Professional Extensions for M1 & M2
Need a developer?Just visit Contact Us Now

Re: REST API CatalogInventory Bulk

Hello @theMageComp ,

 

thanks, but other bulk requests work (ie. media) and the single call to the StockItems method also works.
I found this thread:

https://community.magento.com/t5/Magento-2-x-Admin-Configuration/How-to-do-Bulk-PRICE-and-QUANTITY-u...

"natively in magento 2 there is no rest API to do bulk update as of now"

Is it still true?

Re: REST API CatalogInventory Bulk

@beniamino_carriero can you please check this link and checks your url and replace 1 by any id.

https://devdocs.magento.com/guides/v2.3/rest/bulk-endpoints.html

 

Thanks

Re: REST API CatalogInventory Bulk

@beniamino_carriero can you please check this link and checks your url and replace 1 by any id.

https://devdocs.magento.com/guides/v2.3/rest/bulk-endpoints.html 

 

Thanks

Re: REST API CatalogInventory Bulk

Hello @rahul Gupta,

 

we get the same error by invoking the following URL:

/rest/async/bulk/V1/products/bySku/stockItems/byItemId

 

Thanks

Re: REST API CatalogInventory Bulk

Any update on this?

 

We also get this error, and have checked the URL and tried several variations of the URL. 

We can get a single stockitem, and do a bulk product update, but cant do a bulk stockitem update to update the stock levels.

 

 

Re: REST API CatalogInventory Bulk

Any news ?