Skip to content

evoDJWebhooks reference

Events

EventWhen it is sent
order.createdA new DJ-Catalog2 order is saved.
order.status_changedAn order changes status, from the orders panel or from the frontend. It carries the previous status when it is known.
order.updatedAn existing order is saved with no known status change. Off by default.
pingThe 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 onDJC2AfterOrderStatusChange event.
  • 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_status can be empty there.
  • Statuses are DJ-Catalog2’s letters: N new, A accepted by the customer, P paid, C confirmed, R rejected, W cancelled by the customer and F completed.

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.

HeaderContent
Content-Typeapplication/json
User-AgentevoDJWebhooks/1.0
X-Evo-EventThe event: order.created, order.status_changed, order.updated or ping.
X-Evo-DeliveryDelivery identifier. It is the same on every retry: use it to deduplicate on the receiver.
X-Evo-SignatureOnly if a secret is set: t=<unix>,v1=<hmac>.
X-DJC2-Event, X-DJC2-Order-Id, X-DJC2-Order-Status, X-DJC2-TokenOnly 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.

  1. Split t and the v1 values out of the header.
  2. Reject the notice if t is more than 5 minutes away from the receiver’s clock.
  3. Compute the HMAC and compare it with each v1 using a constant-time comparison.
  4. 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:

FieldContent
eventThe event.
delivery_idThe same value as X-Evo-Delivery.
sent_atDate and time of the attempt, in UTC (ISO 8601).
sourceThe site name set in Joomla.
status, previous_statusNew and previous status letter (may be null).
payload_levelreference or full.
orderThe 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:

ResultWhat happens
Network error (including missing cURL), 408, 425, 429 or 5xxRetried, if attempts remain.
Other 4xx and 3xxPermanent failure: not retried.
Blocked destination or deleted orderPermanent 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>:

ValueMeaning
blocked:emptyThere is no URL.
blocked:invalidThe URL is not valid.
blocked:schemeIt does not use https (or http, with private networks allowed).
blocked:credentialsThe URL carries a username or password.
blocked:portPort out of range.
blocked:hostHost name not allowed.
blocked:unresolvedThe name does not resolve to any address.
blocked:privateThe name points to a private, reserved or cloud metadata network.
order_not_foundThe order no longer exists.
curl_missingThe 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 localhost and names ending in .local, .internal, .localdomain, .localhost or .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 routeReturns
GET /api/index.php/v1/evodjwebhooks/deliveriesList of deliveries.
GET /api/index.php/v1/evodjwebhooks/deliveries/:idOne delivery by numeric id.
GET /api/index.php/v1/evodjwebhooks/statsDeliveries by state over the last days.
ParameterRouteEffect
filter_statedeliveriespending, delivered or failed
filter_eventdeliveriesOne of the events above
filter_orderdeliveriesOrder id
page[limit], page[offset]deliveriesPagination; the limit runs from 1 to 100 (20 by default)
daysstats1 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 permissionToolWhat it does
Read (settings)evodjwebhooks_get_settingsSettings, configuration warnings and the URL check.
Read (deliveries)evodjwebhooks_list_deliveriesLists deliveries. Filters state, event, order_id, limit (1 to 100) and offset.
Read (deliveries)evodjwebhooks_get_deliveryOne delivery by id.
Read (deliveries)evodjwebhooks_statsDeliveries by state over the last days (30 by default).
Write (settings)evodjwebhooks_set_settingsChanges settings. Requires core.admin, human approval and a URL that passes the check.
Write (deliveries)evodjwebhooks_retry_deliveryResets a delivery’s attempts and sends it now. Requires core.edit and human approval.
Write (deliveries)evodjwebhooks_send_testSends 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 frequencyTaskWhat it does
Every 5 minutesevodjwebhooks.deliverSends the pending deliveries whose next attempt is due.
Every 24 hoursevodjwebhooks.purgeDeletes finished deliveries older than the retention period.