Hi sir,
How can i do bulk price and quantity update with with rest api.
I had tried this API for price update-
"http://localhost/magento2.1/rest/V1/products/{{sku}};
this provide single price update .
API for Quantity update-
"http://localhost/magento2.1/rest/V1/products/"+{{sku}}+"/stockItems/1"
this provide single Quantity update.
Please provide API for bulk PRICE and QUANTITY update and also procedure to update in bulk.
Thanks
Ashish Kumar
okay - i understand your problem.
Currently Magento 2 doesn't have native any rest api to do bulk update price and inventory
As you share the link for single price update and single quantity update -
http://localhost/magento2.1/rest/V1/products/{{sku}};
http://localhost/magento2.1/rest/V1/products/"+{{sku}}+"/stockItems/1
So you need to utilize/extend this api and need to create your own Custom api to achieved the required functionality(Bulk price and inventory update).
But natively in magento 2 there is no rest API to do bulk update as of now.
Hope it helps !
Hello sir,
How to utlize/extend this api and create own Custom api to Bulk price and inventory update.
Please,provide us the procedure or api link to create own Custom api.
Below i am sharing links - how to create a custom API in magento 2 ! you can take a reference from the same.
http://inchoo.net/magento-2/magento-2-custom-api/
https://www.thirdandgrove.com/creating-custom-rest-api-magento2
Hope it helps !
Hello @Manthan Dave ,
are there updates on native rest api to do bulk update of quantity?
something like this:
/rest/async/bulk/V1/products/bySku/stockItems/byItemId
(https://devdocs.magento.com/guides/v2.3/rest/bulk-endpoints.html)
Thanks.