Create categorization rule
Creates a new categorization rule for the business.
merchant_type_filter, transaction_description_filter, counterparty_filter, bank_transaction_type_filter).
Applying categorization rules retroactively
The rule can optionally be applied retroactively to existing uncategorized transactions via theapply_retroactively flag.
If apply_retroactively is true, the rule will be applied to existing uncategorized transactions when the rule is created.
If false, the rule will only apply to future matching transactions and the preview is informational only.Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Headers
Content-Type must be set to application/json.
Path Parameters
The UUID of the business.
Body
Parameters for creating or updating a categorization rule. At least one filter must be specified.
Optional name for the rule.
- Account ID
- Account Stable Name
- Exclusion
- Account ID
- Account Stable Name
- Exclusion
- Account ID
- Account Stable Name
- Exclusion
- Account ID
- Account Stable Name
- Exclusion
Whether to apply this rule to existing uncategorized transactions.
External identifier for idempotency. Used for create/upsert operations.
UUID of the suggestion that created this rule (if applicable).
Regex pattern to match against merchant type (minimum 7 characters).
7Regex pattern to match against transaction description (minimum 7 characters).
7UUID of a specific counterparty (merchant/vendor) to match.
Type of bank transaction.
REVENUE, LOAN_DISBURSEMENT, REFUND_RECEIVED, INCOMING_P2P_TRANSFER, INTRA_ACCOUNT_TRANSFER_IN, CHECK_WITHDRAWAL, ATM_DEPOSIT, BANK_DEPOSIT, BANK_VERIFICATION_TRIAL_CREDIT, REVERSAL_IN, CREDIT_CARD_REWARD, CREDIT_CARD_PAYMENT_IN, INTEREST_EARNED, GOVERNMENT_OR_OTHER_GRANT, TAX_REFUND, PURCHASE, REFUND_GIVEN, OUTGOING_P2P_TRANSFER, INTRA_ACCOUNT_TRANSFER_OUT, CHECK_DEPOSIT, CREDIT_CARD_PAYMENT_OUT, ATM_WITHDRAWAL, BANK_WITHDRAWAL, BANKING_FEE, PAYMENT_PROCESSING_FEE, BANK_VERIFICATION_TRIAL_DEBIT, REVERSAL_OUT, LOAN_PAYMENT, TAX_PAYMENT, NOT_ENOUGH_INFORMATION Transaction direction to match.
MONEY_IN, MONEY_OUT Minimum transaction amount in cents.
Maximum transaction amount in cents.
Response
Categorization rule created successfully.
A categorization rule that automatically categorizes transactions matching specified filters.
Unique identifier for the rule.
The business this rule belongs to.
When the rule was created.
When the rule was last updated.
Name of the rule.
- Account ID
- Account Stable Name
- Exclusion
- Account ID
- Account Stable Name
- Exclusion
- Account ID
- Account Stable Name
- Exclusion
- Account ID
- Account Stable Name
- Exclusion
Regex pattern matching merchant type.
Regex pattern matching transaction description.
Information about a transaction counterparty (merchant/vendor).
Type of bank transaction.
REVENUE, LOAN_DISBURSEMENT, REFUND_RECEIVED, INCOMING_P2P_TRANSFER, INTRA_ACCOUNT_TRANSFER_IN, CHECK_WITHDRAWAL, ATM_DEPOSIT, BANK_DEPOSIT, BANK_VERIFICATION_TRIAL_CREDIT, REVERSAL_IN, CREDIT_CARD_REWARD, CREDIT_CARD_PAYMENT_IN, INTEREST_EARNED, GOVERNMENT_OR_OTHER_GRANT, TAX_REFUND, PURCHASE, REFUND_GIVEN, OUTGOING_P2P_TRANSFER, INTRA_ACCOUNT_TRANSFER_OUT, CHECK_DEPOSIT, CREDIT_CARD_PAYMENT_OUT, ATM_WITHDRAWAL, BANK_WITHDRAWAL, BANKING_FEE, PAYMENT_PROCESSING_FEE, BANK_VERIFICATION_TRIAL_DEBIT, REVERSAL_OUT, LOAN_PAYMENT, TAX_PAYMENT, NOT_ENOUGH_INFORMATION Transaction direction that this rule matches.
MONEY_IN, MONEY_OUT Minimum amount in cents.
Maximum amount in cents.