Webhook
A webhook is an automatic message that one system sends to another system's web address when a specific event happens, such as an order being placed, shipped, or cancelled, so the receiver does not have to keep asking.
Why it matters for ecommerce brands
Webhooks move order, tracking, and inventory updates between systems within seconds, so customers get shipping notices fast and you avoid overselling. The sending system posts a message to your endpoint whenever an event happens. For example, if an inventory webhook from your 3PL fails at 2 p.m. and nothing retries, your store may keep selling a SKU that is gone, and 30 oversold orders at $60 each mean $1,800 in refunds plus service time. Use retries, signature checks, and a daily reconciliation through the API as a backup.
Common questions
- What is the difference between a webhook and an API?
- With an API call, one system asks another for data when it wants it. With a webhook, the sending system pushes a message automatically when an event happens, so the receiver gets updates without repeatedly checking.
- What happens if a webhook fails?
- Most platforms retry a failed delivery several times, and some stop sending after repeated failures. Monitor your endpoint and run a periodic sync through the API so missed events are caught.
- How do I secure a webhook?
- Use HTTPS and verify each message's signature, often an HMAC hash sent in a header, against your shared secret. Reject messages that fail the check or carry old timestamps.