---
title: "Mark a held takeover transaction as the same transaction as an old row"
method: POST
path: "/accountant/companies/{customerId}/integrations/plaid/{integrationId}/takeover-holds/{plaidTransactionId}/same-transaction"
tags: ["Accountant Portal"]
---

# Mark a held takeover transaction as the same transaction as an old row

`POST /accountant/companies/{customerId}/integrations/plaid/{integrationId}/takeover-holds/{plaidTransactionId}/same-transaction`

## Request

- Base URL: `https://api.medianfi.com/api/v1`
- URL: `https://api.medianfi.com/api/v1/accountant/companies/{customerId}/integrations/plaid/{integrationId}/takeover-holds/{plaidTransactionId}/same-transaction`
- Auth: HTTP bearer

#3687. The held copy is the same bank transaction as one of the old connection's rows the hold lists as a candidate, booked on the same day for the same amount, currency and direction (the bank description may differ). Only once Plaid's history is complete. The row is re-keyed to the copy's Plaid id, as automatic adoption does, so later Plaid removals and modifications of the copy reach it through the normal import; its journal entry is untouched and nothing is posted. One old row takes one copy. The row is re-checked under its lock (not deleted or adopted, same bank row, legal entity and GL account), and the audit_logs row (action `plaid_takeover_hold.adopted`, with the actor, the reason, the old and new Plaid ids and the row id) is written in the same database transaction. Holds that lose their last candidate are listed; the next sync books them. Human accountants only; the assignment is re-read before the write.

## Path parameters

- `customerId` string, uuid, required
- `integrationId` string, uuid, required
- `plaidTransactionId` string, required

## Request body

- object
  - `transactionId` string, uuid, required: The candidate old row the held copy is.
  - `reason` string, required: Why they are the same transaction. Trimmed; at least 10 characters.

## Response `200`

The old row, now the copy's transaction

- object
  - `success` true, required
  - `data` object, required
    - `plaidTransactionId` string, required
    - `status` 'adopted', required
    - `transactionId` string, uuid, required
    - `occurredOn` string, date, required
    - `amountCents` integer, required
    - `currency` string, required
    - `direction` 'in' | 'out', required
    - `orphanedPlaidTransactionIds` string[], required: Other holds whose last candidate this row was; the next sync books them.

## Other responses

- `401`: Authentication required
- `403`: Insufficient permissions or not a company member
- `404`: Not this customer's Plaid connection (PLAID_CONNECTION_NOT_FOUND)
- `409`: The row is not one of the hold's candidates (PLAID_TAKEOVER_HOLD_NOT_A_CANDIDATE), differs in date, amount, currency or direction (PLAID_TAKEOVER_CANDIDATE_NOT_EXACT), another copy already took it (PLAID_TAKEOVER_CANDIDATE_TAKEN), or it moved to another bank row, legal entity or GL account (PLAID_TAKEOVER_CANDIDATE_CHANGED); Plaid's history is still loading (PLAID_TAKEOVER_HOLD_HISTORY_LOADING); or, as for Book, the transaction is already booked, no longer held, dismissed or being booked, or the hold is closed (PLAID_TAKEOVER_HOLD_SUPERSEDED). Also PLAID_ACCOUNT_DISCOVERY_BUSY, retryable, with nothing changed.
- `422`: Invalid path parameters or body (a reason shorter than 10 characters), or the bank account is not mapped to a GL account (PLAID_TAKEOVER_HOLD_ACCOUNT_UNMAPPED)
- `503`: The accountant assignment could not be re-read before the write, or adoption is unavailable; retry

## Changes

- **2026-10-29** `36b2edd65af0`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/medianfi/apis/median-api/changes/accountant/companies/:customerId/integrations/plaid/:integrationId/takeover-holds/:plaidTransactionId/same-transaction/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)
