Order comment in API xml

Hi
We are building a site and are using your One Step Checkout.
The site will be integration to a finance system through the Magento REST API but it seems that the field for “Order comments” isn’t included and in fact, doesn’t appear as part of the standard Magento data set/xml
Can you advice on how to ensure the order comment data becomes available with the rest of the order data?
Kind regards
 

3 answers

Profile photo of Mall Staff 105260.00 $tone January 8, 2019
Public

Hi Kasper Brandt Hansen,

the field for “Order comments” isn’t included and in fact, doesn’t appear as part of the standard Magento data set/xml
Can you advice on how to ensure the order comment data becomes available with the rest of the order data?

The sales order comment is a custom field added by our module. Thus, this info is stored only via the checkout under the checkout page of our extension only. Displaying this custom info is also available in specific contexts only: Order view in backend (admin) and frontend (customer)
If you want to view this custom info in a different context, please let me know further details. I will check and get back to you then.

Regards,
Mall.

#1
Profile photo of Kasper Brandt Hansen 280.00 $tone January 8, 2019
Public

Hi -- thanks for getting back.
We are getting order data to the external system via the REST API -- this call: /rest/V1/orders/{orderno}
And this is where we would like to be able to see the content of the order comment.
 
I guess a custom module could be made to add the data, but I hope you have another solution 

/Kasper

#2
Profile photo of Mall Staff 105260.00 $tone January 8, 2019
Public

Hi Kasper,
Thanks for your additional clarification. 

I guess a custom module could be made to add the data, but I hope you have another solution 

Since this is a custom attribute, in order to add that attribute into the sales order data in responding to the sales order Rest API, you need to implement it via the custom code of a custom module. 
As explained in my first reply, our extension does not support this specific requirement yet.
PS. In case you need our help on this, you can consider using our paid custom service for this task. 

Regards,
Mall.

#3

Please login or Register to Submit Answer

Written By

Comments