Webhooks
Signed webhooks for orders, stock, customers, cash-ups and more: the payload, checking signatures, retries and every topic.
On this page
Add a webhook in Admin › Integrations › Webhooks (Business plan and up). Stater posts JSON when something changes:
{ "id": "6f0c…", "topic": "order.created", "ref": "SO-1042", "store_id": 1, "at": "2026-11-08T03:12:44Z", "data": { … } }
Signatures#
Headers: Stater-Event (topic), Stater-Delivery (event id, use it to ignore repeats), Stater-Signature: t=<unix>,v1=<hex> where v1 is HMAC-SHA256 of t + "." + body with the webhook's secret. Reject signatures older than five minutes.
The signing secret (whsec_…) is not encrypted like saved integration passwords: the receiving system holds the same secret to check signatures, and the dispatcher reads it for every delivery. Treat database backups as sensitive for this reason too (Secrets).
Delivery#
Answer with any 2xx within 10 seconds. Anything else is retried with exponential back-off (eight attempts, about two hours). Subscribe to exact topics, a family (order.*) or everything (no topics).
An event is recorded in the same transaction as the change, then delivered at least once. Each replica's dispatcher claims outbox rows with FOR UPDATE SKIP LOCKED, so they share the work without duplicates. stater_outbox_retrying in /metrics shows deliveries being retried (Monitoring).
Webhooks refuse link-local and cloud metadata addresses always. STATER_WEBHOOK_ALLOW_PRIVATE lets them reach private and loopback addresses for testing, but not at all when STATER_PRIVATE_CONNECTORS=false (Private networks). Threat feeds never block a webhook: webhooks are always monitor-only (Modes).
Webhooks set up under a licence keep working when it lapses and is restricted; they stop when KazLabs withdraws the licence, and when a licence without webhooks is installed they pause, with nothing deleted (Plans and licences).
Core topics#
order.created, order.updated, order.handed_over, order.cancelled, return.created, customer.created, customer.updated, deal.updated, task.updated, product.created, product.updated, stock.changed, transfer.updated, count.updated, count.posted, purchase_order.updated, delivery.received, cashup.counted, cashup.approved, cashup.movement, cashup.closed, cashup.banked, cashup.reopened, invoice.updated, shift.updated, store.updated, register.updated, settings.updated.
stock.changed fires whenever on-hand stock moves at a store: a sale, a return, picking or cancelling an order, a delivery, an adjustment, a posted count, opening stock for a new product, and a transfer being sent (at the sending store), received (at the receiving store) or cancelled (back at the sending store). Where the change is limited to known products, data.product_ids lists them, with data.reason such as adjust, opening, transfer_out, transfer_in or transfer_cancelled; re-read those products rather than the whole catalogue. count.updated fires when a stock count starts, goes to review, goes back to counting or is cancelled (data.status); count.posted when it is posted.
Feature topics#
| Topic | When | Page |
|---|---|---|
accounting.updated |
A day's or a document's status changed (software, store, day or reference, status; never amounts) | Accounting |
counter_layout.published |
A counter layout was published or archived (layout_id, name, version, store_id, register_id; version 0 means the layout no longer applies) |
Counter layouts |
device.updated |
An offline till was set up, changed or removed | Offline counter |
backup.completed, backup.failed, backup.verify_failed |
A backup finished, failed, or failed its check ({backup_id, kind, status, size_bytes, error}, never paths or credentials) |
Database and backups |
email.* topics are live updates for signed-in browsers only, not webhook topics (Email).