Virtual Accounts
Sandbox behavior for 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 12 months ago