Sign in to participate

Be Kind, Be Helpful

Ask a question, answer a question, and get to know the fine people in the Harvest community.

Forum powered by Altered Beast
This is a Topic in API and Developers

Get All Project Expenses for a Date Range

Avatar

I looked at the Expense Tracking API and I don’t see a way to get a list of all expenses for a project over a time period. Is this possible? Thanks.

Avatar

Definitely possible. Take a look at the Reporting API.

Avatar

That’s perfect, Barry. Thanks for the hint. FWIW, I think that the Expense Tracking API should include, or at least link to the page that describes, how to report on expenses. Thanks!

Avatar

I am going to attempt to build a tool for myself using the API so I can generate Invoices in a more custom format (mostly to be able to attach my expenses into my detailed invoices). I haven’t started yet, I am just beginning to explore the API docs for options…

Looking at the Reporting API doc, both of the “get all expense entries” sample responses show that the expense object in the response does not contain the has-receipt and receipt-url fields which the sample responses from the Expense Tracking API doc includes on each expense…

Is the doc wrong?
If not, is my only option to use tons of API calls to pull out the URLs for the receipts for all of my expenses one by one via GET /expenses/#{expense id}?

 

[ Please sign up to post a comment. ]