taxsort_save_rule
Create a classification rule.
Provide description_pattern (regex matched case-insensitively against the transaction description), category, and subcategory. Optionally add amount_operator (lt, lte, gt, gte, eq, neq) and amount_value to filter by amount. When the compound constraint matches, category, subcategory, and optionally description (new_description) are written.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| npub | No | Required. Your Nostr public key (npub1...) for credit billing. | |
| category | Yes | ||
| dpop_token | No | ||
| session_id | No | ||
| subcategory | Yes | ||
| amount_value | No | ||
| amount_operator | No | ||
| new_description | No | ||
| description_pattern | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||