LostChurn Docs
Integrations

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

PlatformAuth MethodSync TypeSetup Guide
HubSpotOAuth 2.0Real-time pushHubSpot Integration
SalesforceOAuth 2.0Real-time pushSalesforce Integration
ZapierREST hooksEvent-drivenZapier Integration
n8nWebhook URLEvent-drivenn8n Integration
CustomOutbound webhooksEvent-drivenWebhooks 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

PlatformTypical Latency
HubSpotUnder 5 seconds
SalesforceUnder 5 seconds
ZapierUnder 10 seconds (depends on Zapier plan polling interval)
n8nUnder 5 seconds (instant for webhook triggers)
Custom webhooksUnder 2 seconds

Connecting a CRM

All CRM connections are managed from Settings > CRM in the LostChurn dashboard.

OAuth Platforms (HubSpot, Salesforce)

  1. Navigate to Settings > CRM.
  2. Click Connect next to the platform.
  3. Authorize LostChurn in the OAuth consent screen.
  4. You are redirected back to LostChurn with a confirmation.
  5. 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)

  1. Navigate to Settings > CRM.
  2. Click Connect next to the platform.
  3. Copy the webhook URL or REST hook endpoint provided.
  4. Paste the URL into your Zapier Zap or n8n workflow trigger.
  5. 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.

EventDescription
recovery.startedA new recovery process has begun for a failed payment
recovery.retry_attemptedA silent retry was submitted to the PSP
recovery.succeededPayment was successfully recovered
recovery.failedRecovery exhausted all attempts
recovery.escalatedRecovery moved from silent retry to active dunning
campaign.sentA dunning message (email, SMS) was sent
campaign.openedA dunning email was opened by the recipient
campaign.clickedA link in a dunning message was clicked
customer.payment_method_updatedCustomer updated their card via recovery link
customer.subscription_canceledCustomer canceled via cancel flow
customer.retainedCustomer 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 FieldHubSpot PropertySalesforce FieldType
Customer emailemailEmailStandard
Customer namefirstname / lastnameFirstName / LastNameStandard
Monthly recurring revenuelostchurn_mrrLostChurn_MRR__cCustom
Recovery countlostchurn_recovery_countLostChurn_Recovery_Count__cCustom
Churn risk scorelostchurn_churn_riskLostChurn_Churn_Risk__cCustom
LostChurn customer IDlostchurn_customer_idLostChurn_Customer_ID__cCustom
Last recovery datelostchurn_last_recoveryLostChurn_Last_Recovery__cCustom
Total recovered amountlostchurn_total_recoveredLostChurn_Total_Recovered__cCustom
Current recovery statuslostchurn_recovery_statusLostChurn_Recovery_Status__cCustom

Custom Field Mappings

To add a custom mapping:

  1. Go to Settings > CRM > Field Mapping.
  2. Click Add Mapping.
  3. Select the LostChurn source field.
  4. Select or create the target CRM field.
  5. Choose the sync direction:
    • Push -- LostChurn writes to the CRM field
    • Pull -- LostChurn reads from the CRM field
    • Bidirectional -- most recently updated wins
  6. Click Save.

Conflict Resolution

When both LostChurn and the CRM have values for the same field, conflict resolution rules determine which value wins:

Field CategoryDefault RuleConfigurable
Recovery metrics (MRR, recovery count, churn risk)LostChurn winsNo
Sales fields (lifecycle stage, deal owner, pipeline)CRM winsNo
Contact fields (name, phone, address)Most recently updated winsYes
Custom fieldsMost recently updated winsYes

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__c object 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:

IndicatorMeaning
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:

PlatformRate LimitLostChurn Behavior
HubSpot100-200 req/10s (varies by plan)Queue and throttle with exponential backoff
Salesforce100,000 req/24h (varies by edition)Queue and throttle
ZapierNo limit (REST hooks are push-based)Immediate delivery
n8nNo 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:

  1. Go to Settings > CRM.
  2. Click Disconnect next to the platform.
  3. Choose whether to keep or delete LostChurn custom properties/objects in the CRM.
  4. 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

On this page