Merge Portfolio Transactions
merge_transactionsDestructively combine wallet movements from several accounting transactions into one target transaction and reclassify it; preview the grouping first, then track the queued requestId.
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": {
"workspaceRef": "<workspaceRef>",
"portfolioRef": "<portfolioRef>",
"transactionId": "<transactionId>",
"operations": "<operations>",
"operationType": "<operationType>"
},
"name": "merge_transactions"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| reason | No | Optional immutable root reason. Nonempty bytes are preserved exactly; use ptx:<uuid> for transaction references. | |
| subType | No | Optional operation sub-type | |
| operations | Yes | Operations to merge into the target | |
| portfolioRef | Yes | Portfolio exact name or slug | |
| workspaceRef | Yes | Workspace exact name or slug | |
| operationType | Yes | Accounting operation type for the merged transaction | |
| transactionId | Yes | Target transaction the operations are merged into |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | ||
| status | Yes | ||
| success | No | ||
| requestId | No | ||
| transactionId | Yes |