0

I have a problem with extraction of customer orders.

When I do the following

    var orderModule = new OrderModuleApi(apiClient);
    var orders = orderModule.OrderModuleSearch("full", null, null, null, null, null, null, null, null);

I expect that each order returned has lineItems and addresses. but there is none. Am I doing something wrong here? All orders that are returned contains the correct TotalSum and such - it is only the LineItems and Addresses that are missing even though the order has both LineItems and addresses.

Actually no matter what I write as criteriaResponseGroup, full/withItems or even somethingRandom then I get the same number of orders back - which I guess must be wrong behaviour? Unless I am using the api wrong.

Kara
  • 6,115
  • 16
  • 50
  • 57
Diemauerdk
  • 5,238
  • 9
  • 40
  • 56

2 Answers2

0

Try to pass "Full" as responseGroup value.

tatarincev
  • 364
  • 3
  • 5
0

The Search method in the OrderModuleController had a model binder which was added for the old storefront version. It should be replaced with [FromUri]:

public IHttpActionResult Search([FromUri]coreModel.SearchCriteria criteria)

Please pull the latest version from the dev-storefront branch and try again.

Dartal
  • 432
  • 2
  • 5