Modern Treasury API Documentation

Welcome to Modern Treasury. You'll find comprehensive guides and documentation to help you start working with Modern Treasury APIs as quickly as possible, as well as support if you get stuck.

Virtual Accounts

You may test the Virtual Accounts API in the sandbox. Virtual accounts can be created in any internal account.

Virtual account numbers in the sandbox are dynamically generated. When creating a virtual account, you do not have to pass in the account number. So your API call would look like this.

curl --request POST \
  -u ORGANIZATION_ID:API_KEY \
  --url https://app.moderntreasury.com/api/virtual_accounts \
  -H 'Content-Type: application/json' \
  -d '{
    "name": "Funds on behalf of Alice Jones",
    "internal_account_id": "c743edb7-4059-496a-94b8-06fc081156fd"
  }'

If you would like to simulate incoming payments to your virtual accounts, please refer to Simulating an Incoming Payment Detail.

Updated 8 months ago


Virtual Accounts


Suggested Edits are limited on API Reference Pages

You can only suggest edits to Markdown body content, but not to the API spec.