We have successfully called this api for payments for the entirety of the order, but when we create an order payment record for each line items we getting unauthorized error.
here's the sample line item object array.
JSONObject lineItemPayment = new JSONObject(); lineItemPayment.put("id", lineItem.getId()); lineItemPayment.put("percentage", 100); lineItemPayments.put(lineItemPayment);
lineItemPayments is a JSONArray, thats added to the request body with the key "lineItemPayments" as per:
https://docs.clover.com/reference/orders-1#ordercreatepaymentfororder-2
anybody can point me in the correct or at least the minimum required properties to pass for each line item object?
Cheers