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

# Midaz in banking

> Discover how Midaz powers retail, corporate, and personalized banking through Portfolios, Segments, and dedicated settlement Accounts.

export const GChildAccount = ({children}) => <Tooltip headline="Child account" tip="A sub-account under a parent account, used for budgeting or organizational purposes — each tracks its own balance while rolling up to the parent." cta="See glossary" href="/en/glossary">
    {children}
  </Tooltip>;

export const GAsset = ({children}) => <Tooltip headline="Asset" tip="A unit of value tracked in the ledger — traditional currencies (BRL, USD), digital currencies (BTC), or custom units like loyalty points. Every account is linked to exactly one asset." cta="See glossary" href="/en/glossary">
    {children}
  </Tooltip>;

export const GSettlement = ({children}) => <Tooltip headline="Settlement" tip="The process of finalizing a financial transaction — transferring actual funds between institutions. Settlement accounts act as clearing points where money is held temporarily before reaching its final destination." cta="See glossary" href="/en/glossary">
    {children}
  </Tooltip>;

export const GSegment = ({children}) => <Tooltip headline="Segment" tip="A classification applied to accounts that share characteristics — like customer tiers (VIP, Student) or regional divisions — enabling differentiated rules and pricing." cta="See glossary" href="/en/glossary">
    {children}
  </Tooltip>;

export const GPortfolio = ({children}) => <Tooltip headline="Portfolio" tip="A grouping of accounts belonging to the same customer, business unit, or purpose — tying together checking, savings, and investment accounts for a unified view." cta="See glossary" href="/en/glossary">
    {children}
  </Tooltip>;

export const GLedger = ({children}) => <Tooltip headline="Ledger" tip="The core financial book that records all transactions, balances, and operations for an organization — the single source of truth for a business unit's finances." cta="See glossary" href="/en/glossary">
    {children}
  </Tooltip>;

To understand how Midaz transforms banking operations, let’s explore its implementation in different scenarios: **retail banking**, **corporate banking**, and **personalized banking services** through <GPortfolio>portfolios</GPortfolio> and <GSegment>segments</GSegment>.

## What changes with Midaz

***

| Without Midaz                                                          | With Midaz                                                                                              |
| :--------------------------------------------------------------------- | :------------------------------------------------------------------------------------------------------ |
| Customer accounts scattered across legacy systems with no unified view | Single <GLedger>ledger</GLedger> with portfolios grouping all accounts per customer                     |
| Adding new products (savings, credit) requires core system changes     | New account types and segments configured via API — no code changes to the ledger                       |
| Fee and interest tracking mixed with operational accounts              | Dedicated internal accounts for fee income, interest expense, and <GSettlement>settlement</GSettlement> |
| Segmentation (VIP, Student) enforced manually per product              | Segments apply rules automatically — waived fees, preferential rates, cashback                          |
| Corporate hierarchies require custom workarounds                       | Native <GChildAccount>child accounts</GChildAccount> and multi-portfolio support for subsidiaries       |

## Driving innovation in banking

***

With Midaz, banks can adapt, innovate, and deliver superior financial experiences without altering core ledger structures. Whether managing individual customers, corporate clients, or tailored banking products, Midaz ensures scalability, automation, and clarity — empowering banks to lead in an evolving financial landscape.

## Retail banking for individual customers

***

A retail bank using Midaz operates under a single organization, managing customer accounts within a primary ledger. Each customer is structured as a portfolio, ensuring clarity and flexibility.

### Using Midaz

* **Organization & Ledger:** ABC Bank registers as an Organization in Midaz and establishes a "Retail Banking Ledger" to track all customer transactions.
* **<GAsset>Assets</GAsset>:** The bank defines assets for every currency it operates, ensuring multi-currency support for domestic and international accounts.
* **Customer portfolios:** Each customer has a portfolio under which their accounts—checking, savings, and credit—are managed efficiently.
* **Transactions:** Deposits, transfers, and payments are recorded with full traceability, ensuring transparency and compliance.
* **Internal accounts:** Fee and interest accounts track the bank’s revenue and expenses, maintaining accurate financial records.
* **Segments for personalization:** Customers are categorized into service tiers (e.g., Standard, Gold) to automate benefits like waived fees or preferential interest rates.
* **<GChildAccount>Child accounts</GChildAccount> for budgeting:** Customers can create sub-accounts within their savings portfolio, enabling better financial management.

#### Example: ATM withdrawal

John Doe withdraws \$100 from an ATM:

<Steps>
  <Step title="Debit">
    \$100 from John’s checking account.
  </Step>

  <Step title="Credit">
    \$100 to an "ATM Cash Dispensed" internal account.
  </Step>

  <Step title="Fee">
    \$3 is debited from John’s account and credited to the Fee Income account.
  </Step>
</Steps>

Midaz ensures accuracy and efficiency in managing millions of retail customers.

## Corporate banking for business and enterprise customers

***

Corporate banking requires a more intricate structure, often with separate ledgers or segmentation for distinction from retail banking.

### Using Midaz

* **Dedicated Ledger:** ABC Bank may establish a "Corporate Banking Ledger" for business accounts.
* **Portfolios for enterprises:** Each corporate client (e.g., ACME Corp) is assigned a portfolio with designated accounts for operations, payroll, and taxes.
* **Hierarchical accounts:** Child accounts allow businesses to allocate funds across departments while maintaining a consolidated balance.
* **Bulk transactions:** Midaz supports large-scale operations, like payroll processing with multiple simultaneous debits and credits.
* **Segments & Products:** Companies are classified as SME, Large Enterprise, etc., unlocking tailored banking services.
* **Multi-entity clients:** Subsidiaries can be structured under the parent portfolio, ensuring streamlined financial management.

#### Example: loan disbursement & supplier payments

ACME Corp receives a \$1,000,000 loan:

<Steps>
  <Step title="Credit">
    \$1,000,000 to ACME’s loan account.
  </Step>

  <Step title="Debit">
    \$1,000,000 from the bank’s Loans Receivable account.
  </Step>

  <Step title="ACME uses funds">
    * \$100,000 payment to a supplier at ABC Bank (internal transfer).
    * \$50,000 payment to an external supplier (external transfer recorded in the clearing account).
  </Step>
</Steps>

Midaz provides complete visibility, ensuring trust and efficiency in large-scale financial operations.

## Portfolios and Segments for personalized services

***

Modern banks offer custom financial products, and Midaz enables seamless personalization through portfolio segmentation.

### Customization strategies

* **Youth & student accounts:** Portfolios tagged as "Student" automatically benefit from waived fees and special perks.
* **Premium banking:** "Diamond" customers receive exclusive benefits, with transactions automatically adjusted to reflect VIP status.
* **Co-branded & special products:** Customers earning retail rewards can track loyalty points as an asset within Midaz.
* **Unified account views:** Online banking applications can fetch all customer accounts under a portfolio, offering a holistic financial overview.
* **Cross-portfolio operations:** Customers with personal and business portfolios can transfer funds effortlessly while maintaining clear separation.

#### Example: student account perks

<Steps>
  <Step>
    A new customer signs up as a student.
  </Step>

  <Step>
    Their portfolio is tagged with the "Student" segment.
  </Step>

  <Step>
    Monthly fees are automatically waived, and cashback is credited for qualifying purchases.
  </Step>

  <Step>
    Upon reaching a certain age, their segment updates, adjusting their account terms accordingly.
  </Step>
</Steps>
