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

# TED IN Operations

> Run the inbound TED poller by hand, inspect reconciliation gaps, and record where retained inbound money went, from the Bank Transfer plugin in Lerian Console.

The **TED IN operations** page of the **Bank Transfer** plugin covers the inbound side of TED. Use it to run the inbound poller by hand and to inspect the gaps that stopped it. Use it also to record where inbound money went when the plugin neither credited nor returned it.

Each Bank Transfer screen needs the `bank-transfer` permission: `get` to see it, `post` to act on it, `patch` to change settings and the routing document, and `delete` to delete a webhook.

## Accessing the page

***

<Steps>
  <Step title="Open Bank Transfer">
    From the Midaz Module sidebar, expand **Bank Transfer**.
  </Step>

  <Step title="Click TED IN operations">
    Select **TED IN operations** in the submenu.
  </Step>
</Steps>

## Poller actions

***

The **Poller actions** section has three actions.

| Action | What it does |
| - | - |
| **Poll now** | Runs one inbound cycle now, instead of waiting for the background worker. The result shows how many messages the cycle processed. |
| **Replay backlog** | Processes the inbound backlog of the organization on screen again. Select an organization first. |
| **Resume poller** | Restarts a poller that stopped on a reconciliation gap. The poller reads inbound messages again from its last checkpoint. |

Outside the inbound operating window, **Poll now** runs no cycle. The page then says that the cycle read nothing. This result is not an all-clear.

### Resume the poller

<Steps>
  <Step title="Open the dialog">
    Click **Resume poller**.
  </Step>

  <Step title="Record why">
    Optionally, type a **Note** of up to 500 characters. The note tells the next operator that a person reviewed the gap.
  </Step>

  <Step title="Mark the gap when you reviewed it">
    Select **I have reviewed the gap this poller latched on** to also mark the gap resolved. If you leave it clear, the poller resumes and the gap stays open.
  </Step>

  <Step title="Resume">
    Click **Resume**. The result tells you whether the reconciliation gap is still open.
  </Step>
</Steps>

## Reconciliation gaps

***

A reconciliation gap is a point where the inbound message stream lost continuity. The poller stops on a gap until a person resumes it. The **Reconciliation gaps** table lists the gaps, 50 per page:

| Column | Description |
| - | - |
| Gap ID | Identifier of the gap. |
| Latched at | When the poller stopped on the gap. |
| Transport reason | The reason that the transport reported. |
| Last checkpoint | The last position that the poller read before the gap. |
| Tenant | The tenant of the gap. |
| Organization | The organization of the gap. |

When the table is empty, the page shows **No reconciliation gaps**. If the plugin has not answered yet, the page shows **Cannot verify the inbound gaps** instead. This message does not mean that there are no gaps. When gap inspection is off in your deployment, the page shows the message of the plugin.

## Retained messages and undeliverable credits

***

Two lists show inbound money that the plugin did not deliver. Each list shows 50 rows per page.

**Retained messages** lists the inbound TEDs that the plugin neither credited nor returned, oldest first.

| Column | Description |
| - | - |
| Message ID | Identifier of the inbound message. |
| Reason | Why the plugin retained the message. |
| Amount | Amount of the TED. |
| Received at | When the plugin received the message. |
| Actions | **Close** appears when the plugin no longer retries the message. |

**Undeliverable credits** lists the inbound TEDs that could not reach their recipient, and how far each return has got.

| Column | Description |
| - | - |
| Control # | Control number of the TED. |
| Reason | Why the credit could not reach the recipient. |
| Status | The state of the return. |
| Amount | Amount of the TED. |
| Created at | When the plugin recorded the credit as undeliverable. |
| Actions | **Close** appears when the status is `RETAINED` or `FAILED`. |

If the plugin has not answered yet, a list says so. This message is not an all-clear.

### Record where the money went

**Close** records an act that a person already did outside the platform. No money moves. Nobody can change the record later.

<Steps>
  <Step title="Open the dialog">
    Click **Close** on the row. The dialog **Record where this money went** opens.
  </Step>

  <Step title="Choose the outcome">
    Select the outcome that matches what happened:

    * `RETURNED`: a person sent the money back to the paying bank.
    * `CREDITED`: a person credited the beneficiary.
    * `ABSORBED`: the institution keeps money that reached neither end.
  </Step>

  <Step title="Write the note">
    Type a **Note** of 10 to 500 characters.
  </Step>

  <Step title="Record the closure">
    Click **Record closure**. If the plugin refuses the closure, the dialog stays open and shows its reason.
  </Step>
</Steps>

<Warning>
  Record the outcome only after the money moved. The record is final, and the Console moves no money for it.
</Warning>

## Related pages

***

<Columns cols={2}>
  <Card title="Reconciliation" icon="scale-balanced" horizontal href="/en/interfaces/ted-jd/console/bt-managing-reconciliation">
    Retry or resolve a TED Out in manual review.
  </Card>

  <Card title="Accounting Routes" icon="route" horizontal href="/en/interfaces/ted-jd/console/bt-accounting-routes">
    Bind each scope to the Midaz accounting routes that the plugin posts with.
  </Card>
</Columns>


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