← Files Expense Category SummaryARCHIVED FILE

EXAMPLE.json

1.05 KB · Nov 3, 2026 · 12:13 UTC

↓ Download file

{
  "input": {
    "fromDate": "2026-10-01",
    "toDate": "2026-10-31",
    "expenses": [
      {
        "expenseId": "01",
        "date": "2026-10-02",
        "category": "Software",
        "amount": 100
      },
      {
        "expenseId": "02",
        "date": "2026-10-03",
        "category": "Software",
        "amount": -20
      },
      {
        "expenseId": "03",
        "date": "2026-10-04",
        "category": "Travel",
        "amount": 40
      }
    ]
  },
  "expected": {
    "summary": "2 categories total 120.00; 0 entries outside the date range.",
    "rows": [
      {
        "category": "Software",
        "entries": 2,
        "netAmount": 80,
        "shareOfNetPercent": 66.67
      },
      {
        "category": "Travel",
        "entries": 1,
        "netAmount": 40,
        "shareOfNetPercent": 33.33
      }
    ],
    "warnings": [
      "User-assigned categories and one currency only; no tax classification.",
      "Refunds may create negative or greater-than-100% net shares; zero net total has no defined share."
    ]
  }
}

SHA-256: 4ba218997850b3a1ea254ded82cadd8d61eb27411589562def181b8b6f5a88f8