CRM Sync Overview
Unified guide to syncing LostChurn recovery data with HubSpot, Salesforce, Zapier, n8n, and custom CRM integrations.
LostChurn syncs recovery data with your CRM and automation platforms so that every team -- sales, support, success -- has visibility into payment recovery status. This guide covers the shared architecture, field mapping configuration, and links to platform-specific setup guides.
Supported Platforms
| Platform | Auth Method | Sync Type | Setup Guide |
|---|---|---|---|
| HubSpot | OAuth 2.0 | Real-time push | HubSpot Integration |
| Salesforce | OAuth 2.0 | Real-time push | Salesforce Integration |
| Zapier | REST hooks | Event-driven | Zapier Integration |
| n8n | Webhook URL | Event-driven | n8n Integration |
| Custom | Outbound webhooks | Event-driven | Webhooks API |
How CRM Sync Works
LostChurn's CRM sync is event-driven. When a recovery event occurs (payment failed, retry attempted, recovery succeeded, etc.), LostChurn pushes the update to all connected CRM platforms in real time.
Payment Event → LostChurn Recovery Pipeline → CRM Dispatcher
├── HubSpot (contacts, deals, timeline)
├── Salesforce (custom objects, Apex webhooks)
├── Zapier (REST hooks → 6,000+ apps)
├── n8n (webhook triggers → custom workflows)
└── Custom (outbound webhooks)Sync Latency
| Platform | Typical Latency |
|---|---|
| HubSpot | Under 5 seconds |
| Salesforce | Under 5 seconds |
| Zapier | Under 10 seconds (depends on Zapier plan polling interval) |
| n8n | Under 5 seconds (instant for webhook triggers) |
| Custom webhooks | Under 2 seconds |
Connecting a CRM
All CRM connections are managed from Settings > CRM in the LostChurn dashboard.
OAuth Platforms (HubSpot, Salesforce)
- Navigate to Settings > CRM.
- Click Connect next to the platform.
- Authorize LostChurn in the OAuth consent screen.
- You are redirected back to LostChurn with a confirmation.
- LostChurn automatically creates custom properties/objects in the CRM.
OAuth tokens are automatically refreshed. You do not need to manage credentials or handle token expiry manually.
Automation Platforms (Zapier, n8n)
- Navigate to Settings > CRM.
- Click Connect next to the platform.
- Copy the webhook URL or REST hook endpoint provided.
- Paste the URL into your Zapier Zap or n8n workflow trigger.
- Select which event types to subscribe to.
For detailed setup instructions, see the platform-specific guides linked above.
Event Types
All CRM sync platforms receive the same set of event types. You can subscribe to all events or select specific types per platform.
| Event | Description |
|---|---|
recovery.started | A new recovery process has begun for a failed payment |
recovery.retry_attempted | A silent retry was submitted to the PSP |
recovery.succeeded | Payment was successfully recovered |
recovery.failed | Recovery exhausted all attempts |
recovery.escalated | Recovery moved from silent retry to active dunning |
campaign.sent | A dunning message (email, SMS) was sent |
campaign.opened | A dunning email was opened by the recipient |
campaign.clicked | A link in a dunning message was clicked |
customer.payment_method_updated | Customer updated their card via recovery link |
customer.subscription_canceled | Customer canceled via cancel flow |
customer.retained | Customer accepted a retention offer |
Field Mapping Configuration
LostChurn maps recovery data to CRM fields automatically for HubSpot and Salesforce. You can customize these mappings from Settings > CRM > Field Mapping.
Default Field Mappings
| LostChurn Field | HubSpot Property | Salesforce Field | Type |
|---|---|---|---|
| Customer email | email | Email | Standard |
| Customer name | firstname / lastname | FirstName / LastName | Standard |
| Monthly recurring revenue | lostchurn_mrr | LostChurn_MRR__c | Custom |
| Recovery count | lostchurn_recovery_count | LostChurn_Recovery_Count__c | Custom |
| Churn risk score | lostchurn_churn_risk | LostChurn_Churn_Risk__c | Custom |
| LostChurn customer ID | lostchurn_customer_id | LostChurn_Customer_ID__c | Custom |
| Last recovery date | lostchurn_last_recovery | LostChurn_Last_Recovery__c | Custom |
| Total recovered amount | lostchurn_total_recovered | LostChurn_Total_Recovered__c | Custom |
| Current recovery status | lostchurn_recovery_status | LostChurn_Recovery_Status__c | Custom |
Custom Field Mappings
To add a custom mapping:
- Go to Settings > CRM > Field Mapping.
- Click Add Mapping.
- Select the LostChurn source field.
- Select or create the target CRM field.
- Choose the sync direction:
- Push -- LostChurn writes to the CRM field
- Pull -- LostChurn reads from the CRM field
- Bidirectional -- most recently updated wins
- Click Save.
Conflict Resolution
When both LostChurn and the CRM have values for the same field, conflict resolution rules determine which value wins:
| Field Category | Default Rule | Configurable |
|---|---|---|
| Recovery metrics (MRR, recovery count, churn risk) | LostChurn wins | No |
| Sales fields (lifecycle stage, deal owner, pipeline) | CRM wins | No |
| Contact fields (name, phone, address) | Most recently updated wins | Yes |
| Custom fields | Most recently updated wins | Yes |
Platform-Specific Features
HubSpot
- Contacts: Upserted by email address with custom LostChurn properties
- Deals: Created automatically in a "Revenue Recovery" pipeline with stage progression
- Timeline: Recovery events logged as timeline activities on contacts
- Batch sync: Full re-sync available from Settings for initial data population
See HubSpot Integration for complete setup and configuration.
Salesforce
- Custom objects:
LostChurn_Recovery__cobject created automatically - Contact sync: Standard Contact fields plus custom LostChurn fields
- Apex webhooks: Recovery events trigger Apex webhook handlers for custom automation
- Reports: LostChurn data is available in Salesforce Reports and Dashboards
See Salesforce Integration for complete setup and configuration.
Zapier
- REST hook endpoints: LostChurn registers REST hooks per Zap for instant triggering
- Event types: All recovery and campaign events available as Zapier triggers
- Authentication: API key-based authentication using your LostChurn API key
- Actions available: Trigger payment retry, get customer details, list recovery campaigns
See Zapier Integration for complete setup and configuration.
n8n
- Webhook URL configuration: LostChurn sends events to your n8n webhook trigger node
- Example workflows: Pre-built workflows for Slack alerts, email notifications, CRM updates
- Self-hosted support: Works with both n8n Cloud and self-hosted n8n instances
- Webhook guide: Detailed webhook node configuration in the n8n Webhooks guide
See n8n Integration for complete setup and configuration.
Monitoring Sync Health
View the health of all CRM connections from Settings > CRM:
| Indicator | Meaning |
|---|---|
| Green "Connected" | Active connection, syncing normally |
| Yellow "Degraded" | Connection active but experiencing errors (e.g., rate limits hit) |
| Red "Disconnected" | Connection lost, requires re-authorization |
| Gray "Not configured" | Platform not yet connected |
Each connected platform shows:
- Last sync timestamp -- when the most recent event was successfully pushed
- Events synced (24h) -- count of events synced in the past 24 hours
- Error count -- number of failed syncs with expandable error details
- Sync log -- searchable history of all sync operations
Rate Limit Handling
LostChurn automatically respects the rate limits of each connected CRM:
| Platform | Rate Limit | LostChurn Behavior |
|---|---|---|
| HubSpot | 100-200 req/10s (varies by plan) | Queue and throttle with exponential backoff |
| Salesforce | 100,000 req/24h (varies by edition) | Queue and throttle |
| Zapier | No limit (REST hooks are push-based) | Immediate delivery |
| n8n | No limit (webhooks are push-based) | Immediate delivery |
When rate limits are hit, LostChurn queues the updates and retries with exponential backoff. No data is lost. Events are delivered in order once the rate limit window resets.
Disconnecting a CRM
To disconnect a CRM platform:
- Go to Settings > CRM.
- Click Disconnect next to the platform.
- Choose whether to keep or delete LostChurn custom properties/objects in the CRM.
- Confirm the disconnection.
Disconnecting stops all data sync. Existing data in the CRM is not deleted unless you explicitly choose to remove custom properties.
Building Custom Integrations
If your CRM or automation platform is not listed above, you can build a custom integration using LostChurn's outbound webhooks. Subscribe to the event types you need and process the webhook payloads in your own middleware.
For full webhook payload documentation, signature verification, and retry policy, see the Webhooks API reference.
Next Steps
- HubSpot Integration -- detailed HubSpot setup and sync configuration
- Salesforce Integration -- Salesforce custom objects and Apex automation
- Zapier Integration -- connect LostChurn to 6,000+ apps
- n8n Integration -- webhook-based automation workflows
- Webhooks API -- build custom integrations with outbound webhook events