I am currently working on implementing the Business Central API for a customer. For most of my calls, I'm utilizing API V2, and there's one specific webservice I'm utilizing, namely Cust_LedgerEntries.
One of the requirements is to retrieve sales invoices using the /salesinvoice endpoint.
However, I'm encountering a challenge regarding the retrieval of the actual payment date for a paid invoice.
My initial approach was to retrieve payment entries from the Customer Ledger Entry webservice since they contain the date I need. However, I've noticed that these entries do not include any information about the invoice to which they are applied.
Could you please advise if there is a solution available using the API or another existing webservice to obtain this data?
Thank you.

Report
All responses (
Answers (