Webhook events
Every event a webhook can be told about, with the version and the shape of its
data. The same catalogue, as JSON, is served by your installation at
GET /api/v1/webhooks/catalogue and committed as
docs/_generated/webhook-events.json; the subscription screen on Settings →
Integrations → Webhooks shows it. Subscribe to one event, or to a family with
family.*.
What a receiver is sent
A POST with a JSON body:
{
"id": "0190f1d2-1111-7000-8000-000000000000",
"type": "accounting.auditor_pack_requested",
"version": 1,
"occurred_at": "2026-11-03T14:00:00+00:00",
"entity_id": "0190f1d2-2222-7000-8000-000000000000",
"data": {
"pack_id": "0190f1d2-0000-7000-8000-000000000000"
}
}
idis the event's own id. Deliveries are at least once: if you see anidtwice, you have already handled it.versionis the version ofdatabelow. A new version changesdatain a way you need to know about; new fields can arrive in any version, so ignore the ones you do not know.datacarries identifiers, not documents: read the order through the API with the id it names. Events outlive their payloads, and a webhook is not a place to copy customers' details.
Checking the signature
Every request carries ERP-Signature: t=<unix seconds>,v1=<hex>, where the hex is
HMAC-SHA256 over "<t>." + body with the webhook's signing secret (shown once,
when the webhook was added or its secret rotated). Check it on the raw body,
before parsing it, and refuse anything more than five minutes old:
import hashlib, hmac, time
def verify(secret: str, header: str, body: bytes, tolerance: int = 300) -> bool:
fields = dict(part.split("=", 1) for part in header.split(","))
timestamp = int(fields["t"])
if abs(time.time() - timestamp) > tolerance:
return False
expected = hmac.new(secret.encode(), f"{timestamp}.".encode() + body, hashlib.sha256)
return hmac.compare_digest(expected.hexdigest(), fields.get("v1", ""))
import { verifyWebhookSignature } from '@erp/sdk'
const ok = await verifyWebhookSignature({ secret, header, body: rawBody })
Answer any 2xx within ten seconds and the delivery is done. Anything else is
tried again — 7 attempts in all, after 1 minute, 5 minutes, 30 minutes, 2 hours, 6 hours and 12 hours — and then held as
failed, where an administrator can send it again.
Events
accounting.*
accounting.auditor_pack_requested — version 1
An auditor pack was asked for and is waiting to be built.
| Field | Type | Always sent |
|---|---|---|
pack_id | string (uuid) | yes |
accounting.bill_mail_received — version 1
A message was sent to the company's bill address and is waiting to be read.
| Field | Type | Always sent |
|---|---|---|
delivery_id | string (uuid) | yes |
address.*
address.needs_geocoding — version 1
An address was added or changed and has not been put on a map yet.
| Field | Type | Always sent |
|---|---|---|
address_id | string (uuid) | yes |
bank_account.*
bank_account.closed — version 1
A bank account was closed.
| Field | Type | Always sent |
|---|---|---|
bank_account_id | string (uuid) | yes |
bank_account.created — version 1
A bank account was added.
| Field | Type | Always sent |
|---|---|---|
bank_account_id | string (uuid) | yes |
bank_lines.*
bank_lines.ingested — version 1
New lines arrived for a bank account, from a feed or a statement.
| Field | Type | Always sent |
|---|---|---|
bank_account_id | string (uuid) | yes |
added | integer | yes |
possible_duplicates | integer | yes |
bank_matching.*
bank_matching.requested — version 1
Something a bank line could be matched to was posted: the matcher runs on the account.
| Field | Type | Always sent |
|---|---|---|
bank_account_id | string (uuid) | yes |
reason | string | yes |
brand.*
brand.merged — version 1
Two brands were merged. The merged one now resolves to the survivor, and every item and rule that named it names the survivor.
| Field | Type | Always sent |
|---|---|---|
survivor_id | string (uuid) | yes |
merged_id | string (uuid) | yes |
survivor_code | string | yes |
merged_code | string | yes |
count.*
count.applied — version 1
A stock count was applied and the book corrected.
| Field | Type | Always sent |
|---|---|---|
count_id | string (uuid) | yes |
number | string | yes |
site_id | string (uuid) | yes |
lines_adjusted | integer | yes |
credit_memo.*
credit_memo.status_changed — version 1
A credit memo was raised, or its state or settlement moved.
| Field | Type | Always sent |
|---|---|---|
credit_memo_id | string (uuid) | yes |
customer_id | string (uuid) | yes |
credit_of_id | string (uuid) or null | yes |
change | one of created, updated, deleted | yes |
fields | list of string | no |
state | string | yes |
settlement | string | yes |
custom_report.*
custom_report.delivery_due — version 1
A scheduled custom report is due to be emailed.
| Field | Type | Always sent |
|---|---|---|
schedule_id | string (uuid) | yes |
run_on | string (date) | yes |
customer.*
customer.approved — version 1
A new account was approved and may now trade.
| Field | Type | Always sent |
|---|---|---|
customer_id | string (uuid) | yes |
number | string | yes |
customer.certificate_expiring — version 1
An exemption certificate expires soon, or already has.
| Field | Type | Always sent |
|---|---|---|
customer_id | string (uuid) | yes |
certificate_id | string (uuid) | yes |
jurisdiction | string | yes |
expires_on | string (date) | yes |
days_remaining | integer | yes |
customer.held — version 1
An account was put on credit hold and cannot order.
| Field | Type | Always sent |
|---|---|---|
customer_id | string (uuid) | yes |
number | string | yes |
customer.licence_expiring — version 1
A customer's licence expires soon, or already has.
| Field | Type | Always sent |
|---|---|---|
customer_id | string (uuid) | yes |
licence_id | string (uuid) | yes |
ship_to_id | string (uuid) or null | yes |
licence_type | string | yes |
issuing_state | string | yes |
expires_on | string (date) | yes |
days_remaining | integer | yes |
customer.merged — version 1
Two customers were merged. The loser now resolves to the survivor.
| Field | Type | Always sent |
|---|---|---|
survivor_id | string (uuid) | yes |
merged_id | string (uuid) | yes |
customer.released — version 1
An account came off credit hold.
| Field | Type | Always sent |
|---|---|---|
customer_id | string (uuid) | yes |
number | string | yes |
customer_invoice.*
customer_invoice.status_changed — version 1
A customer invoice was raised, or its state, settlement or dispute moved.
| Field | Type | Always sent |
|---|---|---|
invoice_id | string (uuid) | yes |
customer_id | string (uuid) | yes |
order_id | string (uuid) or null | yes |
kind | string | yes |
change | one of created, updated, deleted | yes |
fields | list of string | no |
state | string | yes |
settlement | string | yes |
is_disputed | boolean | yes |
customer_licence.*
customer_licence.changed — version 1
A customer's licence on file was added, edited or removed.
| Field | Type | Always sent |
|---|---|---|
customer_id | string (uuid) | yes |
licence_id | string (uuid) | yes |
change | one of created, updated, deleted | yes |
dunning.*
dunning.send_due — version 1
A dunning reminder is ready to send: a step of an approved sequence came due on the hourly run, a person sent it from collections, or a person released it after reviewing the first run after an opening import.
| Field | Type | Always sent |
|---|---|---|
send_id | string (uuid) | yes |
example.*
example.document_approved — version 1
An example document was approved, automatically or by a person.
| Field | Type | Always sent |
|---|---|---|
document_id | string (uuid) | yes |
number | string | yes |
document_date | string (date) | yes |
group_payment_run.*
group_payment_run.released — version 1
A group payment run was released in the paying company. Each company whose bills it paid records the supplier payments against those bills, owed to the paying company instead of paid from its own bank, in its own database.
| Field | Type | Always sent |
|---|---|---|
run_id | string (uuid) | yes |
member_entity_id | string (uuid) | yes |
intercompany_document.*
intercompany_document.posted — version 1
An intercompany invoice, bill, journal or netting posted in one company. Its mirror is made in the counterparty company, in that company's own database.
| Field | Type | Always sent |
|---|---|---|
document_id | string (uuid) | yes |
counterparty_entity_id | string (uuid) | yes |
item.*
item.changed — version 1
An item was created, edited or removed. Names the columns that changed.
| Field | Type | Always sent |
|---|---|---|
item_id | string (uuid) | yes |
change | one of created, updated, deleted | yes |
fields | list of string | no |
item.deleted — version 1
An item nothing referred to was deleted from the catalogue.
| Field | Type | Always sent |
|---|---|---|
item_id | string (uuid) | yes |
sku | string | yes |
template_id | string (uuid) or null | yes |
item_attribute.*
item_attribute.changed — version 1
An item's custom-field attributes, tags or variant values changed.
| Field | Type | Always sent |
|---|---|---|
item_id | string (uuid) | yes |
source | string | yes |
item_availability.*
item_availability.changed — version 1
Stock of an item moved, or was reserved or released: what can be promised changed.
| Field | Type | Always sent |
|---|---|---|
item_id | string (uuid) | yes |
location_ids | list of string (uuid) | no |
item_category.*
item_category.merged — version 1
Two collections were merged. The merged one now resolves to the survivor; its items, sub-collections and the rules that named it moved across.
| Field | Type | Always sent |
|---|---|---|
survivor_id | string (uuid) | yes |
merged_id | string (uuid) | yes |
survivor_code | string | yes |
merged_code | string | yes |
item_image.*
item_image.changed — version 1
An item's primary image or gallery changed.
| Field | Type | Always sent |
|---|---|---|
item_id | string (uuid) | yes |
attachment_id | string (uuid) or null | no |
item_tag.*
item_tag.merged — version 1
Two item tags were merged. The merged one now resolves to the survivor, which every item that wore either now wears.
| Field | Type | Always sent |
|---|---|---|
survivor_id | string (uuid) | yes |
merged_id | string (uuid) | yes |
survivor_code | string | yes |
merged_code | string | yes |
kb.*
kb.needs_embedding — version 1
A customer article was written or revised and has no current vector.
| Field | Type | Always sent |
|---|---|---|
article_id | string (uuid) | yes |