How delivery works
- At least once. An event can arrive more than once. Once TED Lerian records the status change, it never loses the event.
- Only after the change commits. TED Lerian writes the event in the same transaction as the status. No event describes a status that later disappears.
- Deduplicate on the
(ce-source, ce-id)pair. Thece-idis a UUIDv7 derived from the lifecycle step, so a redelivery repeats it. Read thece-idfrom the event and never rebuild it. - Do not rely on arrival order. Order events by the lifecycle and by the timestamps inside each event.
- CloudEvents 1.0. The type is
studio.lerian.br-ted.<resource>.<event>.ce-subjectis the id of the transfer, the incoming TED or the return. - Money comes as a string (
"1500.00"). Timestamps are in UTC.
Catalog
The events
transfer.fraud_analysis, transfer.submitted, transfer.settled, transfer.pending_str, transfer.rejected, transfer.cancelled and transfer.awaiting_reconciliation carry fraudCheck, the same block that the transfer reads return. So do incoming_transfer.credited and incoming_transfer.manual_review, and incoming_return.requested when an antifraud denial caused the return. The block is null on a sent transfer created with every antifraud flow off, and on a received TED while no answer is recorded. It holds decideBy and one check for each flow. See the antifraud check.
incoming_transfer.received carries numCtrlStr, the 20-character STR control number, only when the rail sent one in that format. incoming_transfer.credited, incoming_transfer.recorded and incoming_transfer.manual_review carry previousStatus, the status that the incoming TED left. incoming_return.returned and incoming_return.failed carry previousStatus REQUESTED, the status of the return.
