txn_bulk_associate
Links every transaction matching your filters to one customer or vendor in a single atomic batch. Run a dry run first to preview the selection, then apply it with the returned token.
Instructions
Link every transaction matching the txn_list filters to one active customer or vendor, atomically and up to 500 transactions. Call with dry_run first and pass its selection_token to apply exactly those transactions. Transactions already linked to this counterparty are unchanged, and transactions linked to another are skipped unless replace_existing is true; association reports newly_linked, already_linked, replaced and skipped_linked_elsewhere. Needs a narrowing filter. The selection_token covers each transaction's current link. If single-line guards refuse transactions, nothing is written and details.blocked_lines names each one. Proposal-only access queues one change for the frozen transactions.
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": {
"company": "<company>",
"counterparty": "<counterparty>"
},
"name": "txn_bulk_associate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | Last transaction date to match (inclusive). | |
| from | No | First transaction date to match (inclusive). | |
| meta | No | Exact `KEY=VALUE` matches on top-level metadata keys, combined with AND. | |
| account | No | Optional entry account that matched transactions must use. | |
| company | Yes | ||
| dry_run | No | Validate the batch and return the matched count, totals, a sample and a `selection_token` without writing. | |
| currency | No | Currency code. Required with an amount filter if the company uses multiple currencies. | |
| metadata | No | Case-insensitive substring of the transaction metadata. | |
| amount_eq | No | Exact entry amount in major units. | |
| amount_gt | No | Exclusive minimum entry amount in major units. | |
| amount_lt | No | Exclusive maximum entry amount in major units. | |
| direction | No | ||
| reference | No | Exact reference of the original transactions to match. | |
| description | No | Case-insensitive substring of the transaction description. | |
| counterparty | Yes | Active customer or vendor to link to each matched transaction. | |
| tax_category | No | Exact entry tax category to match. | |
| selection_token | No | The `selection_token` from a dry run. If the filters now match other lines, nothing is written and `SELECTION_CHANGED` is returned. | |
| replace_existing | No | Replace links to other customers or vendors. By default those transactions are skipped and counted. |