Last_updated filter

Hi,

Is it possible to get an addition to the API to allow us to filter
endpoints, in particular timeslips and expenses, by their updated_at date?
We import this data on a regular basis but have no choice but to get
everything at once every time because we have no way of determining what
has changed.

This is becoming a problem as time goes on and more accounts are onboarded
for us as the data load is increasing for each entry that is added.
Filtering by updated_at would have a massive affect for us in reducing our
load and in turn the load on the FreeAgent API.

I’ve also commented on a card in Trello regarding retrieving all tasks at
once instead of by project. For the same reasons it would be really good to
get that pushed through.

Thanks,
Adam

Hi Adam,

Thank you for your message.

I’ve double checked in our codebase and it looks like ordering has been
implemented for 4 of our API end-points:

  • Contacts
  • Invoices
  • Timeslips
  • Expenses

Ordering of Timeslips and Expenses isn’t currently documented - I suspect
this was only recently added as part of our iOS app development.

Any of the above resources can be ordered by appending the “order”
parameter to your GET requests.

For example:

https://api.freeagent.com/v2/timeslips?sort=created_at

You can also reverse the ordering by appending a “-” before the attribute
you wish to order on:

https://api.freeagent.com/v2/timeslips?sort=-created_at

We currently support ordering on “created_at”, “updated_at” and “dated_on”.

I hope this helps!On 19 June 2015 at 15:26, Adam Barclay barclay.adam@gmail.com wrote:

Hi,

Is it possible to get an addition to the API to allow us to filter
endpoints, in particular timeslips and expenses, by their updated_at date?
We import this data on a regular basis but have no choice but to get
everything at once every time because we have no way of determining what
has changed.

This is becoming a problem as time goes on and more accounts are onboarded
for us as the data load is increasing for each entry that is added.
Filtering by updated_at would have a massive affect for us in reducing our
load and in turn the load on the FreeAgent API.

I’ve also commented on a card in Trello regarding retrieving all tasks at
once instead of by project. For the same reasons it would be really good to
get that pushed through.

Thanks,
Adam
http://www.timestamphq.com


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