WAB Testnet Merchant Invoice Lifecycle
A merchant application owns its invoice database; the Engine observes Bitcoin payments. Create a local order with a unique identifier, expected recipient amount, expiry and delivery policy. Use a disposable Testnet wallet and keep its BTC KEY outside model prompts. The hosted lab is not a self-hosted wallet environment.
curl -fsS -X POST https://api.wab.codes/api/v5/btc/watch/create \
-H "X-BTC-KEY: $KEY" -H 'Content-Type: application/json' \
-d '{"net":"test","type":"taproot","expected_sat":11700,"ttl_sec":3600}' | jq .
After ok=true, persist result.watch_id, address, expected_sat and expires_at against the order. Do not publish the invoice until this write succeeds. If the request times out, reconcile existing watches before allocating another. Treat CREATED, PAYMENT_OBSERVED, FULFILLED and EXPIRED as application-defined states, not guaranteed API status strings. Late and partial payments need an explicit review policy. The expected amount is what the merchant receives, not the sender's inclusive spending budget.
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.
