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:
-
Make/Add another section in the 'sales_order' table and set incentive for the current request.
-
Make another document at app\code\Vendor\Module\etc\extension_attributes.xml and put the beneath code
-
Make event.xml at app\code\Vendor\Module\etc\events.xml
-
Make OrderLoadAfter.php at app\code\Vendor\Module\Observer\Sales\OrderLoadAfter.php
-
Clear the store.
For more Info visit: https://meetanshi.com/blog/get-value-of-custom-attribute-on-magento-2-rest-api/
|