Skip to main content

Leads linked to wrong insureds when client has no email

When a risk profile is sent to AgencyZoom for a client with no email address, the new lead can be matched and linked to an existing unrelated lead.

Symptoms include activity feeds showing another insured’s lead changes and leads appearing to vanish due to silent merges.

Likely root cause: AgencyZoomLeadService::findPersonalLeadByEmail() calls the AgencyZoom API with customerEmail: null, which AgencyZoom treats as no filter; the first returned lead is stored as agency_zoom_lead_id. The searchLeads(customerEmail: null) response is also cached for 3 hours per team, causing repeated wrong matches.

Proposed fix (in PR): early return null when email is null/empty so clients without email always create a fresh lead.

Status: 🔥 Released

Log in to comment and vote

No comments yet

Be the first to share your thoughts.