expensify_export_reports
Export expense reports filtered by IDs, date range, or approval state. Returns a filename for download in CSV, Excel, PDF, or JSON with optional custom columns.
Instructions
Start an export of expense reports and return the generated filename. Filter by report IDs, date range, or approval state. Pass the returned filename to expensify_download_file to get the contents. Supply a freemarker template to control the columns, or omit it for a default CSV of reportID, name, status, date, merchant, amount, currency, category and tag.
This is the only API that enumerates reports — there is no list-reports job. Use it to count or inspect reports.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| state | No | Filter to these report states | |
| endDate | No | Include reports on or before this date | |
| template | No | Freemarker template controlling output columns | |
| startDate | No | Include reports on or after this date | |
| approvedOnly | No | ||
| outputFormat | No | Defaults to csv | |
| policyIDList | No | Limit the export to these policies | |
| reportIDList | No | Specific report IDs to export |