> ## 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 Pix Indirect (BTG)?

> BTG Pactual acts as the direct participant that connects your institution to BACEN's Pix infrastructure through its Banking as a Service offering.

BTG Pactual is one of the largest investment banks in Latin America and operates as a **direct participant** in Brazil's Pix ecosystem. Through its Banking as a Service (BaaS) infrastructure, BTG provides indirect participants with regulated connectivity to BACEN's SPI (Instant Payment System) and DICT (Transactional Account Identifier Directory).

# BTG's role in the Pix ecosystem

***

As the direct participant, BTG handles the layers that require regulatory licensing and direct BACEN integration:

* **SPI connectivity** — Sends and receives Pix payment messages (pacs.008, pacs.002, pacs.004) through BACEN's real-time settlement infrastructure
* **DICT access** — Manages Pix key lookups, registrations, and claim resolutions at the BACEN directory level
* **Settlement and liquidity** — Processes financial settlement between institutions through BACEN's infrastructure
* **Regulatory compliance** — Maintains the certifications, audits, and operational requirements BACEN mandates for direct participants
* **Webhook notifications** — Delivers real-time event callbacks for transaction status changes, key events, and dispute updates
* **mTLS security** — Provides certificate-based authentication for secure webhook communication

<Note>
  Your institution retains full control of its ledger, customer data, business rules, and operational infrastructure. BTG provides connectivity — not account management.
</Note>

Beyond standard transfers and DICT operations, the plugin supports the advanced Pix flows BACEN requires:

* **MED 2.0 Funds Recovery** — track fraudulent fund movements across accounts and request coordinated refunds
* **Distributed partial refunds** — return a refund debited from multiple internal accounts in one operation
* **Intra-PSP (P2P) transfers** — settle internal transfers without BTG, while reporting to BACEN via TRCK002
* **Unblock** — recover refunds or transfers stuck in `PROCESSING`

# Why BTG

***

BTG brings specific advantages as a direct participant for Pix operations:

* **Production-ready infrastructure** — BTG already operates at scale in the Pix ecosystem, processing high volumes with proven reliability
* **Native integration with Lerian** — The Indirect Pix Plugin includes built-in support for BTG's APIs, authentication, and event model, eliminating custom middleware
* **Faster time to market** — Institutions launch Pix in weeks instead of months, since BTG absorbs the regulatory and infrastructure complexity
* **Enterprise-grade security** — mTLS webhook validation, API credential management, and certificate rotation come built into the integration
* **Simplified onboarding** — BTG provides credentials directly when your institution signs up for indirect BACEN integration — no separate certification process required

# Next steps

***

With this context, explore how to configure and operate the plugin with BTG:

* [Setting up the integration](/en/midaz/plugins/pix/indirect/indirect-pix-integration) — Configure the plugin's connection to BTG, Midaz, CRM, and all supporting services
* [Webhooks](/en/midaz/plugins/pix/indirect/indirect-pix-webhooks) — Event types, payloads, retries, and best practices for handling BTG notifications
* [MED 2.0 — Funds Recovery](/en/midaz/plugins/pix/indirect/indirect-pix-med-2-funds-recovery) — Cross-account fraud recovery and the X-Purpose header
* [Refund operations](/en/midaz/plugins/pix/indirect/indirect-pix-refund-operations) — Distributed partial refunds and unblocking stuck operations
* [Intra-PSP transfers](/en/midaz/plugins/pix/indirect/indirect-pix-intra-psp) — Internal P2P settlement and TRCK002 reporting
* [API reference](/en/reference/midaz/plugins/indirect-pix/create-entry) — Full API documentation for DICT, Claims, Transactions, QR Codes, and MED operations
