---
updatedAt: 2026-03-09T11:06:19.000Z
agentTools:
  projectIndex: https://boomfi.readme.io/llms.txt
---

# Update Virtual Account

Update an existing virtual account. Add or enable chains with currencies, disable managed chains, configure external wallet addresses for self-custody, and set up deposit splits to automatically route portions of incoming deposits to other accounts.

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "contact": {
      "email": "support@boomfi.xyz",
      "name": "API Support"
    },
    "description": "The BoomFi Partners API provides a set of endpoints for patners to manage their accounts, transactions, and more.",
    "title": "BoomFi Partners API",
    "version": "1.0"
  },
  "paths": {
    "/partners/accounts/update-virtual-account": {
      "patch": {
        "tags": [
          "Partners"
        ],
        "summary": "Update Virtual Account",
        "description": "Update an existing virtual account: add or enable chains with currencies, disable managed chains, add external wallet addresses, and configure deposit splits.",
        "operationId": "update-virtual-account",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/partners.UpdateVirtualAccountRequest"
              }
            }
          },
          "description": "Request",
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/internal.Response-accounts_UpdateVirtualAccountResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/internal.ErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/internal.ErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "ApiKeyAuth": []
          },
          {
            "ApiSignature": []
          },
          {
            "ApiNonce": []
          }
        ]
      }
    }
  },
  "servers": [
    {
      "url": "//mapi.boomfi.xyz"
    }
  ],
  "components": {
    "securitySchemes": {
      "ApiKeyAuth": {
        "in": "header",
        "name": "X-API-KEY",
        "type": "apiKey"
      },
      "ApiNonce": {
        "in": "header",
        "name": "X-API-Nonce",
        "type": "apiKey"
      },
      "ApiSignature": {
        "in": "header",
        "name": "X-API-Signature",
        "type": "apiKey"
      }
    },
    "schemas": {
      "accounts.ChainResponse": {
        "type": "object",
        "properties": {
          "category": {
            "type": "string",
            "description": "The category or classification of the chain."
          },
          "code": {
            "type": "string",
            "description": "The code or abbreviation associated with the chain."
          },
          "is_testnet": {
            "type": "boolean",
            "description": "Indicates whether the chain is a testnet (true) or not (false)."
          },
          "name": {
            "type": "string",
            "description": "The name or title associated with the chain."
          },
          "native_currency_symbol": {
            "type": "string",
            "description": "The symbol representing the native currency of the chain."
          }
        }
      },
      "internal.ErrorResponse": {
        "type": "object",
        "properties": {
          "error": {
            "$ref": "#/components/schemas/internal.ErrorStruct"
          }
        }
      },
      "internal.ErrorStruct": {
        "type": "object",
        "properties": {
          "code": {
            "description": "The error code returned by the server.\nExample: 400",
            "type": "integer",
            "example": 400
          },
          "errors": {
            "description": "A list of detailed error objects.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/internal.SingleError"
            }
          },
          "message": {
            "description": "A descriptive message explaining the error.\nExample: Insufficient quantity",
            "type": "string",
            "example": "Insufficient quantity"
          }
        }
      },
      "internal.SingleError": {
        "type": "object",
        "properties": {
          "domain": {
            "description": "The domain associated with the error.\nExample: orders",
            "type": "string",
            "example": "orders"
          },
          "reason": {
            "description": "The reason for the error.\nExample: InsufficientQuantity",
            "type": "string",
            "example": "InsufficientQuantity"
          }
        }
      },
      "models.AccountType": {
        "description": "The type of the current account.\n- 1 = Crypto - 2 = Bank - 3 = Card",
        "type": "integer",
        "enum": [
          1,
          2,
          3
        ],
        "x-enum-varnames": [
          "AccountTypeCrypto",
          "AccountTypeBank",
          "AccountTypeCard"
        ]
      },
      "models.AccountState": {
        "enum": [
          1,
          2,
          3
        ],
        "type": "integer",
        "x-enum-varnames": [
          "AccountStateUnknown",
          "AccountStatePending",
          "AccountStateReady"
        ]
      },
      "partners.ChainConfig": {
        "type": "object",
        "properties": {
          "chain_id": {
            "description": "The blockchain network ID.",
            "type": "integer",
            "example": 1
          },
          "currencies": {
            "description": "List of currency symbols to enable on this chain.",
            "type": "array",
            "items": {
              "type": "string"
            },
            "example": [
              "USDT",
              "USDC"
            ]
          },
          "wallet_address": {
            "description": "External wallet address for this chain. When provided, creates an external (self-custody) sub-account instead of a managed wallet. Omit for managed (DFNS) wallets.",
            "type": "string",
            "example": "0x4bbeEB066eD09B7AEd07bF39EEe0460DFa261520"
          }
        }
      },
      "partners.DepositSplitInput": {
        "type": "object",
        "required": [
          "pct"
        ],
        "properties": {
          "account_ref": {
            "description": "Reference of the target virtual account to receive this split. Exactly one of account_ref or account_id must be provided.",
            "type": "string",
            "example": "my-fee-account"
          },
          "account_id": {
            "description": "ID of the target virtual account to receive this split. Exactly one of account_ref or account_id must be provided.",
            "type": "integer",
            "example": 12345
          },
          "pct": {
            "description": "Percentage of gross deposit amount to route to this destination. Use decimal string (e.g. \"2.5\" for 2.5%).",
            "type": "string",
            "example": "2.5"
          }
        }
      },
      "partners.UpdateVirtualAccountRequest": {
        "type": "object",
        "required": [
          "reference"
        ],
        "properties": {
          "reference": {
            "description": "Reference of the virtual account to update.",
            "type": "string"
          },
          "chains": {
            "description": "Add or update chain configurations. Entries without wallet_address add/enable managed wallets; entries with wallet_address add/update external wallets.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/partners.ChainConfig"
            }
          },
          "disable_chains": {
            "description": "List of chain IDs to disable for managed (pay-in) sub-accounts.",
            "type": "array",
            "items": {
              "type": "integer"
            },
            "example": [
              137
            ]
          },
          "deposit_splits": {
            "description": "Update deposit split configuration. Omit to keep current splits unchanged. Send empty array to clear splits. Send array with entries to replace splits.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/partners.DepositSplitInput"
            }
          }
        }
      },
      "accounts.UpdateVirtualAccountResponse": {
        "type": "object",
        "properties": {
          "id": {
            "description": "The unique identifier for the account.",
            "type": "integer",
            "example": 123456
          },
          "org_id": {
            "description": "The organization ID.",
            "type": "string"
          },
          "parent_id": {
            "description": "Parent account ID, if applicable.",
            "type": "integer"
          },
          "reference": {
            "description": "The account reference identifier.",
            "type": "string"
          },
          "account_type": {
            "$ref": "#/components/schemas/models.AccountType"
          },
          "name": {
            "description": "Account name.",
            "type": "string"
          },
          "chain_id": {
            "description": "Blockchain network ID.",
            "type": "integer"
          },
          "address": {
            "description": "Crypto wallet address.",
            "type": "string"
          },
          "currencies": {
            "description": "Supported currencies.",
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "enabled": {
            "description": "Whether the account is enabled.",
            "type": "boolean"
          },
          "provider": {
            "description": "Account provider (e.g. DFNS, External).",
            "type": "string"
          },
          "state": {
            "$ref": "#/components/schemas/models.AccountState"
          },
          "created_at": {
            "description": "Creation timestamp.",
            "type": "string"
          },
          "updated_at": {
            "description": "Last update timestamp.",
            "type": "string"
          },
          "chain": {
            "$ref": "#/components/schemas/accounts.ChainResponse"
          },
          "sub_accounts": {
            "description": "Sub-accounts under this virtual account.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/accounts.UpdateVirtualAccountResponse"
            }
          }
        }
      },
      "internal.Response-accounts_UpdateVirtualAccountResponse": {
        "type": "object",
        "properties": {
          "data": {
            "$ref": "#/components/schemas/accounts.UpdateVirtualAccountResponse"
          },
          "error": {
            "type": "boolean"
          },
          "message": {
            "type": "string"
          }
        }
      }
    }
  },
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  }
}
```