Midaz in a Global Portfolio
Last updated
Last updated
You can use Midaz as the ledger for a global account you wish to offer, similar to what major banks do (where the same client can have accounts in BRL ๐ง๐ท, USD ๐บ๐ธ, EUR ๐ช๐บ, etc.). For this, assets need to be created using the endpoint as shown below.
After that, the portfolio for the client can be created. Think of the portfolio as a grouping of accounts, commonly referred to as a "wallet." Just like a real wallet, a portfolio can have accounts with different assets (assets). To create the portfolio, the Create a Portfolio endpoint should be called.
Use the entityId
as the ID that identifies the client on your side. In the future, Midaz will provide the Entities Satellite to manage this for clients as well.
With the portfolio and asset created, accounts can be created using the Create an Account endpoint as shown below.
Given that in this example accounts in BRL, USD, and EUR would be created, the POST /assets
and POST /accounts
endpoints would be called three times.
Once this is done, when the Retrieve all Accounts endpoint is called for the specific portfolio, the three accounts will be returned as shown below.