> ## 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.

# What is Bank Transfer?

> Move money between Brazilian banks the same business day with Lerian's Bank Transfer plugin: outbound, inbound, and P2P transfers with BACEN compliance built in.

TED (Transferência Eletrônica Disponível) is Brazil's interbank transfer system. Money moves between any two banks on the same business day. Lerian's Bank Transfer plugin gives your institution a production-ready TED integration: outbound and inbound transfers, internal P2P, fee handling, and BACEN compliance.

<Tip>
  **Regulatory reference**

  This page presents a practical overview of how TED works. For complete technical, legal, and regulatory details, consult the [official documentation](https://www.bcb.gov.br/estabilidadefinanceira/spb) published by the **Central Bank of Brazil (BACEN)**.
</Tip>

## What you can build

***

* **Payroll disbursements** — send salaries or contractor payments directly to employees' accounts at any Brazilian bank
* **Supplier and vendor payments** — pay invoices and settle B2B obligations without manual bank portal access
* **Customer withdrawals** — let customers move funds out of your platform to their external bank accounts on demand
* **Internal fund movement** — move money between accounts in your own institution, with no external routing (P2P)

## Transfer types

***

| Type        | What it means for your business                                                          |
| ----------- | ---------------------------------------------------------------------------------------- |
| **TED OUT** | Your customer sends money to an account at another bank                                  |
| **TED IN**  | Your institution receives money from another bank automatically                          |
| **P2P**     | Money moves between two accounts within your institution — same-day, no external routing |

## How it works

***

1. **Initiate** — you enter the recipient's bank details and the amount. The plugin shows the fee first
2. **Confirm** — you authorize the transfer, and the plugin reserves the funds in Midaz
3. **Send** — the plugin signs the payment and dispatches it over the BACEN STR network to the destination bank
4. **Settle** — the recipient's bank credits the funds, and you receive the JD SPB control number as confirmation

## Operating hours and limits

***

What your customers can expect:

| Rule                | Details                                                             |
| ------------------- | ------------------------------------------------------------------- |
| Operating window    | Monday to Friday, 06:30–17:00 Brasília time (default, configurable) |
| Settlement SLA      | Same day (D+0) for transfers confirmed within the window            |
| Weekends / holidays | TED is unavailable; schedule transfers for the next business day    |

<Note>
  Outside the operating window, the plugin rejects the transfer and moves no funds. The error names the next available time.
</Note>

## What the plugin handles for you

***

Your team does not need to build or maintain:

* **Fee calculation** — the plugin computes fees through Fees Engine at initiation, before you confirm
* **Idempotency** — a retried request carries an idempotency key, so it returns the original result and never creates a second transfer
* **BACEN compliance** — the plugin enforces the operating window and records a full audit trail
* **Holiday calendar** — BACEN business-day validation, backed by the `bacen_holidays` table (seeded for 2026–2099)
* **Webhook notifications** — webhooks notify your system when a transfer completes, arrives, or fails
* **Reconciliation** — every transfer records the JD SPB control number, timestamps, and status history for audit
* **Automatic returns (devolução)** — if the plugin cannot credit an incoming transfer, it returns the funds to the origin bank automatically. This differs from a chargeback, which reverses a completed credit

<Tip>
  To configure fee pricing for TED transfers in your organization, see [Fees Engine](/en/midaz/fees/fees-engine-overview).
</Tip>

<Tip>
  [Explore the TED API](/en/reference/midaz/plugins/ted/initiate-transfer). Browse the endpoints for initiating and managing transfers.
</Tip>
