Instagram

About Me

Photo Profile
Meetanshi Architecture Designer

Meetanshi is found based on providing the best Magento Extensions and Customized eCommerce Business Solutions perfected to the users’ needs. Our Happy users make us Happy. Complete satisfaction to our clients is what drives and motivates us to work hard. Read More

Wednesday, July 20, 2022

How to Get Value of Custom Attribute on Magento 2 Rest API

Magento 2 REST API is the most ideal way of fostering the cross-stage application to speak with your Magento 2 stores. While fostering an application, you would expect to get worth of custom characteristic on Magento 2 REST API and utilize this further in the application. Today, I have thought of the total manual for to Get Value of Custom Attribute on Magento 2 Rest API.

Moves toward Get Value of Custom Attribute on Magento 2 Rest API:


  1. Make/Add another section in the 'sales_order' table and set incentive for the current request.

  2. Make another document at app\code\Vendor\Module\etc\extension_attributes.xml and put the beneath code

  3. Make event.xml at app\code\Vendor\Module\etc\events.xml

  4. Make OrderLoadAfter.php at app\code\Vendor\Module\Observer\Sales\OrderLoadAfter.php

  5. Clear the store.


For more Info visit: https://meetanshi.com/blog/get-value-of-custom-attribute-on-magento-2-rest-api/

No comments:
Write comments


Get more of our update !