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

# Configuring Ledger Settings

> Enable validation rules that control how Accounts and Transactions behave inside a specific Ledger.

The **Settings** tab in the Ledger sidebar allows you to enable validation rules that control how accounts and transactions behave within a specific Ledger. These settings let you enforce account type classification and transaction routing rules directly from the Console, without requiring changes to environment configuration files.

<Note>
  The **Settings** tab is only available when editing an existing Ledger. It does not appear during Ledger creation.
</Note>

## Accessing Ledger Settings

***

<Steps>
  <Step title="Open the Ledgers page">
    In the **Midaz Module**, click **Ledgers** in the **Foundation** section of the left sidebar.
  </Step>

  <Step title="Open the Ledger details">
    Locate the Ledger you want to configure. Click the three dots (<Icon icon="ellipsis-vertical" />) in the **Actions** column and select **Details**.
  </Step>

  <Step title="Navigate to the Settings tab">
    In the sidebar that opens, click the **Settings** tab. You will see the available validation toggles for this Ledger.
  </Step>
</Steps>

## Available settings

***

### Validate Account Type

When this toggle is **enabled**, only Account Types that have been previously registered for this Ledger will be accepted when creating a new Account. This enforces consistent account classification across your financial structure.

Enabling this setting also activates the **Account Types** menu in the left sidebar, allowing you to manage the registered types for this Ledger.

<Warning>
  Once **Validate Account Type** is enabled, the **Account Type** field becomes mandatory when creating any new Account under this Ledger. Accounts without a valid type will be rejected.
</Warning>

<Card title="Managing Account Types" icon="tag" href="/en/platform/lerian-console/midaz-console/managing-account-types">
  Learn how to create and manage Account Types for your Ledger.
</Card>

### Validate Routes

When this toggle is **enabled**, all transactions must follow pre-configured routing rules that define which source and destination accounts are allowed for each operation type. Transactions that do not match an existing route will be rejected during processing.

Enabling this setting also activates the **Transaction Routes** and **Operation Routes** menus in the left sidebar.

<Warning>
  Before enabling **Validate Routes**, make sure you have configured at least one Transaction Route and the relevant Operation Routes for your Ledger. Enabling this setting without routes in place will cause all transactions to fail validation.
</Warning>

<Columns cols={2}>
  <Card title="Managing Transaction Routes" icon="route" href="/en/platform/lerian-console/midaz-console/managing-transaction-routes">
    Configure the allowed transaction routes for this Ledger.
  </Card>

  <Card title="Managing Operation Routes" icon="arrows-split-up-and-left" href="/en/platform/lerian-console/midaz-console/managing-operation-routes">
    Define allowed source and destination accounts per operation type.
  </Card>
</Columns>

## API reference

***

You can also retrieve and update Ledger Settings programmatically via the Midaz API:

<Columns cols={2}>
  <Card title="Retrieve Ledger Settings" icon="magnifying-glass" href="/en/reference/midaz/retrieve-ledger-settings">
    Fetch the current settings for a specific Ledger.
  </Card>

  <Card title="Update Ledger Settings" icon="pen" href="/en/reference/midaz/update-ledger-settings">
    Enable or disable validation settings for a Ledger via API.
  </Card>
</Columns>
