Get all invoices

Hi,

When I call

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

It seems that I do not get all invoices. I tested on production environment
and it is the same.
In FreeAgent, I have about 50 invoices. If I analyse the object returned
by this call, I only have 25 invoices

Do you know a way to get ALL invoices ?

Thanks in in advance

Sorry, at the present there is not a way to only get invoices between two
dates.

Best wishes,
BenOn Mon, Jul 7, 2014 at 11:43 AM, Thomas Albisser < thomas.albisser@hop-cube.com> wrote:

Ok thanks, it works perfectly.
Just to be sure : do you know a way to get all invoices between two dates.
My goal is to get all invoices during the current accounting year.

Thanks again

Le lundi 7 juillet 2014 20:01:05 UTC+2, Ben a écrit :

Hi Thomas,

All resources that return multiple items are paginated and will return 25
items by default. You can read more here: https://dev.freeagent.
com/docs/introduction (under “Pagination”).

I hope that helps.

Best wishes,
Ben

On Mon, Jul 7, 2014 at 10:51 AM, Thomas Albisser <thomas....@hop-cube.com wrote:

Hi,

When I call

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

It seems that I do not get all invoices. I tested on production
environment and it is the same.
In FreeAgent, I have about 50 invoices. If I analyse the object
returned by this call, I only have 25 invoices

Do you know a way to get ALL invoices ?

Thanks in in advance


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_ap...@googlegroups.com.
To post to this group, send email to freeag...@googlegroups.com.

Visit this group at http://groups.google.com/group/freeagent_api.
For more options, visit https://groups.google.com/d/optout.

Ben Brinckerhoff
Senior Engineer
FreeAgent

Web. freeagent.com http://www.freeagent.com/
Blog. freeagent.com/blog
Twitter. @freeagent https://twitter.com/#!/freeagent
Facebook. facebook.com/freeagentapp

40 Torphichen Street, Edinburgh, EH3 8JB
FreeAgent Central Ltd. Registered in sunny Scotland SC316774


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.

Ben Brinckerhoff
Senior Engineer
FreeAgent

Web. freeagent.com http://www.freeagent.com/
Blog. freeagent.com/blog
Twitter. @freeagent https://twitter.com/#!/freeagent
Facebook. facebook.com/freeagentapp

40 Torphichen Street, Edinburgh, EH3 8JB
FreeAgent Central Ltd. Registered in sunny Scotland SC316774

Hi Thomas,

All resources that return multiple items are paginated and will return 25
items by default. You can read more here:
https://dev.freeagent.com/docs/introduction (under “Pagination”).

I hope that helps.

Best wishes,
BenOn Mon, Jul 7, 2014 at 10:51 AM, Thomas Albisser < thomas.albisser@hop-cube.com> wrote:

Hi,

When I call

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

It seems that I do not get all invoices. I tested on production
environment and it is the same.
In FreeAgent, I have about 50 invoices. If I analyse the object
returned by this call, I only have 25 invoices

Do you know a way to get ALL invoices ?

Thanks in in advance


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.

Ben Brinckerhoff
Senior Engineer
FreeAgent

Web. freeagent.com http://www.freeagent.com/
Blog. freeagent.com/blog
Twitter. @freeagent https://twitter.com/#!/freeagent
Facebook. facebook.com/freeagentapp

40 Torphichen Street, Edinburgh, EH3 8JB
FreeAgent Central Ltd. Registered in sunny Scotland SC316774

Ok thanks, it works perfectly.
Just to be sure : do you know a way to get all invoices between two dates.
My goal is to get all invoices during the current accounting year.

Thanks againLe lundi 7 juillet 2014 20:01:05 UTC+2, Ben a écrit :

Hi Thomas,

All resources that return multiple items are paginated and will return 25
items by default. You can read more here:
https://dev.freeagent.com/docs/introduction (under “Pagination”).

I hope that helps.

Best wishes,
Ben

On Mon, Jul 7, 2014 at 10:51 AM, Thomas Albisser <thomas....@hop-cube.com <javascript:>> wrote:

Hi,

When I call

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

It seems that I do not get all invoices. I tested on production
environment and it is the same.
In FreeAgent, I have about 50 invoices. If I analyse the object
returned by this call, I only have 25 invoices

Do you know a way to get ALL invoices ?

Thanks in in advance


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_ap...@googlegroups.com <javascript:>.
To post to this group, send email to freeag...@googlegroups.com
<javascript:>.
Visit this group at http://groups.google.com/group/freeagent_api.
For more options, visit https://groups.google.com/d/optout.

Ben Brinckerhoff
Senior Engineer
FreeAgent

Web. freeagent.com http://www.freeagent.com/
Blog. freeagent.com/blog
Twitter. @freeagent https://twitter.com/#!/freeagent
Facebook. facebook.com/freeagentapp

40 Torphichen Street, Edinburgh, EH3 8JB
FreeAgent Central Ltd. Registered in sunny Scotland SC316774