# How to Make Webhook Integrations Reliable

> Learn how to make webhook integrations reliable with durable acceptance, safe retries, and provider-specific recovery for Stripe, Shopify, and GitHub.

![How to Make Webhook Integrations Reliable](https://tiny-saas-radar.nicheflash.com/media/articles/3143-42pfgdr7jvqg-16x9.jpg)

- Source: https://tiny-saas-radar.nicheflash.com/blogs/how-to-make-webhook-integrations-reliable
- Author: [Tiny SaaS Radar Editorial Team](https://tiny-saas-radar.nicheflash.com/authors/tiny-saas-radar-editorial-team)
- Publisher: Tiny SaaS Radar
- Published: 2026-12-01
- Updated: 2026-12-01

Acknowledge a webhook only after you have verified and durably saved it. Then process it asynchronously, make the business action safe to repeat, and recover failures according to the sender’s actual rules. Start with no-code when mistakes are easy to spot and repair; use a controlled receiver when acceptance and recovery are essential to your product.

 ## Build the receiver around durable acceptance

 Durable acceptance means saving a verified event so it can be recovered after a process failure. Idempotency means handling a repeat without repeating the intended business effect. A practical receiver follows this sequence:

 1. **Verify the original payload.** Check the signature according to the sender’s protocol before trusting the message.
2. **Persist the event and its delivery identifier.** Store enough information to recover and process it if the receiver stops immediately afterward. Make the stored event itself available to workers, or write an accompanying job or outbox record in the same transaction.
3. **Return a successful HTTP response.** Acknowledge only after the durable write commits. If storage fails, report failure, monitor it, and use the sender’s recovery mechanism.
4. **Process asynchronously.** Run the business action separately, record its result, and retry failures safely.

 The response promises receipt, not completion of a customer-facing action. Zapier documents cases in which an invalid payload receives a success response without triggering a workflow.[1]

 ## Retry and recovery rules differ by sender

 These are different provider policies, not conflicting estimates. The provider pages do not state publication dates for these rules, so check the current documentation before shipping a runbook.

 **Webhook delivery and recovery policies**

| Sender | Automatic retries | Response expectation | Recovery options |
| --- | --- | --- | --- |
| Stripe | In live mode, failed deliveries are retried for up to three days.[2] | Check the current provider documentation. | Resend through the dashboard for up to 15 days or the CLI for up to 30 days after event creation.[2] |
| Shopify | After an error or no response, Shopify retries eight times over the next four hours.[3] | Shopify specifies a one-second connection timeout and a five-second total request timeout.[3] | Monitor failures and plan for recovery. |
| GitHub | GitHub does not automatically redeliver failed deliveries.[4] | Return a 2XX response within 10 seconds.[5] | Request manual or supported API redelivery for deliveries from the past three days.[4] |

 Shopify says subscriptions configured through the Admin API are automatically deleted after eight consecutive failures.[3] Shopify’s documented retry window does not establish a comparable manual-redelivery window.

 ## Verify signatures and distinguish delivery IDs

 Keep the exact, unmodified request body available for signature verification. Do not let parsing middleware change it first. Read the relevant header and verify using the provider’s procedure and endpoint secret; reject failures, and parse or act on the payload only after verification.

 - **Stripe:** Verify the signature according to the sender’s protocol before trusting the message.
- **Shopify:** Read *X-Shopify-Hmac-Sha256* and verify the HMAC against the raw body using the app’s secret.[3]
- **GitHub:** Read *X-Hub-Signature-256*, calculate the payload HMAC using the webhook secret, and compare signatures in constant time.[6]

 Use the identifier for the job it actually describes:

 - **Stripe:** Log event IDs to recognize repeat deliveries; for some separately generated duplicate Event objects, Stripe suggests combining the object ID and event type.[2]
- **Shopify:** Use *X-Shopify-Webhook-Id* to deduplicate individual deliveries and *X-Shopify-Event-Id* to correlate deliveries from the same merchant action.[3]
- **GitHub:** Use *X-GitHub-Delivery* to recognize ordinary repeats; a requested redelivery keeps the original value.[5]

 A replay is a previously sent message submitted again. GitHub recommends its delivery ID as protection against replay.[5] OWASP makes a narrower distinction: GitHub’s body-only signature does not authenticate that header or a delivery timestamp.[7] The narrower reading is safer: the ID helps recognize ordinary redeliveries, but does not alone establish authenticated replay protection. Follow the provider’s verification protocol and make downstream effects idempotent.[7]

 ## A Shopify order arrives twice

 Consider a hypothetical paid-order event delivered twice while your provisioning service is unavailable. Apply the following practices:

 1. **Verify both requests.** Keep each raw body unchanged until its HMAC has been checked. Reject a request that fails verification.
2. **Commit the event and work together.** In one database transaction, insert the verified payload and webhook ID, plus a pending job linked to that event. Put a uniqueness constraint on the delivery ID so concurrent requests cannot create competing records. Alternatively, have workers poll the durable event table itself.
3. **Acknowledge only recoverable records.** Return success for the first request after the transaction commits. For a duplicate, confirm that the existing event and pending or completed work are durably recoverable before acknowledging it. Investigate a conflicting payload or a record with no recoverable work instead of silently treating it as handled. A crash before commit leaves neither event nor job; a crash after commit leaves work a worker can pick up.
4. **Make provisioning idempotent.** Define a business-operation key such as the shop ID, order ID, and a fixed entitlement-provisioning action. Use the same key for every attempt and pass it to the provisioning service’s idempotency mechanism if it supports one. Record the result locally. This protects the action even if the worker crashes after the service succeeds but before the local success is recorded.
5. **Resolve ambiguous results.** If the service lacks idempotency support and a request times out, check its state using the order or operation reference before retrying. If you cannot establish whether provisioning happened, leave the job for inspection and alert an operator rather than risk granting access twice. Use the same business key for reconciliation repairs.

 This is an implementation pattern, not a tested recipe or a promise of exactly-once delivery. A delivery ID prevents duplicate delivery records; it cannot by itself prevent a repeated external effect. Workers also need a way to reclaim abandoned jobs after a crash and prevent concurrent workers from processing the same job.

 ## Build recovery around the failure point

 A sender-to-receiver failure happens before your system has accepted an event; a processing failure happens after acceptance. Redelivery addresses the first problem. Retrying a stored job addresses the second. Track pending, processing, failed, and completed work so an operator can tell which path to use.

 For a starting worker policy, retry transient failures such as a temporary downstream outage with exponential backoff and jitter. Set a maximum attempt count or deadline; when it is reached, move the job to a failed state and alert the person responsible. Invalid or unprocessable events need inspection and correction, not an indefinite retry loop. Treat an ambiguous external result separately: resolve it before retrying unless the downstream idempotency mechanism makes the retry safe.

 For GitHub, monitor failed deliveries and request redelivery manually or use GitHub’s documented scheduled API-based approach.[8] The described delivery APIs do not cover GitHub Marketplace or Sponsors webhooks, so those integrations need a separate recovery plan.[8]

 Design for events that arrive out of order and repeated deliveries. A worker may need to fetch current state or defer an action rather than assume the previous event has already arrived. For Shopify, pair retry monitoring with periodic API reconciliation.[3]

 ### Reconcile missed and divergent work

 On a schedule, query the relevant provider API objects from a saved checkpoint, with an overlap before that checkpoint to catch changes near the boundary. Follow every page, then compare the returned objects and relevant status fields with local records. Queue missing actions and investigate or queue divergent ones for safe repair using the same business-operation keys as normal processing.

 Advance the checkpoint only after the scan and its repair work have been durably recorded. The overlap will bring back some objects again, so the comparison and repair path must tolerate repeats. Which fields to compare, how much to overlap, and how often to run the scan depend on the integration and the cost of a missed action.

 ## Choose no-code by the cost of a missed action

 A controlled receiver takes implementation and maintenance work. For an internal notification that someone can inspect and repair, start with the simpler no-code workflow.

 Check what a success response actually means. A workflow retry does not, by itself, prove that an external effect will not be repeated.

 Before relying on a particular workflow for customer-facing work, test it with a safe destination:

 1. **Inspect the response.** Send a valid event and determine when success is returned and whether the event is durably recoverable at that point. If you cannot establish that, an acknowledged event may be lost; use a controlled receiver when that risk is unacceptable.
2. **Send a duplicate.** Deliver the same event again and check the execution history and destination. If the business action repeats, add effective deduplication or put it behind a controlled receiver.
3. **Fail a downstream step.** Interrupt or deliberately fail the action after acceptance. Confirm that the event remains available for recovery. If it disappears or cannot be found, the workflow needs a more reliable acceptance and recovery path.
4. **Retry and inspect the result.** Retry the failed work, including a case where the downstream action may already have succeeded. If the external effect repeats or its outcome cannot be resolved, add downstream idempotency or an inspection step; a controlled receiver can manage that state.

 Also verify that the setup checks the provider’s signature before acting. For access, orders, or payments, prefer a controlled receiver unless the particular no-code setup can demonstrate verification, durable acceptance before acknowledgement, deduplication, and recovery. The documentation does not prove that every no-code setup fails those tests—or that custom code is universally cheaper or more reliable.

## References

1. [Troubleshoot webhooks in Zapier – Zapier](https://help.zapier.com/hc/en-us/articles/8496291737485-Troubleshoot-webhooks-in-Zapier)
2. [docs.stripe.com](https://docs.stripe.com/webhooks)
3. [Verify webhook deliveries](https://shopify.dev/docs/apps/build/webhooks/verify-deliveries)
4. [Redelivering webhooks - GitHub Docs](https://docs.github.com/en/webhooks/testing-and-troubleshooting-webhooks/redelivering-webhooks)
5. [Best practices for using webhooks - GitHub Docs](https://docs.github.com/en/webhooks/using-webhooks/best-practices-for-using-webhooks)
6. [Validating webhook deliveries - GitHub Docs](https://docs.github.com/en/webhooks/using-webhooks/validating-webhook-deliveries)
7. [cheatsheetseries.owasp.org](https://cheatsheetseries.owasp.org/cheatsheets/Webhook_Security_Cheat_Sheet.html)
8. [Handling failed webhook deliveries - GitHub Docs](https://docs.github.com/en/webhooks/using-webhooks/handling-failed-webhook-deliveries?ref=vanja.io)
