Get monthly expense comparison
Retrieves month-over-month and year-over-year expense comparison data.
Data Returned:
- Last 6 months of expense data
- Comparison vs previous month (%)
- Comparison vs same month last year (%)
- Top expense category per month
X-Api-Key<token>
Business API key, e.g. vuz_ab12cdef... Created via Settings → Integrations → API Keys. Unlike partner keys, a public API key's STRING does not encode its environment — isolation instead comes from a completely separate sandbox database: a key minted on the Sandbox server (above) only ever reads/writes sandbox data and can never see or affect production, regardless of what the key looks like.
In: header
Response Body
application/json
application/json
curl -X GET "https://example.com/analytics/expenses/monthly-comparison"{ "currency": "string", "months": [ { "month": "string", "label": "string", "labelEn": "string", "expenses": 0, "vsLastMonth": 0, "vsSameMonthLastYear": 0, "topCategory": "string", "topCategoryLabel": "string" } ]}
