Skip to content

feat: smart payee & merchant alias management (#114)#758

Open
alexchenai wants to merge 1 commit intorohitdash08:mainfrom
alexchenai:feature/payee-alias-management-114
Open

feat: smart payee & merchant alias management (#114)#758
alexchenai wants to merge 1 commit intorohitdash08:mainfrom
alexchenai:feature/payee-alias-management-114

Conversation

@alexchenai
Copy link
Copy Markdown

Summary

Implements smart payee normalization and custom alias management for clean merchant names.

Features

  • Auto-normalization: 20+ built-in rules (AMZN*MKTP US -> Amazon, NETFLIX.COM -> Netflix)
  • Strips common prefixes (TST*, SQ*, PP*) and suffixes (LLC, Inc, reference numbers)
  • Custom alias CRUD: override any canonical name with a personal alias
  • Bulk normalization API for processing entire transaction lists
  • Alias suggestions: auto-surfaces normalization candidates for user confirmation
  • Per-user alias storage for personalization

API Endpoints

  • GET /api/payees/aliases — list all custom aliases
  • POST /api/payees/aliases — create/update alias {raw_name, alias}
  • DELETE /api/payees/aliases/{canonical} — remove alias
  • POST /api/payees/normalize — bulk normalize {raw_names: [...]}
  • POST /api/payees/suggestions — get alias suggestions {raw_names: [...]}

Tests

9 tests: normalization rules, custom CRUD, bulk normalize, suggestions.

Closes #114

- Auto-normalization of messy merchant names (AMZN*MKTP US -> Amazon)
- 20+ built-in normalization rules for common merchants
- Custom alias CRUD: create, list, delete
- Bulk normalization API for batch transaction processing
- Alias suggestions: surface auto-detections for user confirmation
- Aliases stored per-user for personalization
- 9 tests covering normalization, CRUD, bulk ops, and suggestions

Closes rohitdash08#114
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.

Smart payee & merchant alias management

1 participant