Virtual Accounts

⚠️

This object is only used when integrating your own bank accounts with Modern Treasury. It is not available on the Modern Treasury PSP.

A virtual_account represents a subset of the transactions in an Internal Account. Virtual Accounts allow you to attribute transactions to particular users. For example, you might have a single Internal Account that holds all customer funds and a Virtual Account for every customer.

Additionally, if your virtual accounts are being debited or credited by external parties, you can use Expected Payments to monitor for activity.

Related Guides:

AttributeDescription
id stringUnique identifier for the virtual account.
name stringThe name of the virtual account.
description stringAn optional free-form description for internal use.
counterparty_id stringThe ID of a counterparty that the virtual account belongs to. Optional.
internal_account_id stringThe ID of the internal account that the virtual account is in.
account_details array objectAn array of account detail objects.
routing_details array objectAn array of routing detail objects. These will be the routing details of the internal account.
ledger_account_id string

The

Ledger Account

id linked to this virtual_account. See

Linking to Other Modern Treasury Objects

.

metadata object

Additional data represented as key-value pairs. Both the key and value must be strings. See

Metadata

.

live_mode booleanThis field will be true if this object was created with a production API key or false if created with a test API key.
{
  "id": "2e0296c1-1daf-4b3e-954d-fb9ec7be56f6",
  "object": "virtual_account",
  "name": "Funds on behalf of Alice Jones",
  "description": null,
  "counterparty_id": null,
  "internal_account_id": "c743edb7-4059-496a-94b8-06fc081156fd",
  "ledger_account_id": "c39d893d-4944-419e-816e-1266387f2ec5",
  "account_details": [
    {
      "id": "5668c0cf-972d-49c6-970f-b32591f3e8a6",
      "object": "account_detail",
      "account_number_safe": "0001",
      "account_number_type": "other"
    }
  ],
  "routing_details": [
    {
      "id": "a2d0e5c4-3058-4c04-9e75-d691a967305f",
      "object": "routing_detail",
      "payment_type": "wire",
      "routing_number": "021000021",
      "routing_number_type": "aba",
      "bank_name": "JPMORGAN CHASE BANK, NA",
      "bank_address": {
        "id": "29024065-ebd1-4a72-97b8-814108f14511",
        "object": "address",
        "line1": "14249 Stewart Ranch",
        "line2": null,
        "locality": "East Graham",
        "region": "IL",
        "postal_code": "75520",
        "country": "US"
      }
    },
    {
      "id": "ec6d8ad5-6bf6-4861-b748-0f2d3cf35191",
      "object": "routing_detail",
      "payment_type": "ach",
      "routing_number": "021000021",
      "routing_number_type": "aba",
      "bank_name": "JPMORGAN CHASE BANK, NA",
      "bank_address": {
        "id": "16b7e236-6170-4fa9-9fb7-706edf7d3ff1",
        "object": "address",
        "line1": "504 Jakubowski Lodge",
        "line2": null,
        "locality": "South Jamee",
        "region": "AZ",
        "postal_code": "27953-3448",
        "country": "US"
      }
    }
  ],
  "metadata": {},
  "live_mode": true,
  "created_at": "2020-11-09T00:11:07Z",
  "updated_at": "2020-11-09T00:11:07Z"
}