Agency Guide: Webhook Recovery Pro
In short: the free plugin already retries failed WooCommerce webhooks and logs every failure. Pro adds what you need once you look after many stores: the same rules on every store, a safe way to resend a large backlog, and a compact failure report you can pull from each store.
Everything on this page is a Pro feature unless it says otherwise. The plugin never sends data to HookRetry: a report leaves a store only when someone downloads it or when you request it from your own tools.
1. Configuration profiles
A profile is a small, named, versioned JSON file that sets the recovery rules of a store. You keep one file per policy in your own repository and apply it to every store, instead of clicking through settings screens.
{
"schema": "hookretry-profile",
"schema_version": "2.0",
"profile": { "name": "Agency standard", "revision": 3, "description": "Default for retail clients" },
"policy": {
"retry": { "auto": true, "max": 4, "backoff_minutes": [2, 10, 30, 60, 120] },
"circuit_breaker": { "enabled": true, "threshold": 10, "window_minutes": 5, "cooldown_minutes": 30 },
"retention": { "resolved_days": 30, "unresolved_days": 90 },
"security": { "encrypt_payloads": true },
"alerts": { "email": true, "recipients": "ops@agency.example", "cooldown_minutes": 15 }
},
"endpoints": {
"slack_webhook": { "from_constant": "AGENCY_SLACK_WEBHOOK" }
}
}
- Preview before anything changes. Every change is listed with the old and the new value. Nothing is written until you apply, and the file is checked completely first: one wrong value and nothing is applied.
- Revisions. A profile with a lower revision than the one applied is blocked unless you explicitly allow it, so an old file cannot silently undo a newer policy.
- Risky values need a confirmation. Switching payload encryption off, logging every delivery, or keeping all data when the plugin is deleted weakens data protection or grows the log, so a profile that does this is blocked until you confirm it.
- Credentials stay out of the file. Slack, Discord, Telegram and custom webhook credentials are read from a constant in
wp-config.php({"from_constant": "NAME"}) or from an environment variable ({"from_env": "NAME"}). A credential written into the file is refused unless you explicitly allow it. - Status and drift. The plugin shows which profile and revision is applied and which settings were changed by hand since.
- Rollback. The previous values of every changed setting are kept (the last five applications), and one action puts them back.
On the screen: the Configuration profile card in the plugin settings. From the command line:
wp hookretry profile-export --name="Agency standard" --revision=3 > agency-standard.json
wp hookretry profile-validate agency-standard.json
wp hookretry profile-diff agency-standard.json
wp hookretry profile-apply agency-standard.json --dry-run
wp hookretry profile-apply agency-standard.json --yes
wp hookretry profile-status
wp hookretry profile-rollback
2. Safe replay of failed webhooks
After an outage of the receiving system you may have hundreds of failed deliveries. Sending them all at once can knock the receiver over again, and sending an old order update can overwrite a newer one. A replay is therefore a throttled job with a check up front:
- Dry run first. Pick the failures you want (by webhook, topic, HTTP status, time window, or search). The check shows how many would be sent and how many would be skipped, and why. Nothing is sent.
- Throttled. A few deliveries per minute (default 20, up to 120). The job runs in the background through Action Scheduler.
- Up to 1,000 deliveries per job. For larger backlogs narrow the selection (for example by time window or topic) and run it in several jobs.
- Old failures are skipped. Deliveries older than a set age (default 168 hours) are left alone.
- Blocked destinations are skipped. A webhook that is paused or disabled in WooCommerce, or whose circuit breaker is open, is not sent to.
- Stops by itself. After a set number of failures in a row (default 5), or when the circuit breaker opens, the job pauses and says why. Remaining deliveries stay untouched.
- Pause, resume, cancel at any time. No new log status is introduced: a replayed delivery ends up recovered or failed like any other retry.
On the screen: the Safe replay card on the delivery logs tab, which shows progress while the job runs. From the command line (replay-start asks for confirmation unless you add --yes):
wp hookretry replay-plan --topic="order.*" --from=2026-12-01T08:00:00Z --to=2026-12-01T14:00:00Z
wp hookretry replay-start --topic="order.*" --from=2026-12-01T08:00:00Z --to=2026-12-01T14:00:00Z --rate=30 --stop-after=5
wp hookretry replay-status
wp hookretry replay-pause
wp hookretry replay-resume
wp hookretry replay-cancel
Retrying a single delivery, or a few selected ones, by hand stays an explicit choice and is not throttled.
3. Stale-event protection
A failed order.updated delivery is only useful if the receiver does not already know a newer state of that order. Replay and automatic retries therefore compare deliveries of the same resource (the same order, product or customer):
- If a newer delivery of the same resource already arrived, the old failure is not sent. It is marked as discarded with the reason superseded, so it still shows in the log.
- If only another failed delivery of that resource is newer, only the newest one is sent. The older ones are marked the same way.
- This applies to topics that carry a full snapshot of a resource (created, updated, restored). A deleted event is not a snapshot and is never treated as replaceable.
- Automatic retries also stop when the order status changed since the failure (setting abort auto retry on state change, on by default).
4. Failure triage
When a client says "orders are not reaching the ERP", you want facts before you open a support case. The triage report answers that in one file per store:
- Summary. Failures in a time window (default 24 hours, up to 90 days), grouped by webhook, topic, HTTP status and hour, plus the items that need attention, open circuit breakers, the state of a running replay and the applied profile. It contains the store address and the plugin, WooCommerce, WordPress and PHP versions, so you can tell the stores apart.
- Bundle. A JSON file with one redacted record per failure (up to 1,000), with the destination address cut off before the query string and the error message shortened. By default it contains no payloads, no headers, no response bodies and no URL query strings. If you really need them, you add them explicitly; secret headers (authorization, cookies, signatures, API keys) are always removed.
- Merge. Combine the summaries or bundles of several stores into one overview, to see whether many clients fail on the same receiver or the same HTTP status.
- Nothing is sent anywhere. You download the file, or your own monitoring requests it from the store.
wp hookretry triage-summary --hours=48
wp hookretry triage-summary --format=json > store-a.json
wp hookretry triage-export triage-store-a.json --hours=48
wp hookretry triage-merge store-a.json store-b.json store-c.json
5. REST routes
For your own monitoring, the plugin exposes read and control routes under /wp-json/hookretry/v1/. They require an administrator or shop manager account (for example with an application password). Typical ones:
GET /wp-json/hookretry/v1/health
GET /wp-json/hookretry/v1/logs
GET /wp-json/hookretry/v1/triage/summary
GET /wp-json/hookretry/v1/triage/bundle
GET /wp-json/hookretry/v1/profile
POST /wp-json/hookretry/v1/replay/plan
GET /wp-json/hookretry/v1/replay
POST /wp-json/hookretry/v1/replay/pause
6. WP-CLI reference
| Command | What it does |
|---|---|
wp hookretry status | Health of the recovery system on this store. |
wp hookretry logs | List delivery records. Filters: --status, --webhook_id, --resource_id, --topic (a trailing * matches a prefix), --http_status, --from, --to, --search, --unresolved, --dead, --limit, --fields, --format. |
wp hookretry settings-list|settings-get|settings-set | Read and change settings; secrets are shown as set / not set; invalid values are refused. |
wp hookretry profile-export|profile-validate|profile-diff|profile-apply|profile-rollback|profile-status | Configuration profiles. |
wp hookretry replay-plan|replay-start|replay-status|replay-pause|replay-resume|replay-cancel | Safe replay. replay-plan never sends. |
wp hookretry triage-summary|triage-export|triage-merge | Failure triage. |
wp hookretry retry <id> | Retry one delivery. --mode=regenerate builds the payload from the current data; --force sends even if the order status changed or the circuit breaker is open. |
wp hookretry reactivate <webhook_id> | Switch a webhook that WooCommerce disabled back on. |
wp hookretry cleanup --days=N | Delete old log records. |
wp hookretry export-settings|import-settings | Plain settings file export and import. Notification endpoints are left out unless you ask for them. |
7. Settings reference
| Setting | Profile path | Default | Range |
|---|---|---|---|
auto_retry | retry.auto | yes | yes / no |
max_retries | retry.max | 3 | 1–5 |
backoff_minutes | retry.backoff_minutes | 2, 10, 30, 60, 120 | five values, 1–1440 minutes each |
abort_auto_on_state_change | retry.abort_on_state_change | yes | yes / no |
cb_enabled | circuit_breaker.enabled | yes | yes / no |
cb_threshold | circuit_breaker.threshold | 10 | 3–100 failures |
cb_window | circuit_breaker.window_minutes | 5 | 1–1440 |
cb_cooldown | circuit_breaker.cooldown_minutes | 30 | 5–1440 |
idempotency_header | delivery.idempotency_header | X-Idempotency-Key | a valid header name |
log_all_deliveries | delivery.log_all_deliveries | no | yes / no (yes needs confirmation in a profile) |
retention_days | retention.resolved_days | 30 | 1–365 |
unresolved_retention_days | retention.unresolved_days | 90 | 0–3650 (0 keeps them) |
encrypt_payloads | security.encrypt_payloads | yes | yes / no (no needs confirmation in a profile) |
preserve_data_on_uninstall | security.preserve_data_on_uninstall | no | yes / no (yes needs confirmation in a profile) |
enable_email_alerts | alerts.email | yes | yes / no |
alert_emails | alerts.recipients | empty | comma-separated addresses |
alert_disabled | alerts.disabled_webhook | yes | yes / no |
enable_recovery_digest | alerts.recovery_digest | yes | yes / no |
alert_cooldown | alerts.cooldown_minutes | 15 | 1–1440 |
replay_rate_per_minute | not in profiles | 20 | 1–120 |
replay_max_age_hours | not in profiles | 168 | 1–8760 |
replay_stop_after_failures | not in profiles | 5 | 1–100 |
slack_webhook, discord_webhook, telegram_bot_token, telegram_chat_id, custom_webhook | endpoints.* | empty | only from a constant or an environment variable in profiles |
8. What the plugin does not do
- It does not measure uptime of the receiving system. It reacts to deliveries that WooCommerce tried and that failed.
- It does not repair data on the receiving side: a recovered delivery is the same event, sent again, so the receiver should treat repeats safely (the idempotency header helps).
- It has no central server. Each store keeps its own data; multi-store views are built by you from the triage files or REST routes.
Questions
Write to support [at] hookretry.com and attach a triage summary if you have one. Back to the product page. Running the API Ingestion Buffer too? See its Agency Guide.