Updates an existing categorization rule. This replaces the entire rule content. The rule can optionally be applied retroactively to existing uncategorized transactions.
Documentation Index
Fetch the complete documentation index at: https://docs.layerfi.com/llms.txt
Use this file to discover all available pages before exploring further.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Content-Type must be set to application/json.
The UUID of the business.
The UUID of the categorization rule.
Parameters for creating or updating a categorization rule. At least one filter must be specified.
Optional name for the rule.
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.
Categorization rule updated 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.
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.