Skip to main content

Technical Decisions

Webhook

A webhook pushes a message the moment something happens, instead of your system repeatedly asking. It is what makes integrations feel instant rather than delayed.

Definition

A webhook is a message one system sends to another the moment something happens: a payment succeeded, a form was submitted, an order shipped.

What It Actually Means

The contrast with an API call is direction. An API call is you asking. A webhook is being told. One is checking your letterbox every ten minutes; the other is the doorbell.

Why It Matters Commercially

The difference shows up as delay, and delay is visible to customers.

A system checking for new payments every fifteen minutes means an order can sit unconfirmed for fifteen minutes. Checking every minute is expensive in requests and still a minute behind. A webhook means it happens when it happens, which is what people now expect.

It also removes wasted work. Polling means constantly asking whether anything changed, and most of the time the answer is no. On any system with meaningful volume that is a significant amount of pointless traffic, and some providers charge for it.

So webhooks are what makes an integration feel like one system rather than several that periodically compare notes.

What Goes Wrong With Them

They are one-way messages sent over the internet, which means several things can and do fail. A well-built integration accounts for all of them, and a hastily built one accounts for none.

They can arrive twice. Providers retry when unsure a message was received, so the same event can be delivered more than once. If your system does not check, one payment becomes two orders. This is the most common webhook bug and it is invisible until it happens.

They can arrive out of order. Created and updated can arrive the wrong way round.

They can be missed entirely. If your system is briefly down, the message may be retried a few times and then abandoned. Anything important needs a periodic reconciliation, asking the provider directly whether anything was missed.

They can be forged. The address receiving them is public, so anyone who finds it can send a fake event claiming a payment succeeded. Providers sign their messages; verifying that signature is essential and is skipped surprisingly often.

What To Ask

  • Do we verify the signature on incoming webhooks? It is a security question with a real consequence, and a common gap.
  • What happens if the same event arrives twice? There should be a definite answer.
  • What happens if one is missed? There should be a reconciliation, not a hope.
  • Do we log what we receive? Debugging an integration without a record of the messages is guesswork.
  • Does this provider support webhooks at all? If not, expect the integration to be delayed by design.

Where They Fit

Most well-built integrations use both mechanisms: webhooks so things happen immediately, and API calls to fetch fuller detail and to reconcile periodically against the source.

Relying on webhooks alone assumes perfect delivery, which is not a property the internet has. Relying on polling alone is slower and more expensive than it needs to be. Doing both is the arrangement that survives contact with real conditions, and it is a reasonable thing to expect in any integration work you commission.

More terms are in the glossary.

Portrait of Alexander De Sousa, founder of Digital Royalty
Founder-led
“I’ve put everything I know into how this company works — the standards, the method, the care on every project. It runs through the whole team, and I hold us all to it.”

Alexander De Sousa · Founder LinkedIn

Featured on BBC Radio Solent

Get started

Tell us what you need

A few quick questions, then a straight answer from a real person — usually within a few hours.

What happens next

  1. 1 We reply A real person reads your answers and gets back to you, usually within a few hours.
  2. 2 Questions or a short call If anything isn't clear, we ask by email or book a short call. Before any call we audit your website and make the quick fixes it finds, free.
  3. 3 Your fixed quote A clear, fixed price in writing, within 48 hours of any call. There is no obligation to go ahead.

Tell us what you're working on

Whether it's a new site, a platform, or a process that shouldn't be manual any more — we'll tell you honestly if we can help.