---
title: "Undo a person's categorization of one transaction (human-only, P08-b)"
method: POST
path: "/accountant/companies/{customerId}/transactions/{transactionId}/categorization/undo"
tags: ["Accountant Portal"]
---

# Undo a person's categorization of one transaction (human-only, P08-b)

`POST /accountant/companies/{customerId}/transactions/{transactionId}/categorization/undo`

## Request

- Base URL: `https://api.medianfi.com/api/v1`
- URL: `https://api.medianfi.com/api/v1/accountant/companies/{customerId}/transactions/{transactionId}/categorization/undo`
- Auth: HTTP bearer

Human-only (refuses service principals and API keys; listed on HUMAN_ONLY_ROUTES); who may undo is who may approve (403 CLIENT_APPROVER_REQUIRED). Voids the row's one posted categorization entry through the audited journal-entry void, which posts its Uncategorized review entry, and returns the row to review with no category (BK-149's core). Records `categorization.undone` on the voided journal entry (company audit read) and a `categorization_undone` timeline event. Idempotent: a repeat call returns state already_undone with no new write. Acts only on the row's own categorization entry (source transaction, source id the row). Refuses a reconciled row or entry and a closed or filing-locked month (422); a split or uncategorized row, no single own entry, an entry that also books another row or a document, a row a transfer match or document owns, and a row booked to an uncategorized account (409). The audit row commits with the void and the restore. /reject is a separate send-back that keeps the category.

## Path parameters

- `customerId` string, uuid, required
- `transactionId` string, uuid, required

## Request body

- object
  - `reason` string, required

## Response `200`

Success envelope with the undo state (undone or already_undone)

- object

## Other responses

- `401`: Authentication required
- `403`: Insufficient permissions or not a company member
- `404`: Resource not found
- `409`: Request conflicts with the durable onboarding state
- `422`: Request failed validation

## Changes

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

[Operation history](https://skmtc.dev/medianfi/apis/median-api/changes/accountant/companies/:customerId/transactions/:transactionId/categorization/undo/post.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)
