Events
Each business change records an event in the same transaction as the change itself: an event is never lost, and there is never an event for a change rolled back. It is then fanned out to the subscribed webhooks and published on Kafka.
The envelope
Section titled “The envelope”The events of the journal (GET /events) and of Kafka all have the same envelope:
{ "eventId": "01a21e8a-0fe8-7b2e-a4b1-5c8f0d2e9a13", "eventType": "authorization.captured", "occurredAt": "2026-11-27T19:44:54.120Z", "tenantId": "a0000000-0000-0000-0000-000000000001", "aggregateType": "authorization", "aggregateId": "01a21e8a-0fe2-7566-8cfc-42682e0e27e9", "version": 3, "correlationId": "01a21e8a-0fe2-7566-8cfc-42682e0e27e9", "causationId": null, "actor": "admin@banque-aurore.fr", "actorType": "user", "payload": { "status": "captured", "amount": 4250, "captured_amount": 4250, … }, "metadata": { "source": "ubo-auth-engine", "visa_message": "TC05.presentment" }}| Field | Meaning |
|---|---|
eventId |
Unique; to deduplicate (delivery at least once) |
eventType |
<object>.<fact>, see the catalogue |
aggregateType, aggregateId |
The object concerned |
version |
The object’s version number after this change |
correlationId |
The operation the event belongs to (all the events of an authorization share its one) |
causationId |
The event that caused this one, if any |
actor, actorType |
Who: a user, a system (integration) or the platform (system) |
payload |
The object after the change |
metadata |
The origin: service, network message, file and line |
- One topic per object type:
ubo.authorization,ubo.card,ubo.file,ubo.dispute… - Key = the object’s identifier: the events of one object are in order.
- Delivery at least once: deduplicate on
eventId. - A failed publication is retried (2 s × 2ⁿ, 5 minutes at most); the following events of the same object wait behind it.
- The journal keeps the events 30 days after their publication and fan-out.
Catalogue
Section titled “Catalogue”| Area | Types |
|---|---|
| Authorizations | authorization.approved, .declined, .captured, .reversed, .partially_reversed, .refunded, .incremented, .expired, .confirmed, .credit_authorized, .advised, .stip_advised, .acquirer_reversed, .disputed, .fraud_reported |
| Cards | card.status_changed, card.renewed, card.replaced |
| Disputes | dispute.created, .status_changed, .decision_proposed, .decision_executed, .deadline_missed |
| Files | file.received, .validated, .rejected, .integrated, .integration_failed, .generated, .sent, .acknowledged, .refused |
| Transfers | transfer.received, .rejected, .delivered, .retrieved, .acknowledged, .refused, .failed, .dead |
| Manufacturing | personalization.order_created, .order_routed, .order_completed, .order_rejected, .file_generated, .file_sent, .batch_failed |
| Accounting | accounting.day_closed |
| Security and rules | security.asset_expiring, .asset_rotated, .asset_revoked, rule.service_degraded |

