I want to update line item price in sale order, I m try following code but it gives me "com.clover.sdk.v1.ClientException: status code: 400 cannot update one or more of these fields" this kind of error also try v3 api with parameter in that response received but no changes are received
List<LineItem> lineItems = curOrder.getLineItems();
LineItem lineItem = lineItems.get(0);
lineItem.setId(lineItemId);
lineItem.setPrice(4000);
orderConnector.updateLineItems(orderID,lineItems);
orderConnector.updateOrder(curOrder);