how to get expense data

Hi,
I am trying to get all the expenses information based on a filter by "Downloader" endpoint.
Currently, we have some expenses uploaded by mobile app, and I can also create new expenses by api calls.
The issue starts when I try to get all the expenses based on a filter.
1 - I exported a report with "Report Exporter" ("type":"combinedReportData") filtering by a start date. This returned a file name.
2- Using the file name above, I called Downloader api endpoint ("type": "download")
3- It only returned a string "template@expensify_template.ftl" .
I expect it to return a response with all the expense information (is that right?) . It looks like it is related to templates, not sure how to create a template though, not so clear in the doco.
So, what am I doing wrong? How can I get the details of all the uploaded expenses?
Cheers
Answers
-
Hi @caglarcem! The expense data is exported to a file that's created. It won't be displayed in the response. You can learn more about how to create a template here. Let me know if you have any questions!
-
Hi @caglarcem I'm also interested in getting many expenses back. Are you able to query for report IDs?
I wrote this which may be helpful: https://community.expensify.com/discussion/5267/how-to-zero-to-hero-in-postman-with-you-first-report-retrieval/p1?new=1