Webhooks
Listen to real-time events from the Integration Labs Platform.
The Integration Labs Platform offers robust webhook functionality, ensuring that your systems remain up-to-date with real-time synchronization of the data your app needs. With webhooks, as soon as data is synchronized from the accounting platform, a corresponding webhook is instantly activated. This guide will walk you through the steps to set up a webhook on the Integration Labs platform.
How to Configure?
- Accessing Webhooks Settings
- Navigate to the
Webhooks
page. - Click the
Create Webhook
button.
- Navigate to the
-
Entering Webhook Details
- Provide a suitable name for the webhook.
- Input the desired URL for the webhook.
- Determine the type of webhook you need:
- Data Model Changes
- Connection Changed
- Sync Completed
- For added security, you can integrate an authorization token in the headers.
Webhook Types
Connection Changed Webhook:
This webhook is activated when a new connection is made via an invite link or if there’s a change in connection status, such as when a connection is disconnected or expired.
Use this webhook to receive notifications when a connection has been expired to prompt your customer to reconnect.
Sync Completed Webhook:
This webhook is activated upon the completion of an asynchronous data sync. It can be triggered by either a data sync for a specific connection or when asynchronous data is written.
Use this webhook to receive notifications when data has completed syncing. You can also use this webhook to check which data models were synced successfully and which ones failed.
Data Model Changes Webhook:
We support 3 Event Types for this webhook:
- CREATE: Triggered when data is initially synced or when a new record is imported from the Accounting Platform.
- UPDATE: Only triggered when data undergoes changes, not during every Integration Labs sync operation. For instance, even if Integration Labs performs daily syncs, but no changes are detected on the Accounting platform, no webhook notifications will be sent.
- DELETE: Activated if data is removed from the Accounting platform. Can only be triggered after a Full Sync operation.
Expect Partial Data
You may not recieve all fields for a data model in a single webhook. Often times you may recieve multiple webhooks based on how the data is structured in the Accounting Platform.
For example, you may recieve a CREATE webhook with only the name field for a customer. Then this is followed by several UPDATE webhooks with the remaining fields for the same customer.
Futhermore you can configure this type of webhook for specific or all data models.
Use this webhook to receive notifications when data is created, updated, or deleted to keep your systems up-to-date.
For Full Syncs you can use this webhook to receive all the data from the platform. The existing data that did not get updated will also be sent with the UPDATE webhook.
Developer Notes
-
Webhook Retry Mechanism: In the event of server congestion or high request volumes, webhooks will be retried three times with exponentially increasing delays. This ensures you never miss out on vital data.
-
Webhook Request Type: All webhooks will be dispatched using a POST request with a structured body.
Sample JSON Payloads
-
Data Model Changes:
-
Sync Completed:
-
Connection Changed: