cancel
Showing results for 
Search instead for 
Did you mean: 

How to do Bulk PRICE and QUANTITY update with REST API

How to do Bulk PRICE and QUANTITY update with REST API

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

3 REPLIES

Re: How to do Bulk PRICE and QUANTITY update with REST API

Hi @ashish_kumar6

 

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 !

if issue solved,Click Kudos & Accept as Solution

Re: How to do Bulk PRICE and QUANTITY update with REST API

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.

 

Re: How to do Bulk PRICE and QUANTITY update with REST API

Hi @ashish_kumar6

 

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 !

if issue solved,Click Kudos & Accept as Solution