Routal uses webhooks to notify your application any time an event happens on your account. Set up webhooks for events that Routal already notify you of, like when a plan's status changes, a new route is created, or a stop is completed by your drivers.
A webhook endpoint is a URL on your server that Routal calls when certain things happen in your account. Each event contains data explaining what happened.
Your webhook handler listens for the events you choose and takes action whenever those events are sent to the endpoint.
Tip: Your webhook endpoints should be configured to receive only the types of events required by your integration. Listening for extra events (or all events) will put undue strain on your server and is not recommended.
Where to set up webhooks
Go to Settings → Developers → Webhooks (from your avatar at the bottom of the sidebar). You can also reach Webhooks from Connectors → Developers.
WHEN TO USE WEBHOOKS
Use webhooks to keep other systems (replication, analytics or alerting) in sync with what happens in Routal. For example:
- Update the routes in your database when route planning step is over
- Get the feedback of the orders (images, comments, problems)
- Log routes followed by your drivers in their working time
