How to create access token for Magento 2 Rest api programmatically?

For Access Magento 2 REST API, you need to first generate an access token. Access token used for synchronization with Magento to another third-party platform.

Without Access token, you can’t communicate with Magento 2. For Create access token you need to call POST action with Request payload. Your request URL will be rest/V1/integration/admin/token append to your site URL.

Continue reading “How to create access token for Magento 2 Rest api programmatically?”

Create a Custom REST API for Bulk product update in Magento 2.

Native Magento comes with a lot of REST API for different Entity like Product, Order, Customer and others API.

I want to give a demo for update bulk product using rest api in Magento 2. By Default Native Magento doesn’t provide Bulk Product Update API. You need to call REST API for each item using the foreach loop. At a time you can update an only single product. Continue reading “Create a Custom REST API for Bulk product update in Magento 2.”