Sorting or ordering the API results?

We have lots of users that are running into the situation where new
invoices are deep in the pagination results and we don’t notice them. I’d
be curious if you guys would be willing to add a ORDER BY created_at DESC
clause to your SQL queries when ?order=-created_at is in the query
string? (Doesn’t need to be a “created_at” field, could be an
auto-increment “id” as well!)

Thanks guys!

-bryan, co-founder @ zapier.com

Hi Bryan,

We have now added support for ordering contacts and invoices by the
created_at and updated_at dates. You can do this using the “sort”
parameter, prefixing the field name with a hyphen for descending order:

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

You can find details in the API documentation:
https://dev.freeagent.com/docs/invoices

Thanks,

DavidOn Tuesday, 18 February 2014 00:39:35 UTC, Bryan Helmig wrote:

We have lots of users that are running into the situation where new
invoices are deep in the pagination results and we don’t notice them. I’d
be curious if you guys would be willing to add a ORDER BY created_at DESC
clause to your SQL queries when ?order=-created_at is in the query
string? (Doesn’t need to be a “created_at” field, could be an
auto-increment “id” as well!)

Thanks guys!

-bryan, co-founder @ zapier.com