Manual Sync Operations
The Manual Sync page allows you to synchronize entities on-demand and perform bulk operations.
Accessing Manual Sync
Navigate to Tools → Xero Sync → Manual Sync
Unsynced Counts
The page displays counts of entities not yet synced:
- Contacts: Blesta clients without Xero mapping
- Invoices: Invoices not yet in Xero
- Payments: Payments not yet in Xero
Single Entity Sync
Sync a specific entity by ID:
- Select Entity Type (Contact, Invoice, or Payment)
- Enter the Blesta ID
- Click Sync Now
Finding Entity IDs
- Client ID: Visible in the URL when viewing a client
- Invoice ID: Shown on the invoice or in the URL
- Transaction ID: Visible on the payment/transaction page
Batch Sync Operations
Sync All Contacts
Syncs all unsynced clients to Xero:
- Click Sync All Contacts
- Processing begins immediately
- Results show success/failure counts
Tip: Always sync contacts before invoices, as invoices require the contact to exist in Xero.
Sync All Invoices
Syncs all unsynced invoices:
- Click Sync All Invoices
- Contacts are created automatically if missing
- Results show success/failure counts
Sync All Payments
Syncs all unsynced payments:
- Click Sync All Payments
- Invoices must already be synced
- Results show success/failure counts
Full Sync
Syncs everything in the correct order:
- Click Sync Everything
- Contacts sync first
- Then invoices
- Finally payments
- Complete results displayed
Skip Historical Data
Exclude old records from sync to avoid syncing years of history.
How It Works
Records created before the specified date are marked as "skipped" and will not appear in unsynced counts or be included in batch operations.
Configuration
- Enter a Date (records before this are skipped)
- Select what to skip:
- Contacts - Skip old clients
- Invoices - Skip old invoices
- Payments - Skip old payments
- Click Skip Historical
Example Use Case
You started using Blesta in 2020 but only want to sync 2024 onwards:
- Enter date: 2024-01-01
- Select all three entity types
- Click Skip Historical
- Now batch sync will only process 2024+ records
Note: Skipping is reversible. Use "Reset Sync State" on the Settings page to clear all mappings including skipped records.
API Rate Limiting
Xero has API rate limits. During large sync operations:
- The plugin automatically handles rate limits
- You may see delays during processing
- Check logs if operations seem slow
Batch Processing
Contacts are synced in batches of 50 to minimize API calls. This dramatically reduces sync time for large client bases.
Best Practices
Initial Setup
- Skip historical data if you have years of records
- Sync contacts first
- Sync invoices second
- Sync payments last
Ongoing Use
- Let automatic sync handle new entities
- Use manual sync only for specific fixes
- Check queue page for any failed items
Large Databases
For 1000+ clients/invoices:
- Use Skip Historical for old data
- Run batch syncs during off-peak hours
- Monitor the queue for any failures
- Consider syncing in stages