Lerian APIs
This section answers frequently asked questions about Lerian’s APIs, covering general behavior, configuration, and best practices across all services..Is there a maximum number of records per page in API listings? Can I increase this limit?
Is there a maximum number of records per page in API listings? Can I increase this limit?
MAX_PAGINATION_LIMIT
environment variable in your deployment configuration. Once updated and the application is restarted, the API will accept larger page sizes.Important: Increasing the page size may affect response times, especially in environments handling large datasets. Always test thoroughly in staging before applying changes in production.Midaz
Here, you will find the answers to common questions about Organizations, Ledgers, Accounts, Transactions, and more in Midaz.Organizations
Do different Organizations communicate with each other?
Do different Organizations communicate with each other?
Can I use a single license across multiple Organizations?
Can I use a single license across multiple Organizations?
Can an Organization have multiple Plugins?
Can an Organization have multiple Plugins?
Can an Organization have multiple Ledgers?
Can an Organization have multiple Ledgers?
Can I create transactions between a Parent Organization and a Child Organization?
Can I create transactions between a Parent Organization and a Child Organization?
Ledgers
Do different Ledgers communicate with each other?
Do different Ledgers communicate with each other?
How can I make transactions between Ledgers?
How can I make transactions between Ledgers?
Do I need a separate Ledger for each Plugin?
Do I need a separate Ledger for each Plugin?
Assets
Can an Asset be linked to multiple Accounts?
Can an Asset be linked to multiple Accounts?
What types of Assets can I use?
What types of Assets can I use?
- currency: Traditional fiat currencies like BRL, USD, and EUR.
- crypto: Digital assets such as BTC, ETH, and other cryptocurrencies.
- commodities: Tangible goods like gold, soybean, and oil.
- others: Custom Assets, including loyalty points and tokenized securities.
Portfolios
How does a Portfolio work?
How does a Portfolio work?
segment_id
values, it will also have two corresponding account_id
values. To simplify retrieval, a Portfolio is created for that CPF, linking both accounts under a single structure. This ensures easier access and management of related accounts.Accounts
Can an Account be associated with multiple Assets?
Can an Account be associated with multiple Assets?
What is an External Account?
What is an External Account?
How can I create an External Account?
How can I create an External Account?
Can an Account be linked to several Segments?
Can an Account be linked to several Segments?
account_id
) can be linked to only one Segment (segment_id
).Is there a limit to how many Accounts I can create in Midaz?
Is there a limit to how many Accounts I can create in Midaz?
What is the process for adding funds to an account or performing a cash-in using money coming from outside the Ledger (Midaz) environment?
What is the process for adding funds to an account or performing a cash-in using money coming from outside the Ledger (Midaz) environment?
- In the Midaz Ledger, when an Asset (e.g., BRL) is created, an External Account associated with that asset is also generated.
- This External Account acts as a gateway between the Lerian ecosystem and the external world. In other words, it serves as a mirror of the balances held by the institution in its PI account, settlement account, reserve account, or even a traditional bank or payment account holding the actual funds.
- To deposit funds into a user account with a specific Asset coming from outside the Midaz Ledger, the process is as follows:
- Initiate a transaction where the source is the External Account and the destination is the target account(s).
- As a result, the External Account will be debited by the transferred amount (becoming negative), while the destination account(s) will be credited accordingly, based on the values provided in the transaction payload.
Transactions
What is the minimum structure of a Transaction?
What is the minimum structure of a Transaction?
- Operation 1: Debit R$ 100 from Account A.
- Operation 2: Credit R$ 100 to Account B.
Is it possible to generate a PDF transfer receipt containing the details of a completed transaction?
Is it possible to generate a PDF transfer receipt containing the details of a completed transaction?
- Via APIs – Retrieve transaction data through our APIs, enabling you to generate a visual receipt in the format of your choice.
- Using the Reporter – Extract transaction data and create customized visual receipts.
- Through the Console – Access transaction information directly from the Lerian Console.
Entities
How can I create an Entity?
How can I create an Entity?
entity_id
) is open for external IDs, with no validation enforced by Midaz. This means you can use the IDs that already exist in your database, seamlessly integrating them into your system.Idempotency
What happens if I don’t send an idempotency key?
What happens if I don’t send an idempotency key?
Can I reuse an idempotency key across endpoints?
Can I reuse an idempotency key across endpoints?
What happens if I change the TTL on a retry?
What happens if I change the TTL on a retry?
Will the replayed response always be identical?
Will the replayed response always be identical?
What’s the default TTL if I don’t send X-TTL?
What’s the default TTL if I don’t send X-TTL?
Accounting in Midaz
How can I reflect my own Chart of Accounts in Midaz?
How can I reflect my own Chart of Accounts in Midaz?
- Account Types – Create the logical categories from your chart (e.g., Assets, Liabilities, Revenue, Expenses) and assign them to accounts in your ledger. When the Account Types feature is enabled, the type field in the Accounts API becomes mandatory and must match one of the values you’ve registered.
- Transaction Routing – Use Operation Routes to validate each “leg” of a transaction (e.g., debit must come from an account type
user_wallet
) and Transaction Routes to define complete transaction patterns that align with your accounting logic.
Plugins
Plugins extend the capabilities of the Midaz ledger, enabling seamless integration and process orchestration. Designed to remove complexity, they provide powerful abstractions that let you focus on your business model while ensuring efficiency and scalability. Explore the most common questions about how plugins work, their deployment, and the options available to enhance your operations.What are Plugins?
What are Plugins?
Can plugins be used without Midaz?
Can plugins be used without Midaz?
How are plugins distributed?
How are plugins distributed?
What plugin options does Lerian offer?
What plugin options does Lerian offer?
- Native Plugins: Developed and fully integrated into the Midaz ledger by Lerian, these plugins ensure complete support and seamless integration with the platform.
- Marketplace Plugins: Created by Lerian’s partners to serve specific market niches, these plugins are available in the marketplace. Lerian facilitates their integration into Midaz, but their offering and support are managed directly by the respective partners.