WAB Merchant Automation Failure and Recovery Protocol
A merchant automation test should deliberately exercise local failure cases before handling real value. Use simulated observations and disposable Testnet credentials. Start by recording an order and its watch identifier. Inject duplicate observations and require exactly one logical fulfillment. Restart the worker between observation and delivery and verify that the durable job survives. Restart again after delivery but before acknowledgment and verify that the downstream idempotency key prevents a second delivery.
Test an expired invoice, partial payment, incorrect address, wrong network and a disappearing unconfirmed transaction. Require explicit review or a predefined policy rather than silent fulfillment. When a transaction ID is independently known, the documented status endpoint accepts a JSON object with net and txid.
curl -fsS -X POST https://api.wab.codes/api/v5/btc/tx/status \
-H "X-BTC-KEY: $KEY" -H 'Content-Type: application/json' \
-d "$(jq -nc --arg txid "$TXID" '{net:"test",txid:$txid}')" | jq .
Set TXID to the actual Testnet transaction identifier. Check ok and result.confirmations; status alone does not prove the intended output was paid. Correlate the transaction with invoice-specific evidence. Publish sanitized test outcomes, not keys or recovery material.
Laboratory: https://thamer.org/lab
API reference: https://thamer.org/api
Terms: https://thamer.org/tos
Testnet only. This procedure has not been executed as part of this publication.
