I want to get Custom Attribute value which is already saved in database table, i just want to append it to my Sales order REST APi, i have tried adding extension attribute , i am able to get set and get functions in generation file , how do i show my custom attribute in my REST Api

  • you need to make custom api for the same – Aditya Shah Oct 10 '18 at 13:58
  • @AdityaShah i am using My custom API – Banvari Lal Oct 11 '18 at 5:29
  • inject the custom attribute intoxml, and add an observe for event ``sales_order_load_after – Aditya Shah Oct 11 '18 at 5:34
  • I have tried it, it didnt work for me – Banvari Lal Oct 11 '18 at 5:59
  • Please post your code here, so we can help. – Aditya Shah Oct 11 '18 at 6:03

Go through below link, this is the correct way to add a custom attribute in Rest API


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.