Logistics glossary
What is a webhook?
Also known as Event notification · HTTP callback · Web callback · Web kancası
A webhook instantly sends information to a predefined endpoint via an HTTP POST request when a specific event occurs in a system (e.g. a delivery moves to “on the way”); it removes the need for the receiving side to keep polling.
How does a webhook work?
Setting up a webhook takes three steps:
- An endpoint is defined: you open an endpoint (URL) in your system to receive events.
- Events are selected: you choose which events you want notifications for; in delivery, typical events are steps such as assigned, picked up, on the way, approaching, delivered and delivery failed.
- The notification is sent: the moment the event occurs, the provider sends an HTTP POST request containing the event data to this endpoint; your system updates the record and returns a response.
The difference from continuous polling is this: with polling, you ask “has anything changed?” every few seconds; with a webhook, changes come to you on their own. This reduces both latency and unnecessary traffic.
Webhook example
A restaurant chain’s ordering system sends each order to the delivery software through the delivery API. When the courier picks up the order, heads out and delivers it, a webhook notifies the ordering system. That way, the call center, POS and customer app all see the same status at the same time, and you can notify the customer from your own app.
What should you watch for when using webhooks?
- Verify that the request really comes from the provider.
- Do not process a record twice if the same event arrives twice.
- Monitor delivery logs.
- Make sure the receiving endpoint responds quickly; do heavy processing in the background.
Webhooks are also the foundation for showing delivery data live in your own product: by listening to all events, you can monitor the operation in real time on your own screen.
Webhooks in QDelivery
With QDelivery webhooks, when an event you choose occurs, the data goes instantly to the endpoint you define; you manage event types, location scope and delivery logs from the dashboard. The REST API is used for creating tasks and querying status. Setup steps are on the Developers page and in the Developer Portal. QDelivery’s MCP server helps you write the integration code; operational data does not flow through MCP but through webhooks and the API.
FAQ
Frequently asked questions
What is the difference between a webhook and an API?
With an API, you request the information (pull); with a webhook, the information comes to you when the event occurs (push). Delivery integrations use both together: tasks are created through the API, and status changes come back through webhooks.
Can we use webhooks with our existing ERP, WMS or e-commerce system?
Yes, if your system can expose an endpoint that accepts HTTP requests. Your ERP (enterprise resource planning), WMS (warehouse management system) or e-commerce platform can receive webhook events and update its own records.
What happens if a webhook delivery fails?
That depends on the provider’s retry policy. In a good implementation, delivery logs are kept; you can see which event got which response and verify the connection with a controlled test event.