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

CurrentInvoiceData - Get the Invoice Number


I've might have missed something, however i can't seem to get the number of a newly created invoice.  

I'm doing integration on a system, i'd like to be able to display the Invoicenumber to enable users to search the invoice.

The CurrentInvoiceData object has an ID field, however this is not equivalent to the invoicenumber.  Please thoughs on this is highly appreciated.
created Dec 12, 2014 by DennisUnicanet
0% Accept Rate
Q 1 A 0 C 0

1 Answer


Hi Dennis,

The invoice does not get a valid Invoice number until it is booked using the CurrentInvoice_Book method which returns the Invoice object. This object has the InvoiceHandle property which I believe is the number you are looking for.

If you need to find the invoice before it is booked, use the InvoiceHandle property from the CurrentInvoice, it will most likely allow you to find the not-yet-booked invoice, but it will not be a valid invoice number you can use later on after it has been booked.

# Bo

answered Dec 16, 2014 by bro_delacourfs
Visma e-conomic A/S