Get transaction
get_transactionRetrieve a single YNAB transaction by its ID, including all split details. Use it to inspect one transaction's full breakdown within a budget.
Instructions
Get one transaction, including the parts of a split.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| transaction_id | Yes | Transaction to get (required) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Unique transaction identifier | |
| date | Yes | Transaction date | |
| flag | No | Flag as 'Name (Color)' format | |
| memo | No | User-entered memo | |
| amount | Yes | Amount in currency units (negative = spending, positive = income) | |
| cleared | Yes | Cleared status: 'cleared', 'uncleared', or 'reconciled' | |
| approved | Yes | Whether the transaction is approved | |
| payee_id | No | Payee ID | |
| account_id | Yes | Account ID | |
| payee_name | No | Payee name | |
| category_id | No | Category ID | |
| account_name | No | Account name | |
| category_name | No | Category name | |
| subtransactions | No | The parts of a split transaction | |
| transfer_account_id | No | For a transfer, the other account | |
| parent_transaction_id | No | Parent transaction ID if this is a part of a split | |
| import_payee_name_original | No | For an imported transaction, the payee exactly as the bank wrote it. Useful for working out the real payee and category. |