2

We have created a product with a custom option (free text field). The customer enters data, now this data should be exported via enter image description here curl -X GET --header "Accept: application/xml" --header "Authorization: Bearer $B" "https://shop.example.com/rest/english/V1/orders/105"

But I cannot find the data of the custom option in the REST result.

Is that normal?

Is it a bug?

  • You need to call custom Order API and make code in Customer Interface. – Aditya Shah Sep 24 '18 at 8:25
  • Do you mean Customer Interface or Custom Interface? I wish this would be in the standard API ... Created an issue over at GitHub - somehow it feels like a bug but it might be more a obvious missing feature github.com/magento/magento2/issues/18227 – Alex Sep 24 '18 at 18:40
0

I solve it by creating an Extensionattribute and copy logic over from the core giftmessage attribute which also adds extension attributes to orderItems.

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.