Skip to main content
This guide is intended for developers setting up Midaz for the first time. If you’re looking for a business-level overview of how Midaz works, see What is Midaz?. For deployment options, see SaaS and BYOC.
Follow these steps to set up Midaz.

Step 1 - Set up your environment


To set up your Midaz environment, follow the steps in the Installing Midaz monorepo page.
  • This will install Midaz Ledger.

Authentication and authorization

Midaz does not include a built-in authentication or authorization system. This gives you the flexibility to integrate with your existing identity provider or security stack. If you need a ready-to-use solution, you can enable Access Manager, an optional feature developed by Lerian. It handles both authentication and authorization across your Lerian ecosystem, including Midaz and all other Lerian products.
Access Manager supports common identity standards like OAuth2 and OIDC and integrates natively with all Lerian products. For more details, refer to the Access Manager guide.

Step 2 - Create your Midaz structure


Start by creating the data structure that your workflows use.

Step 2.1 - Create an Organization

The first step is to create your Organization within Midaz.
If your organization has multiple branches, you can create various Organizations and designate a Parent Organization.For example, if Company XYZ has branches in New York and Brazil, you can create an Organization for Company XYZ and set it as the parent of XYZ New York and XYZ Brazil.
For a complete list of endpoints to manage your Organization, expand the section below:

Step 2.2 - Create a Ledger

Each organization must have at least on Ledger. However, you can have multiple Ledgers within each Organization if needed. For a complete list of endpoints to manage your Ledger, expand the section below:
  • Retrieve all Ledgers using the List Ledgers endpoint.
  • Retrieve a specific Ledger with the Retrieve a Ledger endpoint.
  • Update Ledger details using the Update a Ledger endpoint.
  • Delete a Ledger in Homologation using the Delete a Ledger endpoint.
    • For Ledgers in Production, deletion requires contacting Lerian support for security purposes.

Step 2.3 - Create the Assets

Your Organization can have multiple Assets. However, each Asset must be created individually, allowing for specific configurations like decimal places.
When you create an Asset, Midaz automatically sets up an External Account if one doesn’t already exist. The External Account backs all transactions that flow in and out of the Ledger.
For a complete list of endpoints to manage your Assets, expand the section below:

Step 2.4 - Create a Segment (optional)

If you want, you can use the Segment ID as a custom grouping label that clusters accounts according to user-defined policies. For a complete list of endpoints to manage your Segment, expand the section below:

Step 2.5 - Create a Portfolio

Create a Portfolio to group your accounts of different Assets. For a complete list of endpoints to manage your Portfolios, expand the section below:

Step 2.6 - Create the Accounts

You can now add the accounts related to the Assets you want to use with the Ledger. You will have to create one account for each Asset. For a complete list of endpoints to manage your Accounts, expand the section below:

Step 3 - Explore our APIs


See the API reference to learn more about Midaz, from metadata handling to idempotency.

Need help?