> ## Documentation Index
> Fetch the complete documentation index at: https://endclose.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Exceptions

> Learn when End Close opens an exception for overdue unmatched records, how exceptions resolve themselves, and how notes and findings work.

An exception in End Close is the set of unmatched records in one data stream of one reconciliation that are past due. End Close opens it automatically when the first record goes overdue, keeps it up to date as records arrive and match, and resolves it once nothing is left to look at.

## How exceptions fit with the other concepts

* An exception belongs to one [reconciliation](https://endclose.com/docs/concepts/reconciliations.md) and one [data stream](https://endclose.com/docs/concepts/data-streams.md) on it. There is at most one open exception per pair.
* Its lines are the stream's [records](https://endclose.com/docs/concepts/records.md) that are unmatched in that reconciliation and past their `overdue_at`.
* A line leaves the exception when a [rule or a person matches it](https://endclose.com/docs/concepts/rules-and-matches.md).
* [Agents](https://endclose.com/docs/concepts/agents.md) investigate exceptions and write a note, with a suggested fix, for each line.

## When a record becomes overdue

Each record has an entry in every reconciliation its stream belongs to, and that entry carries an `overdue_at` timestamp. A record is overdue when it's still unmatched in the reconciliation and `overdue_at` has passed.

`overdue_at` is set in one of two ways:

* **From the reconciliation's escalation delay.** When a reconciliation has one (`escalation_delay_days`), each record's `overdue_at` is its `date` plus that many days. A reconciliation without one doesn't escalate on its own. Set it under **Configure** in the app ("Flag unmatched records as overdue after N days") or with `escalation_delay_days` on `POST /reconciliations` or `PATCH /reconciliations/{id}`. Changing it also recomputes `overdue_at` for the reconciliation's unmatched records already loaded, so lowering it can open exceptions for existing records, and raising or clearing it lets an exception with nothing left overdue resolve itself. Records marked overdue by hand keep their `overdue_at`.
* **By hand.** `POST /reconciliations/{reconciliation_id}/records/{record_id}/mark_overdue` sets `overdue_at` on the record's entry in that reconciliation, to now or to the `overdue_at` you send.

```bash cURL theme={"dark"}
curl -X POST https://api.endclose.com/v1/reconciliations/$RECONCILIATION_ID/records/$RECORD_ID/mark_overdue \
  -H "X-API-Key: $ENDCLOSE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "overdue_at": "2026-11-10T00:00:00Z" }'
```

The record's stream must be part of the reconciliation (`422` otherwise), and a record already matched there can't be marked overdue (`409`). Because the subject is the record's entry in one reconciliation, the same record can be overdue in one reconciliation and matched in another.

## Exceptions are live rollups

You don't add lines to an exception or remove them. End Close works out the lines whenever you read the exception, from the stream's unmatched records whose `overdue_at` has passed. So:

* A record that goes overdue joins the open exception for its stream, or opens a new one.
* A record that gets matched drops out straight away.
* When no overdue lines are left, End Close resolves the exception on its own, unless someone is still working on it: it has an assignee, a comment from the last 7 days, or review lines that aren't done. End Close never resolves an exception that is `on_hold`.

If records go overdue again later, End Close opens a new exception for the stream.

## Exception fields

| Field | Description |
| - | - |
| `reconciliation_id`, `data_stream_id` | The reconciliation and stream the exception covers. Responses also carry their names and the stream's key. |
| `title` | Defaults to `"{data stream name} — overdue records"`. |
| `status` | `open` (not reviewed yet), `investigating`, `on_hold` (reviewed, waiting on a decision from outside your team), `dismissed` or `resolved`. |
| `hold_reason`, `held_at` | Why the exception is on hold, and since when. Set only while `status` is `on_hold`. |
| `opened_at`, `closed_at` | When it last opened, and when it last resolved or was dismissed. |
| `aggregates` | Totals over the current overdue lines: count, signed total, credits and debits, average days overdue, oldest and newest dates. |
| `assignees`, `comments` | Who owns it and the discussion so far. |
| `investigation` | The latest agent investigation and its recommendation. |
| `review_counts` | How many review lines are in each status. |

```json Exception (abridged) theme={"dark"}
{
  "id": "0193c0d2-4f6a-7b18-8e9d-a1b2c3d4e5f6",
  "reconciliation_id": "0193a7c4-2b8d-7e10-a3f5-91c04d6e8a21",
  "reconciliation_name": "Stripe payouts to Chase operating",
  "data_stream_key": "chase_operating",
  "data_stream_name": "Chase Operating",
  "title": "Chase Operating — overdue records",
  "status": "open",
  "aggregates": {
    "record_count": 14,
    "total_amount": -382150,
    "debit_count": 9,
    "debit_sum": -611900,
    "credit_count": 5,
    "credit_sum": 229750,
    "avg_age_days": 6.4,
    "oldest_at": "2026-10-21",
    "newest_at": "2026-11-03"
  },
  "review_counts": { "all": 14, "to_look_at": 9, "looks_right": 4, "done": 1 }
}
```

End Close creates exceptions itself. You can also open one with `POST /reconciliation_exceptions`, and change its title, description or status with `PATCH /reconciliation_exceptions/{id}`.

### Put an exception on hold

Use `on_hold` when you have reviewed a break and are waiting on someone else to decide, for example a client choosing to cover a fee or send another payment. An exception on hold stays in the open list and keeps ageing, and new overdue lines for its stream join it. Send an optional `hold_reason` with the status:

```bash cURL theme={"dark"}
curl -X PATCH https://api.endclose.com/v1/reconciliation_exceptions/$EXCEPTION_ID \
  -H "X-API-Key: $ENDCLOSE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "status": "on_hold", "hold_reason": "Waiting on LP decision: GP to cover $50 wire fee" }'
```

To take it off hold, set `status` back to `open` (or to `investigating`), or resolve it. Leaving hold clears `hold_reason` and `held_at`. List the held exceptions with `GET /reconciliation_exceptions?status=on_hold`.

## Notes and findings

Each overdue line can carry a finding: a short note on what happened to the line and what was checked, plus an optional suggested fix.

| Part | What it holds |
| - | - |
| `note` | One or two plain sentences about the line. |
| `looks_right` | `true` when the line is correct as it stands and only needs the note. |
| `suggestion` | What **Approve** applies: `match` pairs the line with other records, `adjust` pairs them and plugs the remaining gap with an [adjustment](https://endclose.com/docs/concepts/reconciliations.md#adjustments), `none` applies nothing. |
| `evidence` | Quotes that back the note, each optionally linked to the document it came from. |
| `category`, `precedent` | A label for the kind of line, and how the same line was handled before. |

End Close's agents write findings (`source: "agent"`), and your own matching engine can write them through the API (`source: "api"`). Each line's review status follows from its finding: `to_look_at`, `looks_right`, or `done` once the record is matched. See [Exception findings API](https://endclose.com/docs/guides/exception-findings-api.md).

## Review exceptions in the app

The **Exceptions** page lists the open lines with their notes. Reviewers can approve a suggested fix, keep a line as it is, or confirm every line that looks right in one step. Pick **All exceptions** to review every open exception in a single table instead of one at a time. See [Review exceptions](https://endclose.com/docs/guides/review-exceptions.md).

## Related

> [card] [Review exceptions](https://endclose.com/docs/guides/review-exceptions.md)
>
> Work through overdue lines in the app.

> [card] [Exception findings API](https://endclose.com/docs/guides/exception-findings-api.md)
>
> Write notes and suggested fixes from your own engine.

> [card] [Agents](https://endclose.com/docs/concepts/agents.md)
>
> How agents investigate exceptions.

> [card] [Write off a record](https://endclose.com/docs/guides/write-off-a-record.md)
>
> Close a line that will never match, with a reason.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.