Knowledge Base

Bank Sync Setup (Reverse Sync)

Bank Sync Setup (Reverse Sync)

Bank Sync is a powerful feature that monitors your Xero bank accounts for incoming payments and automatically creates corresponding payments in Blesta.

Overview

What Bank Sync Does

  1. Polls your Xero bank accounts for RECEIVE transactions
  2. Matches transactions to Blesta clients
  3. Identifies invoices from payment references
  4. Creates payments in Blesta automatically
  5. Flags exceptions for manual review

When to Use Bank Sync

  • You receive payments directly to your bank (bank transfers, BACS, direct deposits)
  • Payments don't come through a Blesta payment gateway
  • You want to automate payment reconciliation

Enabling Bank Sync

Step 1: Navigate to Bank Sync Settings

Go to Tools → Xero Sync → Bank Sync Settings

Step 2: Configure Settings

Setting Description
Enable Bank Sync Master on/off switch
Start Date Only process transactions after this date
Invoice Reference Pattern Regex to extract invoice numbers

Step 3: Save and Enable

  1. Configure settings
  2. Click Save
  3. Toggle Enable Bank Sync on

Invoice Reference Pattern

The pattern extracts invoice numbers from bank transaction references.

Default Pattern

/(?:INV[#-]?|Invoice[# ]?)?(\d+)/i

This matches:

  • INV1234 → Invoice 1234
  • INV-1234 → Invoice 1234
  • Invoice 1234 → Invoice 1234
  • 1234 → Invoice 1234

Custom Patterns

If your Blesta invoice format is FX-{year}-{num}:

/FX-\d{4}-(\d+)/i

This matches:

  • FX-2024-00123 → Invoice 123

Suggested Pattern

The settings page shows a suggested pattern based on your Blesta invoice format setting.

Bank Accounts

Selecting Accounts to Monitor

  1. Go to Tools → Xero Sync → Bank Accounts
  2. Click Refresh from Xero to fetch your accounts
  3. Enable/disable accounts using the toggle

Which Accounts to Enable

Enable accounts where you receive customer payments:

  • Main business bank account
  • PayPal bank feed
  • Stripe bank feed

Do NOT enable:

  • Credit card accounts
  • Expense accounts
  • Internal transfer accounts

Processing Schedule

Automatic Processing

The cron task runs hourly when enabled:

  1. Go to Settings → Automation in Blesta
  2. Find "Process Xero Bank Transactions"
  3. Ensure it is Enabled

Manual Processing

Trigger processing immediately:

  1. Go to Bank Sync Settings
  2. Click Process Bank Sync Now
  3. Results are displayed on completion

How Matching Works

Step 1: Transaction Retrieved

Bank Sync fetches RECEIVE transactions from enabled accounts.

Step 2: Payee Matching

The transaction's Xero contact is matched to a Blesta client:

  1. Check existing payee mappings
  2. Try matching by email address
  3. If no match, create exception

Step 3: Invoice Matching

The payment reference is parsed to find an invoice:

  1. Apply reference pattern regex
  2. Look up invoice in Blesta
  3. Verify invoice belongs to matched client
  4. If no match, apply as credit or create exception

Step 4: Payment Creation

If all matches succeed:

  1. Payment created in Blesta
  2. Applied to matched invoice (if found)
  3. Transaction marked as synced

Statistics

The Bank Sync Settings page shows:

Stat Description
Transactions Synced Successfully processed
Pending Exceptions Require manual review
Total Amount Synced Sum of synced payments
Please rate this article to help us improve our Knowledge Base.

0 0