getTransactions
Retrieve non-pending transactions from a YNAB plan. Filter by type, date range, or server knowledge to get only the records you need.
Instructions
Returns plan transactions, excluding any pending 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": {
"plan_id": "<plan_id>"
},
"name": "getTransactions"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | No | If specified, only transactions of the specified type will be included. "uncategorized" and "unapproved" are currently supported. | |
| plan_id | Yes | The id of the plan. "last-used" can be used to specify the last used plan and "default" can be used if default plan selection is enabled (see: https://api.ynab.com/#oauth-default-plan). | |
| since_date | No | If specified, only transactions on or after this date will be included. The date should be ISO formatted (e.g. 2016-12-30). Defaults to one year ago when not specified. | |
| until_date | No | If specified, only transactions on or before this date will be included. The date should be ISO formatted (e.g. 2016-12-30). | |
| last_knowledge_of_server | No | The starting server knowledge. If provided, only entities that have changed since `last_knowledge_of_server` will be included. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes |