Skip to content

Conversation

@deanlongstaff
Copy link

@deanlongstaff deanlongstaff commented Oct 3, 2025

Add support for a new OMIT_IMPORT_ID environment variable to allow webhook transactions to be treated as user-entered rather than imported transactions.

When OMIT_IMPORT_ID is set to true:

  • Monzo and Starling webhook controllers pass omit_import_id: true to webhook classes
  • Starlingv2 controller passes nil as import_id to TransactionCreator
  • Transactions become eligible for matching against future imports via Direct Import or other means

This enables transaction deduplication by allowing webhook transactions to be matched with later Direct Import/File Based Import transactions that have the same amount and date (±10 days).

Updated controllers:

  • MonzoController: Added omit_import_id parameter
  • StarlingController: Added omit_import_id parameter
  • Starlingv2Controller: Added conditional import_id logic

Add support for a new `OMIT_IMPORT_ID` environment variable to allow webhook transactions to be treated as user-entered rather than imported transactions.

When OMIT_IMPORT_ID is set:
  - Monzo and Starling webhook controllers pass omit_import_id: true to webhook classes
  - Starlingv2 controller passes nil as import_id to TransactionCreator
  - Transactions become eligible for matching against future imports via Direct Import or other means

This enables transaction deduplication by allowing webhook transactions to be matched with later Direct Import/File Based Import transactions that have the same amount and date (±10 days).

Updated controllers:
  - MonzoController: Added omit_import_id parameter
  - StarlingController: Added omit_import_id parameter
  - Starlingv2Controller: Added conditional import_id logic
@deanlongstaff
Copy link
Author

This PR is dependent on a seperate PR in the f2ynab library

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant