How it works
When you categorize a transaction, Layer may recommend creating a rule to automatically categorize future matching transactions. This reduces repetitive manual work, keeps categorization consistent over time, and helps users close their books faster. Categorization Rules Suggestion is currently an experimental feature that is not yet available to all customers. Please reach out to your Layer representative to enable this feature. If you are using Layer’s Bank Transactions embedded component, you will see a prompt in the UI to create a rule.

Custom Integration
The guide below is for API consumers building their own transaction categorization UI. If you are using Layer’s Bank Transactions embedded component, you will not need any additional integration to handle rule suggestions.Where suggestions appear
Layer may return a rule suggestion when you categorize transactions through: Both returnBank_Transaction objects. On each transaction, check:
update_categorization_rules_suggestion(nullable)
null, there is no suggestion to show.
Consumer-facing payload
For end-user integration flows, treat this suggestion as:Create_Categorization_Rule_For_Counterparty
id: stable suggestion idsuggestion_prompt: non-null display text you can show in UI when a suggestion is returnednew_rule: prebuilt rule payload to submittransactions_that_will_be_affected: preview of transactions impacted by the rule
Recommended integration flow
- Categorize a transaction.
- If
update_categorization_rules_suggestionis present, show a prompt in UI. - On accept, call Create Categorization Rule with
new_rule. - On decline, call Reject Suggested Categorization Rule with the suggestion id. This marks the suggestion as dismissed and prevents it from being shown again.
- Continue normal categorization workflow regardless of suggestion state.
Example response fragment
Notes
- Categorization Rules Suggestions logic is determined by Layer and may evolve over time. For more details, please reach out to your Layer representative.