Creating and Managing Vendor Rules
Overview
Vendor rules automate the assignment of vendor codes to bank transactions based on pattern matching. This article explains how to create, edit, and manage vendor rules for maximum matching efficiency.
What Are Vendor Rules?
Vendor rules tell the system how to match bank transaction descriptions to your Accounting CS vendor codes. When a transaction matches a rule's pattern, the system automatically assigns the corresponding vendor code.
Example Rule
- Pattern: "AMZN" or "Amazon"
- Vendor Code: AMAZON
- Result: Any transaction containing "AMZN" or "Amazon" gets vendor code AMAZON
Accessing Vendor Rules
- Log into the Accounting CS App
- Click Settings (gear icon, top right)
- Scroll to Vendor Rules section
- Click Manage Vendor Rules
Creating a New Vendor Rule
Method 1: During Transaction Review (Recommended)
- While reviewing transactions, make a vendor correction
- After saving, system prompts: "Create rule from this correction?"
- Click Yes
- System auto-creates a rule based on the transaction description
- Rule is added with medium priority
Method 2: Manual Creation
- Go to Settings > Vendor Rules
- Click Add New Rule
- Fill in the form:
- Vendor Code - Your Accounting CS vendor code
- Vendor Name - Display name (optional)
- Pattern - Text to match in transaction descriptions
- Priority - How important this rule is (1-10, with 10 being highest)
- Click Save Rule
Pattern Matching
How Patterns Work
- Case-insensitive - "WALMART" matches "walmart" and "Walmart"
- Partial match - "TARGET" matches "TARGET #1234" and "TARGET ONLINE"
- Multiple patterns - Separate with commas: "AMZN,Amazon,AMZ"
- Wildcards - Use * for any characters: "SQ *" matches all Square transactions
Pattern Examples
Single Pattern:
- Pattern:
COSTCO
- Matches: "COSTCO WHOLESALE", "COSTCO #123", "COSTCO GAS"
Multiple Patterns:
- Pattern:
AMZN,Amazon,AMZ,AWS
- Matches: "AMZN Marketplace", "Amazon.com", "AWS Services"
Wildcard Pattern:
- Pattern:
SQ *
- Matches: "SQ *COFFEE SHOP", "SQ *RESTAURANT"
Rule Priority System
Priority Levels
- 10 (Highest) - Critical vendors, always takes precedence
- 7-9 (High) - Frequent vendors, high-value transactions
- 4-6 (Medium) - Standard vendors
- 1-3 (Low) - Infrequent vendors
How Priority Works
When multiple rules match a transaction:
- System checks all matching rules
- Selects the rule with highest priority
- Applies that rule's vendor code
Example:
- Transaction: "AMAZON PRIME"
- Rule 1: Pattern "AMAZON" → Vendor: AMAZON → Priority: 5
- Rule 2: Pattern "PRIME" → Vendor: SUBSCRIPT → Priority: 3
- Result: Uses Rule 1 (higher priority) → Assigns vendor AMAZON
Editing Existing Rules
- Go to Settings > Vendor Rules
- Find the rule in the list (use search box if needed)
- Click on the rule row
- Edit any field:
- Vendor code
- Pattern
- Priority
- Click Save
- Changes apply to future transactions only (not retroactive)
Deleting Rules
- Find the rule in the vendor rules list
- Click the Delete icon (trash can)
- Confirm deletion
- Rule is removed immediately
Note: Deleting a rule doesn't affect already-matched transactions.
Testing Your Rules
Test with Sample Transaction
- Go to Review & Export
- Load a small batch of transactions
- Look for transactions that should match your new rule
- Verify they're assigned the correct vendor code
- Check the status indicator (should show "Rule Match")
Refining Rules
If a rule isn't matching as expected:
- Pattern too specific? Remove unnecessary characters
- Pattern too broad? Add more specific text
- Priority too low? Increase priority to override other rules
Best Practices
Start Simple
- Begin with your most common vendors (20-30 rules)
- Add more rules as you encounter new vendors
- Let the system create rules from corrections (faster than manual)
Pattern Tips
- Use unique identifiers - "SQ *" for Square rather than "COFFEE"
- Include variations - "COSTCO,COSTCO WHOLESALE,COSTCO GAS"
- Avoid generic terms - Don't use patterns like "INC" or "LLC"
- Test before committing - Verify pattern matches expected transactions
Priority Guidelines
- Use priority 10 sparingly - Only for absolutely critical vendors
- Most rules: priority 5-7 - Standard matching
- Lower priority for rare vendors - Prevents accidental matches
- Adjust as needed - Increase priority if a rule is frequently overridden
Common Vendor Rule Patterns
Office Supplies
- Staples:
STAPLES
- Office Depot:
OFFICE DEPOT,OFFICEDEPOT
- Amazon Business:
AMZN,Amazon
Utilities
- Electric:
ELECTRIC,POWER,UTILITY (if provider-specific, use provider name)
- Internet:
COMCAST,XFINITY,SPECTRUM,COX
- Phone:
VERIZON,ATT,T-MOBILE
Payment Processors
- Square:
SQ *,SQUARE
- Stripe:
STRIPE
- PayPal:
PAYPAL
Importing Rules from FIRMADMIN
If you use Accounting CS FIRMADMIN, you can import existing vendor mappings (see Article 80: How to Import Clients and Vendors from Accounting CS FIRMADMIN).
Rule Maintenance
Monthly Review
- Check for vendors with low match rates
- Identify frequently manually-corrected vendors
- Update patterns to improve matching
- Remove obsolete rules
Merge Duplicate Rules
If you find multiple rules for the same vendor:
- Combine patterns into a single rule
- Delete the duplicate rules
- Use the highest priority from the set
Need Help?
For assistance with vendor rules, contact support@ledgersync.com
Updated: March 19, 2026
Related Articles
Creating and Managing Vendor Rules
Overview Vendor rules are the foundation of automatic transaction categorization in LedgerSync for Accounting CS. By creating vendor rules, you teach the system to recognize transaction patterns and automatically assign the correct vendor name and GL ...
Creating and Managing GL Code Rules
Overview GL Code rules in LedgerSync for Accounting CS help automatically assign correct GL codes to transactions. This article explains how to create and manage GL code rules. Understanding GL Codes GL codes are numeric identifiers that categorize ...
Working with Client Rules
Working with Client Rules *The following information is based on the idea that you have already connected a few of your Ledgersync clients to QuickBooks Online and gone through the initial setup of the integration. Below are the instruction on how to ...
Working with Global Rules and Global Categories (Video)
Working with Global Rules and Global Categories *The following information is based on the idea that you have already connected a few of your Ledgersync clients to QuickBooks Online and gone through the initial setup of the integration. Below are the ...
Common Questions About LedgerSync for Accounting CS
Frequently Asked Questions Quick answers to common questions about LedgerSync for Accounting CS. Vendor Matching Q: Why isn't my vendor matching? A: No vendor rule exists. Create a rule in Settings or correct the transaction during review. Q: What's ...