---
title: "Grouped search over the caller's clients, Clients, Rows and Entries (p19,"
method: GET
path: "/accountant/search/grouped"
tags: ["Accountant Portal"]
---

# Grouped search over the caller's clients, Clients, Rows and Entries (p19,

`GET /accountant/search/grouped`

## Request

- Base URL: `https://api.medianfi.com/api/v1`
- URL: `https://api.medianfi.com/api/v1/accountant/search/grouped`
- Auth: HTTP bearer

One query (`q`, 2 to 100 characters) over the caller's clients (the same scope as /search), up to `limit` (1 to 20, default 5) of each group. Clients match on name or industry. Rows (bank and card transactions) match on payee or description, on the amount when `q` reads as one (1,184.60 matches 118460 cents either sign), or on the day when `q` is YYYY-MM-DD; each carries its client, day, label, signed amount and account. Entries (journal entries) match on description, a line amount or the day, with their debit total. A patient-data client returns record matches only: its rows match on payee, day and amount, never a description, the label is the payee or null, and its entries are not searched. `%` and `_` match literally. A signed-in person only: every API key gets 404.

## Query parameters

- `q` string, required
- `limit` integer

## Response `200`

The groups

- object
  - `success` true, required
  - `data` object, required
    - `q` string, required
    - `total` integer, required
    - `clients` object[], required
      - `customerId` string, uuid, required
      - `name` string, required
      - `industry` string, nullable, required
      - `clientStatus` string, required
    - `rows` object[], required
      - `transactionId` string, uuid, required
      - `customerId` string, uuid, required
      - `customerName` string, required
      - `occurredOn` string, date, required
      - `label` string, nullable, required
      - `amountCents` integer, required
      - `account` object, nullable, required
        - `institution` string, nullable, required
        - `mask` string, nullable, required
    - `entries` object[], required
      - `journalEntryId` string, uuid, required
      - `customerId` string, uuid, required
      - `customerName` string, required
      - `entryDate` string, date, required
      - `description` string, required
      - `totalCents` integer, required

## Other responses

- `401`: Authentication required
- `404`: Resource not found
- `422`: Request failed validation

## Changes

- **2026-11-26** `4a2098becaf9`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/medianfi/apis/median-api/changes/accountant/search/grouped/get.md)

---

[API](https://skmtc.dev/medianfi/apis/median-api.md) - [All operations](https://skmtc.dev/medianfi/apis/median-api/llms.txt) - [OpenAPI document](https://skmtc.dev/medianfi/apis/median-api/revisions/4f4c2d34276b?raw)
