DOCS · PERSJAY WEBHOOK RESCUE 1.0.0

Persjay Webhook Rescue Documentation

Catch failed WooCommerce webhooks and e-mails, see exactly what broke, and replay them safely once the receiver is fixed.

View the changelog →

ON THIS PAGEOverviewInstallation & setupOverview & health widgetFailure log & inspectorReplaying deliveriesFailed e-mail captureAlertsAutomatic retries, bulk replay & circuit-breakerForms, background tasks & custom destinationsReports, white-label, multisite & presetsPrivacy & dataTroubleshooting

Overview

Webhook Rescue watches the deliveries your store sends to other systems: WooCommerce webhooks to your warehouse, ERP, CRM, Zapier or Make, and the e-mails WordPress sends to customers. When one fails, Webhook Rescue saves it, tells you what broke, alerts you, and lets you send it again once the receiver is fixed.

Out of the box, WooCommerce disables a webhook after 5 failed deliveries in a row. It does not retry and it does not tell you beyond a status change on a settings screen. Webhook Rescue keeps the webhook switched on, keeps its own failure count, and alerts you instead.

What each plan includes

PlanSitesAdds
FreeAnyProtection against WooCommerce’s 5-strike deactivation, failure log with payload inspector, e-mail alerts and recovery notices, failed e-mail capture and resend, one-click webhook re-enable, health dashboard widget, single replay (stored or rebuilt payload), failure classification, duplicate guard, encryption and privacy tools
Pro1Automatic retries with backoff, bulk replay, payload editing before replay, endpoint circuit-breaker, Slack, Discord, Telegram and custom-webhook alerts, daily digest
Business5Everything in Pro, plus lead rescue for Gravity Forms, WPForms and Fluent Forms, Action Scheduler failure monitoring, custom destinations, CSV export and WP-CLI
AgencyUnlimitedEverything in Business, plus the monthly “Rescued orders and leads” report, white-label branding, the multisite network dashboard and cross-site retry presets

Every plan, Free included, keeps failed deliveries for as many days as you choose: 30 by default, up to 365.

Installation & setup

Requirements: WordPress 6.2 or newer, PHP 7.4 or newer, and WooCommerce 8.0 or newer for webhook monitoring. Failed e-mail capture works without WooCommerce.

  1. Free version: Download the free ZIP. In WordPress, go to Plugins → Add New Plugin → Upload Plugin, upload the ZIP and click Activate.
  2. Pro, Business or Agency: Download the paid plugin ZIP from your Freemius purchase e-mail or account page. Upload it the same way, activate it, and enter your license key when prompted. The paid ZIP replaces the free one, so deactivate the free edition first.

First steps

  • Go to Webhook Rescue in the admin menu. Your WooCommerce webhooks are watched straight away; there is nothing to connect.
  • Optional: in Webhook Rescue → Settings, set who receives alert e-mails (empty sends to the site admin e-mail) and click Send test alert.

Dedicated encryption key

For a dedicated encryption key, add this to wp-config.php before Webhook Rescue stores anything:

define( 'PERSJAY_WEBHOOK_RESCUE_KEY', 'a long random string' );

Without it, Webhook Rescue derives its key from AUTH_KEY.

Changing PERSJAY_WEBHOOK_RESCUE_KEY or AUTH_KEY later means payloads stored before the change can no longer be decrypted. Set the key once, before Webhook Rescue stores anything.

Overview & health widget

The Overview tab lists every WooCommerce webhook and e-mail destination with its protection status, last successful delivery, last failure, failures in a row and how many failed deliveries are waiting for replay. Destinations that need attention are shown first.

If WooCommerce did disable a webhook (for example while Webhook Rescue was switched off), the Overview shows it as Disabled by WooCommerce with a Re-enable webhook button. Re-enable it once the receiver is fixed, then replay what was missed.

Dashboard widget

The Delivery health widget on the WordPress dashboard shows which destinations are failing right now, their failures in a row and their last success. It reads a small summary, never the log itself, so it adds no load to your dashboard.

The overview: every WooCommerce webhook and e-mail destination with its last success, last failure and how many failed deliveries are waiting.
The overview: every WooCommerce webhook and e-mail destination with its last success, last failure and how many failed deliveries are waiting.
“Delivery health” on the WordPress dashboard: which destinations are failing right now.
“Delivery health” on the WordPress dashboard: which destinations are failing right now.

Failure log & inspector

Open Webhook Rescue → Failure log to see every failed delivery with the receiver’s error and the number of attempts. Click an event to open the inspector.

The inspector

  • What broke and what to fix: each failure is classified. Timeouts, server errors (5xx) and 429 are temporary; bad credentials (401, 403), missing URLs (404, 410) and rejected payloads (other 4xx) are not, and Webhook Rescue tells you what to change before you replay.
  • The full request: status code, headers, body and the receiver’s response.
  • The timeline: every attempt, including the sending plugin’s own retry merged into the same event, and any manual or automatic replay.

Secrets stay hidden

Authorization headers, signatures, API keys, tokens, passwords and cookies are masked on screen. Click Reveal secrets to see them; every reveal is written to the event’s timeline. Under Settings → Privacy and data → Also hide these fields you can add more field or header names to mask.

The failure log. Each failed delivery is kept with the receiver's error, so you can see at a glance what broke and why.
The failure log. Each failed delivery is kept with the receiver's error, so you can see at a glance what broke and why.
The inspector shows the exact request (headers and payload, with secrets masked) and tells you what to fix before you replay.
The inspector shows the exact request (headers and payload, with secrets masked) and tells you what to fix before you replay.
Bodies over 256 KB are cut when stored. Such events are replayed by rebuilding the payload from current data instead.

Replaying deliveries

Click Replay now in the inspector to send the stored payload again, or Rebuild from current data and replay to rebuild it from the order as it is now.

Replays carry the same X-WC-Webhook-* headers WooCommerce sends, with a fresh X-WC-Webhook-Signature computed with the webhook’s current secret, a new X-WC-Webhook-Delivery-ID, and an X-Persjay-Replay header holding the event ID so your receiver can tell it is a replay if it wants to. A successful replay resets WooCommerce’s own failure counter to 0.

Duplicate guard

If a later delivery for the same order and topic succeeded, the event is flagged as a Possible duplicate. Webhook Rescue asks you to confirm before sending it, and bulk replay leaves it unticked.

Discard or delete

Discard keeps an event in the log but never retries it. Delete removes it for good. Events are also purged automatically once they are older than the retention period you set in Settings.

One click on Replay now sends the original payload again. The timeline keeps every attempt and the receiver's response.
One click on Replay now sends the original payload again. The timeline keeps every attempt and the receiver's response.

Failed e-mail capture

E-mails WordPress could not send are logged with the exact SMTP or mailer error (wrong password, host unreachable and so on), and you can send them again from the failure log once the mailer is fixed. Recipients, subject and message are stored encrypted.

This works with the default WordPress mailer and SMTP plugins built on it (WP Mail SMTP, Post SMTP and similar), plus any mailer plugin that reports failures through WordPress’s wp_mail_failed action. Attachments are re-sent if the files still exist. You can switch e-mail logging off under Settings.

Alerts

Under Webhook Rescue → Settings, Webhook Rescue e-mails you after a run of failures (default: 3 in a row), straight away when credentials break (401, 403) or the URL disappears (404, 410), and sends an “all clear” when a destination starts working again. Use Send test alert to check that alerts reach you.

Chat alerts and digest Pro

  • Slack and Discord: paste an incoming webhook URL.
  • Telegram: create a bot with @BotFather, add it to your group or channel, then enter the bot token and chat ID.
  • Custom webhook: Webhook Rescue POSTs each alert as JSON. With a signing secret, the X-Persjay-Signature header holds a base64 HMAC-SHA256 of the body.
  • Daily digest: a daily summary e-mail of failures, retries and rescues.
Settings: e-mail alerts, recovery notices, WooCommerce webhook protection, failed e-mail logging, and how many days failed deliveries are kept.
Settings: e-mail alerts, recovery notices, WooCommerce webhook protection, failed e-mail logging, and how many days failed deliveries are kept.
Pro alerts by e-mail, Slack, Discord, a custom webhook or Telegram, plus the daily digest.
Pro alerts by e-mail, Slack, Discord, a custom webhook or Telegram, plus the daily digest.

Automatic retries, bulk replay & circuit-breaker Pro

Automatic retries

Temporary failures (timeouts, 5xx, 429) are retried automatically with exponential backoff and jitter: by default after 1 min, 5 min, 15 min, 1 h, 3 h, 6 h, 12 h and 24 h. Webhook Rescue honours a receiver’s Retry-After header. When the retries are used up, the event is marked Dead (retries used up) and you get an alert. Change the Backoff schedule under Settings with values like 1m, 5m, 1h, 1d (30 seconds to 7 days).

Bulk replay

Select events in the failure log and choose a bulk action to replay hundreds at once, oldest first. Requests are paced (one every 2 seconds by default) so the receiver is not flooded, the run pauses automatically after repeated failures, and possible duplicates are left unticked.

Edit a payload

Click Edit payload… in the inspector to fix a rejected payload and send the corrected version. The original payload is kept alongside it, and Webhook Rescue warns you if the edit is not valid JSON.

Endpoint circuit-breaker

After repeated failures (default 5 in a row) a destination is paused: new WooCommerce deliveries and site e-mails for it are held instead of failing. Webhook Rescue tests it again after a few minutes, doubling the wait while it stays down (up to 2 hours), and once a test delivery succeeds everything that was held is sent, paced.

The Pro overview: automatic retries with backoff, and the circuit-breaker pausing a broken mailer until it recovers.
The Pro overview: automatic retries with backoff, and the circuit-breaker pausing a broken mailer until it recovers.
Automatic retries with backoff, bulk replay pacing, the circuit-breaker, and the Business-only form and background-task sources.
Automatic retries with backoff, bulk replay pacing, the circuit-breaker, and the Business-only form and background-task sources.
Broken credentials, missing URLs and rejected payloads are never retried automatically: a retry cannot fix them, so Webhook Rescue alerts you instead.

Forms, background tasks & custom destinations Business

  • Lead rescue: catch leads that Gravity Forms (Webhooks add-on, resent through its own feed), WPForms and Fluent Forms failed to send to their webhooks and CRM integrations.
  • Action Scheduler: log failed, timed-out and crashed background tasks and re-queue them in one click. List hook names to skip, one per line (* works as a wildcard). Tasks are never re-run automatically, because a re-run can repeat side effects such as e-mails.
  • Custom destinations: capture failed requests from any plugin to the hosts you choose, one host per line. Only requests to those hosts are looked at, and only when they fail, so other traffic is not slowed down.
  • CSV export of the failure log (payloads excluded).

WP-CLI

wp webhook-rescue list
wp webhook-rescue show <id>
wp webhook-rescue replay <id>
wp webhook-rescue discard <id>
wp webhook-rescue purge
wp webhook-rescue export
wp webhook-rescue health

Reports, white-label, multisite & presets Agency

  • Monthly report: a “Rescued orders and leads” report, on screen and by e-mail on the 1st of each month, including the order value rescued. Send it to client e-mail addresses or to your alert e-mails.
  • White-label: replace “Persjay Webhook Rescue” with your name, icon (a dashicons class or an image URL), accent colour, logo and footer in the admin, alerts and reports.
  • Multisite network dashboard: see delivery health for every site of the network from Network Admin.
  • Cross-site retry presets: save your retry, alert and circuit-breaker rules (or use the built-in Standard, Real-time and Patient presets), apply them in one click, push them to many sites of a network, or export and import them between installs.

Privacy & data

Failed deliveries can contain customer data from orders or forms, so Webhook Rescue treats them carefully:

  • Payloads are encrypted at rest with libsodium.
  • Copies are kept for the number of days you set under Settings → Privacy and data (30 by default, 1 to 365) and deleted daily after that. Remove expired events now runs the clean-up straight away.
  • Stored deliveries are included in WordPress’s personal data export and erase tools, and a suggested privacy policy paragraph is added for you.
  • Webhook Rescue sends no data to Persjay Apps. The Freemius SDK used for paid-plan licensing only connects when you opt in or activate a license.

By default the log and settings are removed when the plugin is deleted. Tick Keep the log and settings when the plugin is deleted under Settings if you plan to reinstall.

Troubleshooting

No deliveries show on the Overview

Webhook Rescue starts watching as soon as a WooCommerce webhook sends something. If there are no webhooks yet, create one in WooCommerce → Settings → Advanced → Webhooks.

“The stored payload cannot be decrypted”

The encryption key (PERSJAY_WEBHOOK_RESCUE_KEY or AUTH_KEY in wp-config.php) changed after the payload was saved. Restore the old key to read older events; new events use the current key.

An e-mail failure was not logged

Check that failed e-mail logging is on in Settings, and that your mailer reports failures through wp_mail_failed. Mailers that send through their own API without calling that action cannot be captured.

WooCommerce still disabled a webhook

Make sure Stop WooCommerce from disabling webhooks after 5 failed deliveries is on in Settings. If it was off, re-enable the webhook from the Overview, then replay the missed events.

Still stuck? Email [email protected] or use the contact form, with your WordPress, PHP, WooCommerce and Webhook Rescue versions.