---
title: "Include an excluded transaction again (PG-p08-014)"
method: POST
path: "/accountant/companies/{customerId}/transactions/{transactionId}/include"
tags: ["Accountant Portal"]
---

# Include an excluded transaction again (PG-p08-014)

`POST /accountant/companies/{customerId}/transactions/{transactionId}/include`

## Request

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

Undo of an exclusion, by a signed-in accountant (every API key is refused: 404). The row, and its reversal partner with it, gets back the status it had and loses metadata.exclusion in one database transaction (one audit row each); a categorized row is then posted again. Refused: a row that is not excluded (409 TRANSACTION_NOT_EXCLUDED), a row in a closed or filing-locked period (422), another writer holding the month (409 WRITER_LOCK_HELD).

## Path parameters

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

## Request body

- object

## Response `200`

The rows included again

- object
  - `success` true, required
  - `data` object, required
    - `transactions` Transaction[], required
      - `journalEntry` object, nullable: Detail response only. List responses do not load journal lines and may return null even when a posted entry exists. Use the transaction detail endpoint to inspect posting; a list null is not evidence of missing accounting.
        - `id` string, uuid
        - `status` string
        - `currency` string
        - `minorUnitExponent` integer
        - `lines` object[]
          - `glAccountId` string, uuid
          - `accountName` string
          - `debitCents` integer
          - `creditCents` integer
      - `journalEntryUnavailableReason` 'scope_mismatch' | 'ambiguous_posting': Detail responses only. Present when `journalEntry` is null although an entry is linked.
      - `matchedDocumentUnavailableReason` 'scope_mismatch': Detail responses only. Present when `matchedDocument` is null although a document is matched.
      - `id` string, uuid
      - `companyId` string, uuid
      - `entityId` string, uuid
      - `occurredOn` string, date
      - `description` string
      - `merchant` string, nullable
      - `amountCents` integer
      - `currency` string
      - `direction` 'in' | 'out'
      - `status` 'needs_review' | 'categorized'
      - `categoryGlAccountId` string, uuid, nullable
      - `classId` string, uuid, nullable
      - `className` string, nullable
      - `hasReceipt` boolean
      - `bankAccountId` string, uuid, nullable
      - `merchantName` string, nullable
      - `notes` string, nullable
      - `isSplit` boolean
      - `createdAt` string, date-time
      - `updatedAt` string, date-time

## 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/include/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)
