freee_multiyear_comparison
Compare financial data across multiple fiscal years. Get profit & loss or balance sheet reports with year-over-year changes and percentages for annual growth analysis.
Instructions
Get multi-year comparison report (2 or 3 years) for P/L or BS using freee native multi-year trial balance APIs. Returns account-level data with current year, last year (and optionally two years before), plus pre-computed year-on-year changes and percentages. More accurate than manual period comparisons for annual growth analysis.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| companyId | No | Company ID (optional, uses FREEE_DEFAULT_COMPANY_ID if not provided) | |
| fiscalYear | Yes | Fiscal year (the most recent year to compare) | |
| startMonth | No | Start month (1-12) | |
| endMonth | No | End month (1-12) | |
| reportType | Yes | Report type: pl (profit & loss) or bs (balance sheet) | |
| years | Yes | Number of years to compare (2 or 3) |