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?

asked Sep 24, 2018 at 7:06
2
  • You need to call custom Order API and make code in Customer Interface. Commented Sep 24, 2018 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 Commented Sep 24, 2018 at 18:40

1 Answer 1

0

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

answered Sep 25, 2018 at 10:16
3
  • can u share your module code here? Commented Jul 2, 2020 at 5:07
  • No, sorry it's not open soure Commented Jul 2, 2020 at 5:09
  • can u guide me magento.stackexchange.com/questions/316366 Commented Jul 2, 2020 at 5:42

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.