Resolve category
Finds the one category a name means, for a search, a total or a write, so a caller can say “bank costs” instead of looking up a cat_ ID. Nothing is stored. It is a POST because it may ask Finta’s categorization model, which a GET never does.
An exact name, ignoring case and extra spaces, is always used. Otherwise Finta’s model picks the category, when this feature’s model key is configured, and the rule depends on use: search takes a pick the model is at least 70% sure of, counting the categories under it, so it can be a parent; total takes only a category the model chose by itself with at least 70%, never a parent because of its subcategories; write takes only a category the model chose by itself with at least 90%. When the model isn’t available or isn’t sure, search and total use the one category whose name is close enough; write never does. Anything else returns 404 resource_missing with up to five suggestions; for a write, an exact parent that can’t take transactions lists its subcategories.
search matches what GET /transactions takes as category_id, total what the totals endpoints take, and write the categories a transaction can be categorized as. It needs the permission of that read or write: Transactions: View for search, Reports: View for total, Transactions: Manage for write. Without it, 403 insufficient_permission. A read-only connection can call it.
Authorizations
Body
Response
The category the name means
The category a name means, from POST /categories/resolve.