Return expenses by project

Hello,

I am trying to use the API to generate reports about projects. To begin
with it will just include expenses and invoices.

I know that I can select invoices per project, but is it possible to do the
same with expenses?

When I run an expenses query I see that there is a field in the response
called ‘project’ so the information is definitely there. I then thought I
might be able to run a query similar to the following:

https://api.freeagent.com/v2/expenses?project=<PROJECT_URL>

But I still get all the expenses from the system. Is there anyway that the
API can do this or am I going to have to pull all the expenses back and
filter them in my application? I am hoping that I do not have to do the
latter as that seems horribly inefficient.

Thanks, Russell

Hi Russell,

I’ve checked in our API code and I’m afraid that our /expenses end-point
doesn’t currently support filtering by project.

That said, we’re compiling a list of feature requests for the API and I’ve
added a card for this issue:

Could you please add your vote to this card to record your interest and my
apologies that, for now, I can’t fully resolve your query.

Kind regards,
Dave JOn 22 May 2015 at 10:16, Russell Seymour < russell.seymour@turtlesystems.co.uk> wrote:

Hello,

I am trying to use the API to generate reports about projects. To begin
with it will just include expenses and invoices.

I know that I can select invoices per project, but is it possible to do
the same with expenses?

When I run an expenses query I see that there is a field in the response
called ‘project’ so the information is definitely there. I then thought I
might be able to run a query similar to the following:

https://api.freeagent.com/v2/expenses?project=<PROJECT_URL>

But I still get all the expenses from the system. Is there anyway that
the API can do this or am I going to have to pull all the expenses back
and filter them in my application? I am hoping that I do not have to do
the latter as that seems horribly inefficient.

Thanks, Russell


You received this message because you are subscribed to the Google Groups
“FreeAgent API” group.
To unsubscribe from this group and stop receiving emails from it, send an
email to freeagent_api+unsubscribe@googlegroups.com.
To post to this group, send email to freeagent_api@googlegroups.com.
Visit this group at http://groups.google.com/group/freeagent_api.
For more options, visit https://groups.google.com/d/optout.

David Jones
Senior Support Engineer

FreeAgent