evoDJWebhooks reference
Events
| Event | When it is sent |
|---|---|
order.created | A new DJ-Catalog2 order is saved. |
order.status_changed | An order changes status, from the orders panel or from the frontend. It carries the previous status when it is known. |
order.updated | An existing order is saved with no known status change. Off by default. |
ping | The connection test from the “Send test” button. It carries no order data. |
How they are detected:
- A new order and the saving of an order are detected through Joomla’s content save event, in the DJ-Catalog2 order context.
- Status changes are also detected through DJ-Catalog2’s own
onDJC2AfterOrderStatusChangeevent. - A change made in the orders panel raises two internal notices in DJ-Catalog2. evoDJWebhooks merges them: within the same request, one order, one event and one status are sent only once.
- On the frontend DJ-Catalog2 does not announce the previous status before saving, so
previous_statuscan be empty there. - Statuses are DJ-Catalog2’s letters:
Nnew,Aaccepted by the customer,Ppaid,Cconfirmed,Rrejected,Wcancelled by the customer andFcompleted.
The request
A POST with a UTF-8 JSON body to the configured URL. The receiver’s response is not stored. Redirects are not followed: a 3xx response counts as a failure.
| Header | Content |
|---|---|
Content-Type | application/json |
User-Agent | evoDJWebhooks/1.0 |
X-Evo-Event | The event: order.created, order.status_changed, order.updated or ping. |
X-Evo-Delivery | Delivery identifier. It is the same on every retry: use it to deduplicate on the receiver. |
X-Evo-Signature | Only if a secret is set: t=<unix>,v1=<hmac>. |
X-DJC2-Event, X-DJC2-Order-Id, X-DJC2-Order-Status, X-DJC2-Token | Only with “X-DJC2-* headers” on, and not on tests. The token only if you have set one. |
Checking the signature
v1 is the HMAC-SHA256, in hexadecimal, of the string <t>.<body>, with the secret as the key. <t> is the Unix timestamp from the header and <body> is the body exactly as received, not reformatted.
- Split
tand thev1values out of the header. - Reject the notice if
tis more than 5 minutes away from the receiver’s clock. - Compute the HMAC and compare it with each
v1using a constant-time comparison. - Accept if any of them matches. This lets you rotate the secret without downtime: during the changeover, accept signatures computed with the old key and the new one.
// $header = value of X-Evo-Signature; $body = raw request body
$t = null;
$sigs = [];
foreach (explode(',', $header) as $part) {
[$k, $v] = array_pad(explode('=', trim($part), 2), 2, '');
if ($k === 't' && ctype_digit($v)) { $t = (int) $v; }
if ($k === 'v1' && $v !== '') { $sigs[] = $v; }
}
$ok = false;
if ($t !== null && abs(time() - $t) <= 300) {
$expected = hash_hmac('sha256', $t . '.' . $body, $secret);
foreach ($sigs as $s) { $ok = $ok || hash_equals($expected, $s); }
}
Payload
Fields common to the order events:
| Field | Content |
|---|---|
event | The event. |
delivery_id | The same value as X-Evo-Delivery. |
sent_at | Date and time of the attempt, in UTC (ISO 8601). |
source | The site name set in Joomla. |
status, previous_status | New and previous status letter (may be null). |
payload_level | reference or full. |
order | The order, depending on the level. |
The ping carries event, delivery_id, sent_at, source and a message field with fixed text, and no order data.
reference level, fields in order: id, order_number, status, status_name, created_date, modified, currency, total, tax, grand_total, payment_method, payment_total, delivery_method, delivery_total, invoice_number, proforma_number, items_count and items. Each line in items carries item_id, combination_id, sku, item_name, quantity, unit and total.
full level: all the order fields as DJ-Catalog2 stores them, plus status_name, custom_fields (the extra checkout form fields, by alias), items with every field of each line and history with the order history and its comments. token, payment_params, delivery_params and recurring_params never leave.
Example of a reference level notice (made-up values):
{
"event": "order.status_changed",
"delivery_id": "0123456789abcdef0123456789abcdef",
"sent_at": "2026-01-15T10:30:00+00:00",
"source": "My shop",
"status": "P",
"previous_status": "N",
"payload_level": "reference",
"order": {
"id": 42,
"order_number": 1042,
"status": "P",
"status_name": "Paid",
"currency": "EUR",
"grand_total": 121.0,
"items_count": 1,
"items": [
{"item_id": 7, "combination_id": 0, "sku": "ABC-1", "item_name": "Product", "quantity": 1.0, "unit": "pcs", "total": 100.0}
]
}
}
Success, retries and failures
A 2xx status counts as delivered. Anything else depends on the result:
| Result | What happens |
|---|---|
| Network error (including missing cURL), 408, 425, 429 or 5xx | Retried, if attempts remain. |
| Other 4xx and 3xx | Permanent failure: not retried. |
| Blocked destination or deleted order | Permanent failure. |
Failed test (ping) | Not retried. |
Retries wait 1, 2, 4, 8… minutes after each attempt, capped at 6 hours. If the receiver sends Retry-After with a longer wait, it is respected (also capped at 6 hours). The maximum number of attempts is the “Maximum attempts” setting. They are run by the “evoDJWebhooks: delivery retries” scheduled task, which runs every 5 minutes and handles up to 25 deliveries per run; in practice a retry can come up to those 5 minutes later than the calculated wait.
Retries rebuild the payload from the order as it is at that moment: if the order changed, the retry carries the current data. If the order has been deleted, the delivery fails with order_not_found.
Values in the log’s “Error” column, besides cURL’s text (curl_<code>: …) and http_<code>:
| Value | Meaning |
|---|---|
blocked:empty | There is no URL. |
blocked:invalid | The URL is not valid. |
blocked:scheme | It does not use https (or http, with private networks allowed). |
blocked:credentials | The URL carries a username or password. |
blocked:port | Port out of range. |
blocked:host | Host name not allowed. |
blocked:unresolved | The name does not resolve to any address. |
blocked:private | The name points to a private, reserved or cloud metadata network. |
order_not_found | The order no longer exists. |
curl_missing | The PHP cURL extension is missing. |
Destinations that are blocked
The URL is checked before every send:
- https only, with no credentials in the URL. With “Allow private networks and http”, http is accepted too.
- The host name is resolved and rejected if any of its addresses is loopback, private, shared (CGNAT), link-local, reserved, documentation, multicast, or a local IPv6 address (including mapped IPv4 and 6to4).
- Cloud metadata names are rejected and, unless private networks are allowed, so are
localhostand names ending in.local,.internal,.localdomain,.localhostor.home.arpa. - Cloud metadata addresses are always blocked, even with private networks allowed.
- The connection is pinned to the addresses already checked, so a DNS change between the check and the send cannot be used to get around it.
- Redirects are not followed.
REST API
Read-only routes. Use the X-Joomla-Token: <token> header and the core.manage permission on com_evodjwebhooks. Without it, the API returns 403.
| Method and route | Returns |
|---|---|
GET /api/index.php/v1/evodjwebhooks/deliveries | List of deliveries. |
GET /api/index.php/v1/evodjwebhooks/deliveries/:id | One delivery by numeric id. |
GET /api/index.php/v1/evodjwebhooks/stats | Deliveries by state over the last days. |
| Parameter | Route | Effect |
|---|---|---|
filter_state | deliveries | pending, delivered or failed |
filter_event | deliveries | One of the events above |
filter_order | deliveries | Order id |
page[limit], page[offset] | deliveries | Pagination; the limit runs from 1 to 100 (20 by default) |
days | stats | 1 to 365 (30 by default) |
Each delivery carries id, uid, order_id, event, status, previous_status, state, is_test, attempts, http_code, error, created, last_attempt, next_attempt and delivered_at. The statistics return total, delivered, pending and failed. Responses are not cached. Neither the API nor anything in the log includes the payload that was sent.
MCP tools (evoMCP)
They come from the evomcp group plugin. You need evoMCP, and the connection must have permission on the evodjwebhooks component. The user also needs core.manage on com_evodjwebhooks.
| evoMCP permission | Tool | What it does |
|---|---|---|
| Read (settings) | evodjwebhooks_get_settings | Settings, configuration warnings and the URL check. |
| Read (deliveries) | evodjwebhooks_list_deliveries | Lists deliveries. Filters state, event, order_id, limit (1 to 100) and offset. |
| Read (deliveries) | evodjwebhooks_get_delivery | One delivery by id. |
| Read (deliveries) | evodjwebhooks_stats | Deliveries by state over the last days (30 by default). |
| Write (settings) | evodjwebhooks_set_settings | Changes settings. Requires core.admin, human approval and a URL that passes the check. |
| Write (deliveries) | evodjwebhooks_retry_delivery | Resets a delivery’s attempts and sends it now. Requires core.edit and human approval. |
| Write (deliveries) | evodjwebhooks_send_test | Sends a ping. Requires core.edit and human approval. |
The write tools support dry_run: set_settings reports what would change and whether the URL is valid, retry_delivery reports what it would resend and at which data level, and send_test reports where it would send. No tool reads or writes the signing secret or the static token. set_settings does not accept them, and has_secret and has_legacy_token only say whether they are set.
Scheduled tasks
| Default frequency | Task | What it does |
|---|---|---|
| Every 5 minutes | evodjwebhooks.deliver | Sends the pending deliveries whose next attempt is due. |
| Every 24 hours | evodjwebhooks.purge | Deletes finished deliveries older than the retention period. |