Learn how to setup a (bi-directional) contact sync between Hellomateo and an external system.
external_id
of the contact that is also part of the webhook payload to find and update the contact in your system. If the contact does not exist yet within the external system, the external_id
will be null
and you can create it instead. Make sure to update the contact in Hellomateo with the external_id
of the contact in your system after it has been created.
The Pull Sync is a bit more complex, as you need to periodically poll the Hellomateo API for changes. We recommend setting up a cron job that runs at least every night to fetch all contacts, marketing subscriptions, and custom fields from Hellomateo that were updated since the last run. You can then update the contacts in your system accordingly.
For example, you can use the Get Contact Custom Field API to retrieve all values that have been updated since a certain timestamp for a specific custom field:
contact_id
:
external_id
of the contact, you can use Resource Embeddings to filter on the external_id
of the contact: