Currently Available: Need a skilled Software Developer for your next project?
Categories
APIs

Reading Webhook Docs for Delivery and Retry Rules

When you connect an HTTP endpoint to a webhook provider, the provider sends event notifications to that endpoint. HTTP status codes tell you the general meaning of each response, while the provider's documentation sets the actual delivery rules. Those docs specify which responses the provider accepts as acknowledgment (confirmation that your endpoint received the event), how long your endpoint has to reply, when the provider retries, and what the provider does once automatic attempts stop. When a provider tries to send an event again, either automatically or because an operator or API call asks for it, the docs usually call that a redelivery.

You need to read these rules for the exact product and webhook type you plan to integrate. Two providers can react to the same HTTP status code in completely different ways, and a provider that marks an event as “Failed” may still let you recover it manually. Before you write any code, pull out the provider's exact rules and list every detail the docs leave open.

Start with HTTP status codes, then find the provider's rules

RFC 9110 defines the general meaning of each group of HTTP status codes. A 2xx response signals success at the HTTP level, a 3xx response indicates a redirect, a 4xx response points to a client error, and a 5xx response indicates a server error. The standard also defines 202 Accepted to mean the receiver accepted the request for processing, though the work itself may still be running.

RFC 9110 does not set a webhook provider's acknowledgment rules or retry schedule. One provider might accept any 2xx response, while another requires a specific status code or treats certain responses as failures under its own product rules. GitHub tells receivers to return a 2xx code before its deadline, and PayPal treats any non-2xx response as a reason to retry. Look up the provider's explicit acceptance rule instead of assuming standard HTTP meanings cover the whole contract.

Check how the provider measures its response deadline, too. The docs might list a timeout in seconds without saying whether the sender stops the clock when it receives the response headers (the metadata at the start of the response) or when the full response ends. If the docs do not define that measurement point, write it down as a question to verify before you build.

Compare the provider's delivery timeline

A provider's documentation should state what response counts as acknowledgment, the response deadline, what triggers a retry, and what happens when automatic attempts end. The examples below show how much these rules vary by provider and product.

Provider and scope Acknowledgment and deadline Retry and failure behavior
GitHub repository webhooks Return 2xx within 10 seconds. When your endpoint takes longer, GitHub terminates the connection and records a failure. GitHub does not automatically redeliver failed deliveries. Its documentation describes manual or API-based redelivery.
PayPal REST webhooks Return HTTP 200 or another 2xx. The cited overview does not state a response deadline. After a non-2xx response, PayPal makes up to 25 attempts over 3 days, or until it receives a 2xx. If delivery remains unsuccessful after 3 days, PayPal marks it Failed.
Adyen webhooks Return a successful status such as 200 or 202 within 10 seconds. Adyen also says the endpoint should not redirect. After initial retries, Adyen marks the webhook Failing and puts messages in a retry queue. The queue automatically retries messages for up to 30 days.

These examples come from GitHub's webhook guidance, the PayPal Webhooks overview, and Adyen's webhook configuration documentation. Each of these rules applies only to that specific product, so you cannot assume another provider works the same way.

Keep attempt counts, elapsed-time windows, and retry intervals separate in your notes. PayPal's overview gives an attempt ceiling and a three-day window, while the cited passage leaves out the exact schedule between attempts. Adyen's 30-day queue limit tells you how long the provider keeps retrying automatically, while the exact spacing between attempts may be documented elsewhere. If the timing between retries matters for your operational planning, check the current docs for the full schedule.

Separate attempt errors from delivery states

When a single request fails to meet the provider's acknowledgment rules, that is an attempt failure. A delivery state describes what the provider does with the event after one or more attempts. Even when a provider labels a delivery as failed, it may only mean automatic retries have stopped while manual recovery is still available.

Providers often handle connection problems, late responses, and rejected HTTP status codes differently. When a timeout happens, the sender never got an acceptable response before its deadline. When your endpoint returns a non-2xx code, the sender got a response it does not accept. Check whether the docs say each failure type triggers another attempt and whether the provider counts all of them toward the same retry limit.

Read provider-specific troubleshooting guides with the same care. Adyen's documentation covers redirect handling and operational troubleshooting for its webhook endpoints, which describes how Adyen's system behaves while other senders may follow different rules. For a closer look at interpreting status codes, see mapping HTTP codes to webhook failures.

Whenever the docs use labels like Failed, Failing, or queued, note what the provider actually does in that state: whether it keeps retrying automatically, whether it keeps the event available, and what an operator can do next. GitHub logs failed deliveries and stops without automatic retries. PayPal marks an event Failed after its documented retry period, and still allows a manual resend. Adyen moves messages into a retry queue where operators can retry or ignore them, and ignoring a queued message removes it from the queue.

Check lookup and replay controls

Recovery tools are part of the delivery contract. Look for a way to list past deliveries, inspect a specific event or attempt, and resend an event after automatic retries stop.

GitHub's repository webhook API lets you list deliveries, retrieve a delivery, and request redelivery. When you call GitHub's redelivery endpoint, GitHub returns 202 Accepted to show it accepted the request for processing, so you still need to check later whether the webhook reached your endpoint. PayPal documents event-list, event-detail, and resend endpoints, along with dashboard tools to inspect and resend events. Its dashboard date filter covers the last 30 days, which is a lookup window separate from PayPal's three-day automatic retry period.

When you ask a provider to replay or resend an event, check what payload it sends and which identifiers stay the same. GitHub documents that a requested redelivery keeps the original X-GitHub-Delivery header value. That shows why you need separate answers for event identity and attempt identity, since each provider sets its own rules for headers and IDs. For delivery-state terminology and recovery documentation, see documenting webhook delivery states.

Close the gaps before you build

For each webhook configuration, write down the product and event scope, the exact response codes the provider accepts, and the response deadline. Then record which failures trigger retries, how the provider limits those retries, and which state follows once automatic delivery ends.

Before you start building, answer these questions from the provider's documentation or support team:

  • Does the deadline measure time to response headers, completion of the response, or another point?
  • Does the provider follow redirects, reject them, or count them as failed attempts?
  • Do connection failures, timeouts, and different non-2xx responses share one retry policy?
  • Does a retry limit apply per event, per endpoint, or to endpoint health?
  • After automatic attempts end, how long can an operator look up or resend the event?
  • Does redelivery resend the original payload, and which event or attempt identifiers stay the same?

If the documentation leaves any of these unanswered, track it as an open question instead of filling the gap with assumptions from another provider.

What I'm building

Delegate tasks. Get software.

Give Vroni a GitHub issue, bug report, spec, or rough idea. It reads the repo, plans the change, writes code, runs checks, and works toward a review-ready pull request.

Take a look at vroni.com

Email updates

Usually a new article and a few links I found interesting.

No spam. Unsubscribe with one click.

Leave a Reply

Your email address will not be published. Required fields are marked *