onContactMerged( )


Note: This method registers a callback function as an event handler. Subscribe your app to the relevant event via the Webhooks page in the Wix Dev Center to enable it. For more information, see Handle Events With Webhooks.

Triggered when one or more source contacts are merged into a target contact.

Merging contacts triggers these webhooks:

If your app handles the originating merge event, it can ignore update and delete events where originatedFrom is set to merge. When Contact Updated and Contact Deleted are not triggered from a merge, originatedFrom is omitted from their payloads.

Permissions
Manage Members and Contacts - all permissions
Read Members and Contacts - all read permissions
Manage Contacts
Read Contacts
Manage Restaurants - all permissions
Learn more about app permissions.
Method Declaration
Copy
Method Parameters
handlerfunction

handler(event: ContactMergedEnvelope): void | Promise<void>

Did this help?