API Forum

This forum is in read-only mode.
Please refer to our API support in case you have any questions.
We can be reached at api@e-conomic.com
e-conomic API developer forum

How do I find all unpaid invoices for a given debtor?

I am trying to figure out how to get all unpaid invoices for a given debtor through the API, but with no luck so far.

Do anyone have a suggestion?

Thanks, in advance :)



I just stumbled upon the Debtor_GetInvoices call, which I can use to get all the invoices. Is there a way to filter these invoices to only get the unpaid ones?



I ended up first doing a Debtor_GetOpenEntries and getting the data for each entry with DebtorEntry_GetData, which allowed me to filter on "Type = DebtorInvoice".
created Sep 3, 2014 by patrickaltapay
100% Accept Rate

edited Sep 4, 2014 by patrickaltapay
Q 1 A 0 C 0

1 Answer

Best answer

Debtor_GetOpenEntries will get you all entries (invoices, credit notes, payments and refunds) that aren't fully matched against other entries.

Alternatively, after retrieving the invoices, you can filter by their Remainder (= Unmatched amount).


answered Sep 3, 2014 by Christian Estrup
selected Sep 4, 2014 by patrickaltapay
Visma e-conomic A/S