Paid status of invoices

I couldn’t find a way to determine if an invoice had been paid. Is
this feature available?

OK, that gives me something to go on.

Cheers.

I couldn’t find a way to determine if an invoice had been paid. Is
this feature available?

Yes it is! Xpath: //invoices/invoice/status (One of: Draft, Sent,
Paid)

See below:

..... Sent .....

Following on from this, does anyone know how to determine if an invoice is
overdue?

There’s a “dated-on” date/time, but there doesn’t appear to be anything for
“due on” (or similar).

Thanks,
Richard.2008/12/4 Mike Wilson mike.wilson@evolvedsoftwarestudios.com

On Dec 4, 9:01 pm, Peter Bowen PRBo...@gmail.com wrote:

I couldn’t find a way to determine if an invoice had been paid. Is
this feature available?

Yes it is! Xpath: //invoices/invoice/status (One of: Draft, Sent,
Paid)

See below:

..... Sent ..... >

Hi guys

Unfortunately, this isn’t actually the case.

Only Draft or Sent will ever be returned for invoice state, even if
the invoice has been paid. The reason for this is that FreeAgent
determines Paid status from the existence of bank account entries
which are classified as invoice receipts. If an invoice has one or
more bank account entries which total up to the invoice amount, it is
considered paid.

The API right now is returning exactly what we store in our database
which isn’t what you guys need – what we need to do here is return
the ‘display status’ of the invoice, which would give you one of:

Zero Value
Open
Overdue
Draft
Written-off
Part written-off
Paid
Refunded

Similarly, we can also give you the actual due date based on the
overriden payment terms or the owning projects terms.

I’ll add a ticket for this and I’d love to say we’ll have it complete
before Christmas but (as Mike unfortunately knows only too well)
realistically it may take a while longer before we can implement the
changes.

OllyOn Dec 4, 9:04 pm, Mike Wilson mike.wil...@evolvedsoftwarestudios.com wrote:

On Dec 4, 9:01 pm, Peter Bowen PRBo...@gmail.com wrote:

I couldn’t find a way to determine if an invoice had been paid. Is
this feature available?

Yes it is! Xpath: //invoices/invoice/status (One of: Draft, Sent,
Paid)

See below:

..... Sent .....

Indeed, it appears I’m wrong on this point, apologies.

Thanks Olly for adding this.

I’ve had to put my attachment work on hold somewhat as I’m setting up
a new business and need to integrate the basics with FreeAgent (so
customers can retrieve invoices, etc). The facility to determine paid
invoices (and query them so I can display to a customer a list of
their paid invoices) would be totally brilliant.

Best,

Mike

There’s a “dated-on” date/time, but there doesn’t appear to be anything for
“due on” (or similar).

Yup and Nope.

Xpath: //invoices/invoice/payment-terms

....

That will give you the number of days in which the invoice is due. If
you specify custom payment terms, then to my knowledge there is >NO
WAY< to know when the invoice is due. Personally, I’d have liked a due-
date field, but you can work with this in any case.

I hope this helps?