Create Transaction
create_transactionAdd new transactions to YNAB budgets with specified amounts, dates, and accounts. Supports split transactions by setting category to null and providing subtransactions.
Instructions
[1 API call] Create a new transaction. Amounts are in dollars (positive for inflows, negative for outflows). For split transactions, set category_id to null and provide subtransactions.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| budget_id | No | Budget ID or 'last-used' | last-used |
| account_id | Yes | Account ID for the transaction | |
| date | Yes | Transaction date (YYYY-MM-DD) | |
| amount | Yes | Amount in dollars (negative for outflows, e.g., -25.50) | |
| payee_id | No | Payee ID (if known) | |
| payee_name | No | Payee name (will match or create payee) | |
| category_id | No | Category ID (omit for split transactions) | |
| memo | No | Transaction memo | |
| cleared | No | Cleared status | |
| approved | No | Whether the transaction is approved (default: false) | |
| flag_color | No | Flag color | |
| subtransactions | No | Split transaction parts (amounts must sum to the total) |