txn_bulk_attribute
Bulk-assign the full amount of up to 500 filtered account entries to one project atomically; dry-run first, then apply the returned selection token to confirm exactly those entries.
Instructions
Attribute the full amount of every entry on account that matches the txn_list filters to one project, atomically and up to 500 entries. Call with dry_run first and pass its selection_token to apply exactly those entries. The live lines of standing recategorizations are included. Entries already attributed in full to the project are skipped, and entries attributed to another project are kept unless replace_existing is true (a replacement needs a later date); attribution reports newly_attributed, already_attributed, replaced and skipped_attributed_elsewhere. The selection_token covers each entry's current attribution. If single-line guards refuse entries, nothing is written and details.blocked_lines names each one. Proposal-only access queues one change for the frozen entries.
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>",
"account": "<account>",
"project": "<project>"
},
"name": "txn_bulk_attribute"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | Last transaction date to match (inclusive). | |
| date | No | YYYY-MM-DD effective date. Defaults to each entry's transaction date. | |
| from | No | First transaction date to match (inclusive). | |
| meta | No | Exact `KEY=VALUE` matches on top-level metadata keys, combined with AND. | |
| account | Yes | Revenue or expense account. Selects the entry to attribute in each matched transaction. | |
| company | Yes | ||
| dry_run | No | Validate the batch and return the matched count, totals, a sample and a `selection_token` without writing. | |
| project | Yes | Project to receive the full amount of each matched entry. | |
| billable | No | Whether each split may be billed to the project's customer. Defaults to internal. | internal |
| 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. | |
| 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 attributions to other projects. By default those entries are skipped and counted. |