Get transactions
get_transactionsRetrieves YNAB plan transactions, excluding pending ones, and filters by transaction, account, category, payee, or month; returns all plan transactions when no scope filter is provided.
Instructions
Consolidated read access to transactions, excluding pending ones. Provide at most one scope filter -- checked in this priority order: transaction_id > account_id > category_id > payee_id > month. With no scope filter, returns all plan transactions. Covers GET /plans/{plan_id}/transactions, /accounts/{account_id}/transactions, /categories/{category_id}/transactions, /payees/{payee_id}/transactions, /months/{month}/transactions, and /transactions/{transaction_id}.
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": {
"plan_id": "<plan_id>"
},
"name": "get_transactions"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | No | ||
| month | No | The plan month in ISO format (e.g. 2024-12-01), or "current" for the current calendar month (UTC). | |
| plan_id | Yes | The id of the plan (formerly "budget"). Use "last-used" for the most recently used plan, or "default" if default plan selection is enabled for this token. | |
| payee_id | No | ||
| account_id | No | ||
| since_date | No | ISO date. Only transactions on or after this date. Defaults to one year ago when unscoped. | |
| until_date | No | ISO date. Only transactions on or before this date. | |
| category_id | No | ||
| transaction_id | No | Fetch a single transaction by id. Ignores all other filters. | |
| last_knowledge_of_server | No |