SaaS CMS has officially launched! Learn more now.

EPiServer.ServiceApi.Commerce 5.4.4 GetOrder endpoint does not return line item meta fields (properties)


Hi. We are using ServiceApi to get order details through a http request (episerverapi/commerce/orders/orderGroupId). We added some meta fields on LineItem but they are not present in the response. We decompiled the endpoint and found that Properties property is present on the LineItem model but is not populated in ConvertToLineItemModel method (OrderGroupModelConverter class) (it is populated on OrderGroup, OrderForm, Payment, Shipment). 

Is this known issue and will be included in next releases? What are your suggestions to workaround this issue?

Jun 24, 2020 13:31

Thank you for bringing this into our attention. I will file a bug for Commerce (which they might turn in to a story), but it might take a while for them to do this.

Jun 24, 2020 14:20

There is one line of code to add: Properties = lineItem.ConvertToPropertiesModel() nothing more and it is more related to EPiServer.ServiceApi.Commerce nugget then Commerce itself. Do you have any suggestion how to workaround this issue?

Jun 24, 2020 15:10

I see. Looks like a quick fix - unfortunately it is not possible to easily do that on your side, but I will push for a fix soon.

Jun 24, 2020 18:34

Hello, Ion

Could you check again? I have tried reproduce on Service API 5.4.4 and checked code. 

GetOrder endpoint returns LineItem's metafields properly.

Jun 25, 2020 8:34

Hi, cuvu

I tried again but I still don't get the metafields. I also tried to uninstall and then install again EpiServer.ServiceApi and EpiServer.ServiceApi.Commerce nugget packages (v 5.4.4) and nothing changed.

Installed version:

Db LineItems:




Edited, Jun 25, 2020 9:28

Hi, Ion

I'm sorry. You are right.

Yep, this is a bug and we have already fixed that and I have checked in the lastest branch.

It will be resoved in the next release of Service API.


Jun 25, 2020 10:39

Got it, cuvu.

Do you have any idea when the next version will be released?



Jun 25, 2020 10:44

I think next week, because in the next release it contains only this bug :D

Jun 25, 2020 10:50

It will be great. 

Thank you.

Have a nice day,


Jun 25, 2020 10:57

Hi, Ion

Service API 5.4.5 has been released :)

Jul 02, 2020 7:08

Hi, cuvu

Thank you for the update, we already upgraded the packages yesterday and tested them. It works as expected now.

Thank you for the quick response and fix.

Have a nice day.

Jul 02, 2020 7:20
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.