Meta Webhook Retry Creates Duplicate Leads in CRM
The same contact appears twice after the problem with merging or resuming integration.
Why is there a problem?
Webhook providers can re-deliver the event. If integration treats each POST as a new lead, copies will be created.
Diagnostics and solutions
1. Identify the stable ID of the supplier's event and keep it in the database.
2 . Add UNIQUE limitation to the event identifier to the appropriate extent.
3 . Return a safe result when the event occurs again without doing second assignments or notifications.
4 . Test two parallel POSTs with identical payoad.
5 . Separate the idempotence of delivering from business combining separate queries of the same person.
How to check and avoid what?
A repeated webhook does not increase the number of leads or the number of notifications sent.
Do not delete repetitions only after the phone number: the user could really send two different forms.