We merge duplicate Contacts using the web interface.
We have an internal API action that keeps a list of Contacts with their Email and Contact ID upon registration. However, when a user registers using their duplicate Contact record, and then we merge it with their old Contact record, this Contact used on the registration becomes a dangling record (now a missing Contact ID in Keap) in our internal API database.
How can I use the REST Hooks to update the Contact record on our local database? Is the "contact.edit " event triggered when the Contacts are merged?
I’m not terribly familiar with that part of the codebase, but from a quick perusal of the source it looks like we should be throwing contact.edit hook events any time the Contact is saved, including during merges.