cancel
Showing results for 
Search instead for 
Did you mean: 

Sales order address custom attribute value in Order Rest Api

Sales order address custom attribute value in Order Rest Api

I have added door number custom attribute to sales order address table. But I'm not able to get the vale in Order REST API.

Please help me on this

3 REPLIES 3

Re: Sales order address custom attribute value in Order Rest Api

Hi @poornima_axio ,

 

For adding the custom attribute in the order Api. You need to create extension attributes and then set that custom attribute value in that.

Please refer below link:

https://www.atwix.com/magento-2/adding-custom-attribute-to-api-response-in-magento-2/

Hope it helps you.

Problem solved! Click kudos & Accept as Solution.

 

Re: Sales order address custom attribute value in Order Rest Api

Hi thanks for your reply. Yes it works for the column from sales orde table. But I want to get the value of sales order address table in order rest API.
 

Re: Sales order address custom attribute value in Order Rest Api

Hi @poornima_axio 

Kindly refer below link to add custom attribute with rest api:

https://www.mageplaza.com/devdocs/how-get-value-custom-attribute-rest-api-magento-2.html

If issue resolve, please click on 'Kudos' & Accept as Solution!

Problem solved? Click Accept as Solution!