BLOG · BUSINESS SYSTEMS

What is a webhook?
How systems notify each other

A webhook reports events to other systems. Learn how receiving, sender checks, retries and reconciliation work together in daily small-business operations.

7 min read

Listen to this article

6 min · Business systemsA conversation by the WebDrift team, made with AI voices (Google NotebookLM)
0:005:32
All episodes

Updated: Auf Deutsch lesen

A doorbell icon sending a glowing pulse along a cable to a distant server card on a dark backgroundBusiness systems

A webhook notifies another system when a particular event occurs, such as a payment or form submission. The sender delivers a message to an agreed technical receiving address.

This can start useful work but still needs controls. This article explains receiving, security and failure handling through examples from small businesses.

How does a webhook differ from an API query?

With a webhook, the sending system reports an event. With a query through an application programming interface, or API, the other system actively asks for the current state. Both approaches can work together.

A webhook is usually a request over HTTP (Hypertext Transfer Protocol), the protocol for exchanging requests and responses. It is sent to an address (URL) that the receiver has specified. GitHub's introduction describes event-based notifications.

Imagine a small events business in Leipzig. After someone registers online, the office should receive a task. Without a notification, it would need to check regularly for new registrations. A webhook lets the booking system report the new record to a receiver.

This does not mean every message arrives immediately or necessarily arrives at all. A broken connection or unavailable receiver can interrupt delivery. For important transactions, a later query can help identify missing messages and reconcile the two systems.

The introduction to APIs explains the technical connection further. For planning, distinguish responding to an event from requesting a current state. Often you need both, because a notification tells you something happened while a query helps establish what is true now.

What information does an event message need?

The receiver needs to identify the event and the record it concerns. Field names, formats and the amount of information depend on the provider and version.

For the events business, a message might identify a new registration and its reference. An event identifier identifies the event or message. A record identifier identifies the registration. They are different: several events may concern the same registration over time.

A documented integration should establish:

  • Which event types need to be received.
  • How the affected business record is identified.
  • Which details are included and which must be retrieved separately.
  • How timestamps and time zones are interpreted.
  • Which version of the data format is agreed.

These are questions for the integration, not a universal message format. An invented example field should not be treated as a documented provider field. A timestamp also does not prove that no other event occurred between two notifications.

The business might retrieve participant details after receiving the message rather than receiving them in full. Processing must then handle missing permissions or a temporarily unavailable booking system. Receiving an event and successfully retrieving its record are separate stages, each with its own possible failure.

How do you check the sender and accept work safely?

Validate messages according to current provider documentation and reliably accept the necessary work. Check the sender’s identity; their name alone is insufficient.

A signature is a cryptographic value used to verify a message. A shared secret can be part of that verification. The exact method depends on the provider. GitHub's validation guidance explains its requirements; Stripe's endpoint management documentation requires the original, unmodified request content for its signature check.

For the events business, a reliable sequence is to validate, durably store the required work, acknowledge receipt and then process it. A queue can hold tasks for later processing. “Durable” here means that accepted work should survive a restart.

A successful HTTP response acknowledges receipt under the agreed rules. It should not wait for lengthy business processing if that would breach the provider's response requirements. At the same time, a crash immediately afterwards should not discard work that has already been acknowledged.

Ask where accepted tasks are stored and how a later processing failure becomes visible. Access keys should not appear in public website scripts or unprotected logs.

Why do duplicates and delayed messages matter?

The same message can arrive again, and different messages can overtake one another. Processing must avoid turning those delivery effects into incorrect business changes.

At the events business, a receipt acknowledgement could be lost on its way back. The sender retries even though the first message has already been stored. Without protection, the office might receive two identical tasks or the participant two confirmation emails.

Idempotency means, in this context, that repeating processing does not repeat the same business effect. Storing an event identifier helps recognise the same event. Rules for the business record are also needed: different events should not create the same invoice twice. Include nearly simultaneous duplicates in the test, rather than testing only one message after another.

For payments, order matters particularly. An old payment notification should not simply overwrite a later refund. “Paid”, “partly paid”, “refunded” and “disputed” describe different circumstances. A payout to the business is also different from the customer's payment.

For quote and invoice automation, preserve these distinctions in the workflow. The provider's API can help reconcile the current state. A newly received message is a reason to check, rather than automatically the most current truth.

Which retry rules apply to Stripe and GitHub?

Providers have different delivery rules. As checked on 13 October 2026, Stripe documents automatic live-mode retries for up to three days; GitHub does not automatically retry failed deliveries.

ProviderVerified rulePractical consequence
StripeFailed live deliveries are retried for up to three days at increasing intervalsDetect duplicates and address outages promptly
GitHubFailed messages require manual redeliveryArrange and monitor redelivery yourself

The comparison therefore represents two different operational responsibilities. With Stripe, retries need safe handling. With GitHub, a failed delivery also needs an agreed route for requesting another attempt. These rules come from Stripe's documentation and GitHub's failure-handling guidance.

Stripe also does not guarantee event order. Test environments and manual redelivery may have different conditions. Record the provider, operating mode and checked documentation instead of applying the three-day rule to every webhook.

For a service business, a GitHub notification might trigger an internal review after a change. If the receiver is unavailable, someone must identify the failure and arrange another attempt. A documented rule helps only when somebody implements it during operation.

How should small businesses test a webhook integration?

Test failures and inspect the resulting business state. Receiving one sample message successfully is insufficient acceptance evidence.

At the events business, a retry should leave exactly the intended tasks. After processing fails, the accepted registration should remain traceable. When delivery is missing, reconciliation should reveal the difference between the booking system and office records.

  • Valid and invalid messages have been tested separately.
  • Sender validation follows the actual provider documentation.
  • Accepted work survives a restart.
  • Duplicate and concurrent messages do not repeat the business effect.
  • Delayed messages do not overwrite a newer state.
  • Receiving failures and processing failures are distinguishable.
  • Alerts, redelivery and reconciliation have named owners.

The article on connecting a website to customer management covers related questions for forms. There, too, responsibility after technical receipt determines whether the customer request is actually handled.

Conclusion: Accept events and verify their effect

Webhooks can start useful recurring workflows. Reliability comes from sender validation, safe acceptance, controlled retries and reconciliation. Our business systems can support these connections. Through contact, we can define the particular workflow and its failure cases.

Related reading: What is a customer portal and when is it worth it?.

Sources

Checked on 13 October 2026.

webhookinterfaceautomationintegrationbusiness systemssecurity

FREQUENTLY ASKED QUESTIONS

Answered briefly.

01Is a webhook a separate software product?
A webhook is an agreed notification mechanism between systems. Its receiver needs an accessible technical address and rules for validation and processing.
02Must the message contain every relevant detail?
No. Some events only identify the affected record. The receiver must then retrieve additional information through the provider's interface.
03Does acknowledging receipt mean all work is finished?
No. A message can be accepted while business processing remains outstanding. Monitor these states separately.
04Should a repeated message create another invoice?
No. Processing should avoid repeating the same business action. This needs appropriate rules for the order as well as event identifiers.
05Does every provider retry failed deliveries?
No. As checked on 13 October 2026, Stripe documents automatic live-mode retries for up to three days. GitHub requires redelivery to be arranged separately.

ABOUT THE AUTHOR

Hamada

Founder & CEO of WebDrift

Combines system administration, software architecture and automation with an eye for thoughtful design. Your contact from the first idea to launch.