Hi, I'm having a problem removing a discount that I previously applied to an order. When I call OrderConnector.deleteDiscounts() I always get a ClientException. For testing purposes I'm currently trying to apply a discount and remove it straight away. Can anyone see a problem with this code:
Discount discount = new Discount();
discount.setPercentage(5L);
discount.setName("5% Discount");
discount.setId("123");
mOrderConnector.addDiscount(orderId, discount);
List<string> discounts = new ArrayList<>();
discounts.add("123");
mOrderConnector.deleteDiscounts(orderId, discounts);
Thanks, Steve