Edara Webhooks
What is a Webhook in Edara ERP?
A webhook in Edara ERP is a way for the system to send real-time notifications to an external service when certain events occur. Instead of continuously polling the API for updates, webhooks allow Edara ERP to instantly notify external systems by sending an HTTP request to a specified URL whenever an event (such as adding a new stock item) takes place.
Webhooks are especially useful for integrating Edara ERP with other systems or applications, automating workflows, and ensuring timely data updates.
How to Create a Webhook
To set up a webhook in Edara ERP, follow these steps:
Access your Edara account.
Navigate to Data > Integration > Webhooks.
Click Add New Webhook.
Fill in the necessary details:
- Name: Give your webhook a name for easy identification.
- URL: The external URL where the webhook data will be sent. This is the "listening" URL on your system.
- Token: (Optional) If needed, include a token for authentication or security purposes.
Select the events for which the webhook should trigger. You can filter the events based on your needs.
- After selecting the required events, configure any additional filters to fine-tune which events should trigger the webhook.
- Save the webhook.
Example Webhook Body
Here is a smaller example of the webhook payload sent when a stock item is added to Edara ERP:
{
"entity_id": 97954,
"entity_code": "",
"entity_type": "StockItem",
"event_type": "After_Add",
"tenant_id": "7c584e91-e05a-4a10-856b-57100d451a9c",
"tenant_name": "demo_k",
"data": {
"id": 97954,
"description": "080120240238",
"code": "",
"sku": "080120240238",
"price": 100.0,
"dealer_price": 0.0,
"fifo_cost": 0.0,
"lifo_cost": 0.0,
"average_cost": 0.0,
"last_cost": 0.0,
"part_number": "",
"classification_id": 6411,
"warranty": 12.0,
"dynamic_properties_info": [
{
"dynamic_property_id": 5945,
"dynamic_property": "Size",
"dynamic_value_id": 5946,
"dynamic_value": "S"
},
{
"dynamic_property_id": 5945,
"dynamic_property": "Size",
"dynamic_value_id": 5947,
"dynamic_value": "M"
},
{
"dynamic_property_id": 5945,
"dynamic_property": "Size",
"dynamic_value_id": 5959,
"dynamic_value": "L"
}
],
"is_grouping_item": false
}
}
By setting up webhooks, Edara ERP will automatically send notifications about system events to your external system, allowing you to stay updated in real-time without polling the API.