Agency Guide: API Ingestion Buffer Pro
In short: the free plugin already queues ERP stock and price feeds so the shop stays fast. Pro adds the tools you need once you run it for clients: the same settings on every store, protection against bad or outdated updates, a safe way to replay failures, and a one-file health report.
Everything on this page is a Pro feature unless it says otherwise. Nothing here sends data to HookRetry: the plugin never contacts us, and the support bundle is a file you choose to share.
1. Configuration profiles
A profile is a small, named, versioned JSON file that sets the buffer's policy on 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": "wcaib-profile",
"schema_version": "2.0",
"profile": { "name": "Agency standard", "revision": 3, "description": "Default for retail clients" },
"policy": {
"processing": { "batch_size": 90, "max_attempts": 5, "direct_sql": false },
"retention": { "completed_days": 14, "dead_letter_days": 60 },
"guard": { "supersede_stale": true, "price_change_percent": 40, "stock_change_percent": 60 },
"replay": { "items_per_minute": 50, "stop_failure_percent": 20 }
},
"endpoints": {
"alert_email": { "from_env": "AGENCY_ALERT_EMAIL" },
"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.
- 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. Turning on the Direct SQL engine writes straight to the database without WooCommerce's save hooks, so a profile that enables it is blocked until you confirm it.
- Credentials stay out of the file. The alert e-mail address and the webhook addresses are read from a constant in
wp-config.phpor from an environment variable ({"from_env": "NAME"}). A credential written into the file is refused unless you explicitly allow it. - Rollback. The previous values of every changed setting are kept (the last five applications), and one action puts them back.
On the screen: Settings & Diagnostics → Configuration profile. From the command line:
wp wcaib profile-export agency-standard.json --name="Agency standard" --revision=3
wp wcaib profile-plan agency-standard.json
wp wcaib profile-apply agency-standard.json --dry-run
wp wcaib profile-apply agency-standard.json
wp wcaib profile-status
wp wcaib profile-rollback
2. Stale-update protection
ERP feeds often send the same product several times while the queue is busy. Updates for the same product are always applied in the order they arrived. With stale-update protection switched on, an older queued update is skipped when a newer queued update for the same product already contains every field the older one would write.
- An older update that writes more fields than the newer one is not skipped: skipping it would lose data.
- Skipped updates stay visible in the logs as Superseded, with the id of the update that replaced them.
- Setting: Stale Updates on the settings screen, or
guard.supersede_stalein a profile. Off by default.
3. Price and stock guard
One wrong feed can set a whole catalogue to a price of 0.10 or empty the stock. The guard holds an update when it would change the current price or stock quantity by more than a percentage you choose.
- Two limits: Price Guard (regular and sale price) and Stock Guard (stock quantity), each in percent.
0switches the guard off. - A held update does not touch the product. Newer updates for the same product wait behind it, so the order stays correct.
- Products that have no stock quantity or price yet are never held.
- Held updates appear under Queue & DLQ Logs → Held, with the reason on the status badge. Select them and use the bulk action Release held (apply now) or Reject held (never apply). A released update is applied once, without the guard.
- One e-mail to the alert address (at most one every 15 minutes) tells you something waits for a decision. Developers can listen to the
wcaib_item_heldaction.
wp wcaib held
wp wcaib release 321 322
wp wcaib release --all
wp wcaib reject --all
4. Safe replay of failed items
Items that failed all retries end up in the dead-letter queue (DLQ). Putting thousands of them back at once can overload the shop again, and replaying an old update can overwrite newer data. A replay is therefore a throttled job:
- Dry run first. The check shows how many items match, how many would be skipped, and the most common errors. Nothing changes.
- Throttled. A few items per minute (default 50) are put back in the queue, and only while the previous ones were processed.
- No old data over new. Items whose product already has a newer, completed update are skipped and stay in the DLQ. You can include them explicitly.
- Stops by itself. When more than a set share (default 20%) of the replayed items fail again, the replay stops and says why. Remaining items stay untouched.
- Pause, resume, stop at any time.
On the screen: Queue & DLQ Logs → Replay DLQ. From the command line the command is a dry run unless you add --yes:
wp wcaib replay-dlq --action-type=stock_update
wp wcaib replay-dlq --action-type=stock_update --yes --rate=30 --stop-percent=10
wp wcaib replay-status
wp wcaib replay-pause
wp wcaib replay-resume
wp wcaib replay-stop
Selecting items in the table and using "Re-queue Selected", or the retry button on a single item, stays an explicit choice and is not throttled.
5. Support bundle and monitoring
The support bundle is one read-only JSON file that answers the first questions of every support case: PHP, WordPress and WooCommerce versions, memory limit, queue numbers by status, the age of the oldest waiting item, items stuck in processing, the most common error messages, worker and Action Scheduler state, applied profile, and a plain-language list of problems it found (worst first).
- What it never contains: product data (payloads), e-mail or webhook addresses, the site address, or credentials. Settings with secrets show only set or not set. SKUs are replaced by short codes unless you ask for them.
- Nothing is sent anywhere. A person on the store downloads it and decides who receives it. Download it from Settings & Diagnostics → Support Bundle.
- For your own monitoring you can pull it: an administrator account (for example with an application password) can call the read-only route below.
wp wcaib triage --summary
wp wcaib triage --file=triage.json
GET /wp-json/wcaib/v1/triage
GET /wp-json/wcaib/v1/triage?include_skus=1
6. Webhook secrets
A Slack or Discord webhook address is a credential: anyone who has it can post into the channel. Pro stores the addresses encrypted in the database (the key is derived from the site's secret keys), so they do not show up in plain text in backups or database dumps. Addresses saved by earlier versions are encrypted automatically.
To keep them out of the database completely, define them in wp-config.php; a constant always wins over the stored value and the field on the settings screen becomes read-only:
define( 'WCAIB_SLACK_WEBHOOK', 'https://hooks.slack.com/services/…' );
define( 'WCAIB_DISCORD_WEBHOOK', 'https://discord.com/api/webhooks/…' );
If a site's secret keys (the salts in wp-config.php) are changed, a stored address can no longer be decrypted and counts as not set; enter it again.
7. What the ingest endpoint tells the sender
These two responses help the system that sends the feed to notice mistakes early. The first applies to every edition, the second to Pro.
- Warnings. When an item carries a
sale_pricethat is not lower than itsregular_price, the response (HTTP 202) contains awarningslist with the index of the item. The item is still queued; WooCommerce removes such a sale price. - Idempotency conflict. A request with an
X-Idempotency-Keythat was already used with the same body is answered as a duplicate (HTTP 200,"deduplicated": true). If the same key arrives with a different body, the request is refused with HTTP 409 (wcaib_idempotency_conflict) and nothing is queued, because dropping the new data silently would hide a bug in the sender. Use a new key for new data.
8. WP-CLI reference
| Command | What it does |
|---|---|
wp wcaib stats | Queue numbers. |
wp wcaib run | Process waiting items now. |
wp wcaib logs | List queue rows. Filters: --status, --action-type, --engine, --sku, --batch, --search, --from, --to, --limit, --fields, --format. |
wp wcaib settings-list|settings-get|settings-set | Read and change settings; secrets are shown as set / not set; invalid values are refused. |
wp wcaib profile-export|profile-plan|profile-apply|profile-status|profile-rollback | Configuration profiles. |
wp wcaib held|release|reject | Updates held by the price and stock guard. |
wp wcaib replay-dlq|replay-status|replay-pause|replay-resume|replay-stop|replay-tick | Safe replay. replay-dlq is a dry run without --yes. |
wp wcaib triage | Support bundle. |
wp wcaib flush | Delete rows by status. |
wp wcaib export-settings|import-settings | Settings file export and import (validated completely before anything is written). |
9. Settings reference
| Setting | Profile path | Default | Range |
|---|---|---|---|
batch_size | processing.batch_size | 50 | 10–500 |
max_attempts | processing.max_attempts | 3 | 1–10 |
enable_direct_sql | processing.direct_sql | no | yes / no (needs confirmation in a profile) |
retention_days | retention.completed_days | 14 | 1–365 |
dlq_retention_days | retention.dead_letter_days | 0 (keep) | 0–3650 |
preserve_data_on_uninstall | retention.preserve_data_on_uninstall | no | yes / no |
supersede_stale | guard.supersede_stale | no | yes / no |
guard_price_percent | guard.price_change_percent | 0 (off) | 0–1000 |
guard_stock_percent | guard.stock_change_percent | 0 (off) | 0–1000 |
replay_rate | replay.items_per_minute | 50 | 1–1000 |
replay_stop_percent | replay.stop_failure_percent | 20 | 1–100 |
alert_email, slack_webhook, discord_webhook | endpoints.* | empty | only from a constant or an environment variable in profiles |
Questions
Write to support [at] hookretry.com and attach the support bundle if you have one. Back to the product page. Running Webhook Recovery too? See its Agency Guide.