expenses.list filters

24 views
Skip to first unread message

Gauthier Delamarre

unread,
Feb 29, 2012, 6:40:32 AM2/29/12
to FreshBooks API
Hi,

I'm quite new to Freshbooks API, looking for a way to get expenses
listing filtered by author (and not grouped by author, as the GUI only
permits).

To be clear, I want to be able to list the expenses for each employee
on a given period on separates reports.

Do you know if this is doable and how to do it?

Thanks!

Nox Dineen (FreshBooks)

unread,
Mar 2, 2012, 3:44:00 PM3/2/12
to freshbo...@googlegroups.com
Hi Gauthier,

I'm afraid that you can't filter the expense.list call by user ID to get only one staff member's expenses. For now you'd be looking at looping through each invoice in the date range with an invoice.get for it and then saving the info differently depending on the staff ID that's returned.

I'll grant you that it isn't ideal, and I will add filtering by staff ID to our list of potential additions to the API.

Cheers,
Nox
Reply all
Reply to author
Forward
0 new messages