Provisioning Accounts

After a Legal Entity has been onboarded and its status transitions to active, you can provision an Internal Account on their behalf. An Internal Account represents a bank account or stablecoin wallet owned by your organization or your customer within Modern Treasury.

Open an Internal Account in the dashboard

You can open an account through Modern Treasury's payment service provider (PSP) offering without making an API request. You need View and Create permissions for Internal Accounts, View for Bank Connections, and View for Legal Entities.

  1. Go to Accounts and select Actions → Open New Account.
  2. Choose the Currency and an active Legal Entity associated with your PSP connection.
  3. For a stablecoin account, you can optionally select a network using Requested Account Number Type.
  4. Select Open New Account. On success, you are taken to the Internal Account's details page.

Account opening can take time, and the account may not be immediately ready for use. Follow the activation guidance below before using the account.

To add an account already opened at your own bank, use Link Existing Account instead. Dashboard account opening is available only for PSP accounts. To open a new account programmatically at another supported bank, use the Internal Accounts API. For programmatic PSP account creation, follow the API steps below.

Create an Internal Account

To create an Internal Account, send a POST request to the Internal Accounts API with the legal_entity_id of the approved legal entity that you want to open the account under. Include connection_id unless your organization has a default connection or only one connection.

curl --request POST \
     -u ORGANIZATION_ID:API_KEY \
     --url https://app.moderntreasury.com/api/internal_accounts \
     -H 'content-type: application/json' \
     -d '{
       "name": "Customer Payment Account",
       "currency": "USD",
       "legal_entity_id": "<legal_entity_id>"
     }'

The response includes the Internal Account's id and status. Account and routing details may not be populated until activation. Wait for the internal_account.activated webhook before using the account for payments.

Listen for Account Activation

Subscribe to internal_account webhooks to be notified when the account is activated and ready for use.

After creation, you will receive an internal_account.activated webhook once the account is fully provisioned. The webhook payload includes the account's routing and account numbers, as well as its payment capabilities.

Stablecoin Accounts

You can also provision Internal Accounts for stablecoin wallets by following the same process. The account will be assigned a wallet address instead of traditional banking details.

Specify the address type to provision with requested_account_number_types. The account is created in pending_activation, and the provisioned address appears in account_details once the account activates via the internal_account.activated webhook.

curl --request POST \
     -u ORGANIZATION_ID:API_KEY \
     --url https://app.moderntreasury.com/api/internal_accounts \
     -H 'content-type: application/json' \
     -d '{
       "name": "Customer Stablecoin Wallet",
       "currency": "USDC",
       "legal_entity_id": "<legal_entity_id>",
       "requested_account_number_types": ["ethereum_address"]
     }'

For a full list of stablecoin currencies supported see: Stablecoin Payments