HubSpot App
Install LostChurn from the HubSpot Marketplace to sync recovery data with contacts, deals, and timelines.
The LostChurn HubSpot App syncs recovery data into your HubSpot CRM automatically. Contacts get custom recovery properties, successful recoveries create deals, and every recovery event appears on the contact timeline.
What You Get
After installation:
- Contact Properties -- Custom properties added to every contact:
lostchurn_mrr,lostchurn_recovery_count,lostchurn_churn_risk, andlostchurn_customer_id. - Deal Properties -- Recovery-specific properties on deals: recovery status, decline code, and retry count.
- Revenue Recovery Pipeline -- A dedicated deal pipeline with stages matching the recovery lifecycle (In Progress, Closed Won, Closed Lost).
- Timeline Events -- Visual recovery history on each contact's timeline showing campaign starts, emails sent, retries attempted, and outcomes.
- Real-Time Sync -- Updates push to HubSpot within seconds of events occurring in LostChurn.
Install from the HubSpot Marketplace
- Visit the LostChurn app on the HubSpot Marketplace.
- Click Install app.
- Sign in to HubSpot if prompted.
- Review the requested OAuth scopes:
crm.objects.contacts.readandcrm.objects.contacts.write-- create and update contactscrm.objects.deals.readandcrm.objects.deals.write-- create recovery dealstimeline-- log recovery events on contact timelines
- Click Grant access to authorize.
- You are redirected back to LostChurn with your HubSpot portal ID confirmed.
LostChurn uses OAuth 2.0 with automatic 6-hour token refresh. You do not need to manage API keys or rotate credentials manually.
Prerequisites
- A HubSpot account with Marketing Hub or Sales Hub (Starter plan or above)
- Admin access to your HubSpot portal
- A LostChurn account with at least one active payment processor connected
How the Sync Works
Contacts
Contacts are matched by email address and upserted (created if new, updated if existing).
| LostChurn Field | HubSpot Property | Direction |
|---|---|---|
| Customer email | email | Push |
| Customer name | firstname / lastname | Push |
| Monthly recurring revenue | lostchurn_mrr (custom) | Push |
| Recovery count | lostchurn_recovery_count (custom) | Push |
| Churn risk score | lostchurn_churn_risk (custom) | Push |
| LostChurn customer ID | lostchurn_customer_id (custom) | Push |
Custom properties are created automatically when you first connect.
Deals
When a recovery succeeds, a Deal is created in the Revenue Recovery pipeline:
- Deal name:
Recovery - {customer_email} - {date} - Amount: The recovered payment amount
- Stage progression:
- Recovery Started -- In Progress
- Retry Attempted -- In Progress
- Recovery Succeeded -- Closed Won
- Recovery Exhausted -- Closed Lost
Timeline Events
Key recovery events appear as visual entries on the contact timeline:
- Recovery campaign started
- Email or SMS sent (with template name)
- Payment retry attempted (with result)
- Recovery succeeded or failed
- Customer updated payment method
Timeline events are created using HubSpot's Timeline Events API and appear alongside other CRM activity.
Webhook Receiver
The LostChurn HubSpot App includes a webhook endpoint that receives outbound events from LostChurn. When a recovery event occurs:
- LostChurn sends the event to the HubSpot App's webhook handler.
- The handler verifies the webhook signature using HMAC-SHA256.
- The contact is upserted in HubSpot with updated recovery properties.
- If the recovery succeeded, a deal is created in the Revenue Recovery pipeline.
- A timeline event is logged on the contact record.
Sync Behavior
- Real-time: Events push to HubSpot within seconds of occurring in LostChurn.
- Batch sync: Trigger a full sync from Settings > CRM > HubSpot > Re-sync All. Records are processed in batches of 100.
- Conflict resolution: Recovery fields (MRR, recovery count, churn risk) -- LostChurn wins. Sales fields (lifecycle stage, deal owner) -- HubSpot wins. Contact fields (name, phone) -- most recently updated wins.
Troubleshooting
Contact not syncing
- Verify the customer has a valid email address in LostChurn.
- Check Settings > CRM > HubSpot > Sync Log for error details.
- Ensure your HubSpot plan allows the required number of contacts.
Deal not created
- Confirm the "Revenue Recovery" pipeline exists in HubSpot. LostChurn creates it automatically, but it may have been deleted.
- Partial recoveries do not create deals by default. Only fully succeeded recoveries generate deals.
Timeline events missing
- Verify the
timelinescope was granted during OAuth authorization. - Check the sync log for timeline API errors. HubSpot rate limits timeline event creation.
OAuth token expired
LostChurn refreshes tokens automatically every 6 hours. If you see an authentication error:
- Go to Settings > CRM > HubSpot in LostChurn.
- Click Reconnect.
- Complete the OAuth flow again.
Disconnecting
- Go to Settings > CRM > HubSpot in LostChurn.
- Click Disconnect.
- Choose whether to keep or delete LostChurn custom properties in HubSpot.
Existing data in HubSpot is preserved unless you explicitly remove custom properties.
Next Steps
- Salesforce integration -- alternative CRM integration
- CRM sync settings -- configure sync behavior and field mapping
- Zapier integration -- connect LostChurn to 6,000+ apps