Returns debit and credit totals and a transaction count per category for one account, plus overall totals; optionally filter by category text and date range, or nest subcategories with groupBy=detailed. On a case shared with opposing counsel, an account the caller may not see returns an empty summary. Returns 404 when a Plaid item or account id sent belongs to another case.
Query parameters
-
Case ID this financial data belongs to.
-
Internal PlaidItem document ID. Optional — resolved automatically from accountId.
-
Filter by category (case-insensitive partial match on categoryPrimary). If omitted, all categories are included.
-
Filter transactions from this date (inclusive). Format: YYYY-MM-DD.
-
Filter transactions up to this date (inclusive). Format: YYYY-MM-DD.
-
Category granularity.
detailednests Plaid subcategories under each category;primary(default) returns the category breakdown only.Values are
primaryordetailed. Default value isprimary.
curl \
--request GET 'http://api.example.com/financial-data/account/{accountId}/transactions/summary?caseId=string' \
--header "Authorization: Bearer $ACCESS_TOKEN"
{
"data": {
"categories": [
{
"category": "FOOD_AND_DRINK",
"debitTotal": 482.35,
"creditTotal": 0,
"transactionCount": 17,
"subcategories": [
{
"subcategory": "FOOD_AND_DRINK_COFFEE",
"debitTotal": 64.2,
"creditTotal": 0,
"transactionCount": 9
}
]
}
],
"totals": {
"debitTotal": 3120.75,
"creditTotal": 4500,
"transactionCount": 86
}
},
"statusCode": 200,
"timestamp": "2026-01-15T10:15:00.000Z"
}