Skip to content

Event ID

An event ID identifies an event within an agreed scope. A repeat delivery needs to be distinguished from a new event.

APIs & Integration

An event ID identifies a particular event, such as a change to an order. Its uniqueness depends on the agreed scope. An order number alone is insufficient: several different events can occur on the same order.

Separate the event from its delivery

In a fictional portal, an order's delivery address changes. The corresponding notification reaches the ERP twice. These are two deliveries of the same change. A subsequent address change is a new event and needs its own identifier under the agreed rules.

Check uniqueness within the right scope

CloudEvents 1.0.2 requires uniqueness for the combination of source and event identifier, namely source and id. Agree how repeat deliveries are identified and how long processed identifiers are taken into account. An ID alone does not prevent the same change from being applied twice. Nor does it confirm that the ERP has completed the operation successfully.

Sources

Articles on this topic

APIs & Integration with ASES

ERP, CRM and shop cleanly connected