post http://127.0.0.1:3000/v1/organizations//ledgers//accounts
Use this endpoint to create an Account. You can create as many accounts as needed for you structure. However, you must do so one at a time.
Prerequisites
Before you create an Account, you must create the Asset that will be used with it. You can use the Create an Asset endpoint.
External Account
External Accounts in Midaz represent accounts outside your organization’s structure. They’re used to track money coming in or going out, typically tied to users, partners, or financial providers beyond your internal ledger.
Midaz automatically sets up an External Account when you create an Asset, ensuring seamless backing for all transactions flowing in and out of the Ledger. However, if needed, you can manually create one with this endpoint.