Hi, I am desperately trying to change the price of a LineItem using the Android SDK but I am always getting a ClientException. For this example a customer is buying one item.
List<LineItem> lineItems = mOrder.getLineItems(); // return a List with 1 LineItem LineItem lineItem = lineItems.get(0); // get the first LineItem lineItem.setUnitQty(3); // update quantity List<LineItem> lineItemsAsList = Collections.singletonList(lineItem); // turn the LineItem into a List of LineItems mOrderConnector.updateLineItems(mOrder.getId(), lineItemsAsList);
No matter what change I make to the LineItem will cause the ClientException. Even making no change to the LineItem causes the exception.
Does anyone have any ideas what could be wrong with the above code?
Thank you, Steve