Can I Get a Sales Invoice's Remaining Balance or Paid Amount via the API?

I work on an application that reads various pieces of information from clients’ Dynamics 365 Business Central tenant via the API. I’d like to be able to do something that I feel should be incredibly simple, but I just cannot find any obvious way to do it – I’d like to get the remaining balance on a sales invoice (or, alternatively, the total paid amount on the invoice).

None of the fields exposed by the /salesInvoices endpoint seem to correspond to either a remaining balance or a paid amount.

I’ve been able to FIND the individual payments themselves via the /generalLedgerEntries endpoint, but there’s no information there to tie them back to parent invoices, so I can’t even take that route.

Any tips on how to achieve this would be highly appreciated!

Thanks,
Dave

1 Like

look at customer ledger entries, remaining amount is there.