YNAB icon

YNAB

Interact with YNAB (You Need A Budget) API

Actions15

Overview

This node integrates with the YNAB (You Need A Budget) API to manage financial data related to budgets, accounts, transactions, categories, payees, and user information. Specifically, for the Transaction - Delete operation, it allows users to delete a specific transaction from a given budget.

This operation is useful in scenarios where a transaction was entered incorrectly or is no longer relevant and needs to be removed from the budget records. For example, if a duplicate transaction was accidentally created or a transaction was canceled, this node can be used to delete it programmatically within an automated workflow.

Properties

Name Meaning
Budget ID The unique identifier of the budget containing the transaction to delete.
Transaction ID The unique identifier of the transaction that should be deleted from the specified budget.

Output

The output JSON contains the details of the deleted transaction under the data.transaction property. This typically includes all the information about the transaction before deletion, confirming which transaction was removed.

No binary data is output by this node.

Example output structure:

{
  "data": {
    "transaction": {
      "id": "string",
      "account_id": "string",
      "date": "YYYY-MM-DD",
      "amount": number,
      "payee_name": "string",
      "memo": "string",
      "cleared": "cleared|uncleared|reconciled",
      ...
    }
  }
}

Dependencies

  • Requires an active connection to the YNAB API.
  • Requires an API key credential for authentication with the YNAB service.
  • The base URL for API requests is https://api.ynab.com/v1.
  • Proper configuration of the API key credential in n8n is necessary.

Troubleshooting

  • Invalid Budget ID or Transaction ID: If either ID is incorrect or does not exist, the API will return an error indicating the resource was not found. Verify the IDs are correct.
  • Authentication Errors: Missing or invalid API key credentials will cause authentication failures. Ensure the API key is valid and properly configured.
  • Permission Issues: The API key must have sufficient permissions to delete transactions in the specified budget.
  • Network Issues: Connectivity problems may prevent the request from reaching the YNAB API.

Common error messages:

  • "Resource not found": Check that the Budget ID and Transaction ID are correct.
  • "Unauthorized" or "Forbidden": Verify API key validity and permissions.
  • "Bad Request": Confirm that all required parameters are provided and correctly formatted.

Links and References

Discussion