Event envelope
Every event has a stable event ID, event type, creation time, and resource data. Store the event ID before applying business effects so duplicate delivery is harmless.Delivery rules
- Read the raw request body.
- Verify the signature with the endpoint secret.
- Reject invalid or stale signatures.
- Deduplicate by event ID.
- Queue work and return a success response quickly.
- Retry transient processing failures without changing the financial state twice.