I'd like to use the API to query the remaining unpaid balance on sales invoices. Whether I can get the unpaid balance directly or have to calculate it myself by summing up payments made on the invoice doesn't matter, as long as I can get there somehow.
The API provides a "customerPayments" endpoint, but even after applying payments to multiple sales invoices, querying that endpoint still just gives me an empty data set.
Any tips for achieving this would be greatly appreciated!