Close a dedicated virtual account
close_virtual_accountClose a dedicated virtual account to stop it receiving money by supplying a reason. Dynamic accounts cannot be closed this way, and already closed accounts remain unchanged.
Instructions
Close a dedicated virtual account.
Close a dedicated virtual account so it stops receiving money for you. Dynamic accounts can’t be closed this way (400 invalid_operation): they close with their payment. Closing an already closed account returns it unchanged.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"id": "<id>",
"reason": "<reason>"
},
"name": "close_virtual_account"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The virtual account id (`va_…`). | |
| reason | Yes | ||
| idempotency_key | No | Optional. A unique key for this request; retrying with the same key returns the original result instead of acting twice. One is generated if omitted. |