Skip to main content

Payments glossary Payment infrastructure

What Is a Webhook?

Definition

A webhook is an HTTPS request that a payment provider or billing platform sends to a merchant's server when an event, such as a failed renewal, happens. Typical events include a payment succeeding, a renewal failing or a dispute opening. Webhooks let systems react to asynchronous payment outcomes in real time instead of repeatedly polling the API for updates.

Also called: webhook endpoint, event notification, callback URL

How it works and why it matters

The merchant registers a publicly accessible HTTPS endpoint and chooses which event types to receive. Stripe sends events as JSON payloads, signs each one in a Stripe-Signature header using HMAC with SHA-256, and expects the endpoint to verify the signature and quickly return a 2xx status before running complex logic. Its libraries default to a five-minute tolerance on the signature timestamp to block replayed events.

Delivery is not perfectly ordered or unique. In live mode Stripe retries undelivered events for up to three days with exponential backoff, does not guarantee events arrive in the order they were generated, and may deliver the same event more than once, so handlers should log processed event IDs and skip duplicates.

Subscription systems run on webhooks: invoice paid, payment failed and subscription updated events drive access changes, dunning and reporting. Stripe notes that renewals at the start of the month can cause large spikes, so handlers should queue events and process them asynchronously.

Example

A renewal fails and the payment provider sends a payment failed event to a SaaS company's endpoint. The handler verifies the signature, returns 200, and queues a job that records the decline code and starts the dunning flow, ignoring a duplicate delivery of the same event minutes later.

Frequently asked questions

What is a Webhook?

A webhook is an HTTPS request that a payment provider or billing platform sends to a merchant's server when an event, such as a failed renewal, happens. Typical events include a payment succeeding, a renewal failing or a dispute opening. Webhooks let systems react to asynchronous payment outcomes in real time instead of repeatedly polling the API for updates.

What happens if my webhook endpoint is down?

Providers retry. Stripe retries live-mode events for up to three days with exponential backoff and allows manual resends. Once the endpoint recovers, missed objects can also be fetched through the API, so a short outage need not lose data.

Related terms

Related tools and guides

Sources

Sources checked November 2026. Card network and scheme rules change; confirm current rules with your payment provider.

More payment infrastructure terms

Losing subscription revenue to failed payments?

Slicker recovers failed recurring payments with smart retries driven by decline codes and Merchant Advice Codes, plus hyper-personalized emails when the customer has to act. It runs on your existing billing platform, and you only pay when it outperforms your current setup in a 50/50 test.

Cookie preferences

Your privacy matters

We use analytics to understand how you use our site and improve your experience. Privacy Policy