Get expense breakdown by category
Retrieves expense breakdown by category.
Categories:
- Office & Rent, Travel & Fuel, Meals
- Supplies, Professional Services, Communication
- Marketing, Insurance, Bank Fees
- Software, Equipment, Other
Data Returned:
- Amount and count per category
- Percentage distribution
- Deductible vs non-deductible breakdown
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/by-category"{ "currency": "string", "startDate": "string", "endDate": "string", "categories": [ { "category": "string", "label": "string", "labelEn": "string", "icon": "string", "amount": 0, "percentage": 0, "count": 0, "avgPerExpense": 0, "deductibleAmount": 0, "nonDeductibleAmount": 0, "color": "string" } ], "totalDeductible": 0, "totalNonDeductible": 0, "totalExpenses": 0}
