intermediaryPayment.status to learn which. Add a
case for a new status rather than expecting a new event.
All deliveries share the common envelope (eventId,
eventName, timestamp, customerId), with two differences:
clientReferenceis the payment’s ownclientReference, the one you sent on create, not a reference for the customer. Absent when you sent none.- There is no
payloadVersion. Amounts are always decimal strings.
timestamp is when the change happened, not when it was sent, so a retry or a replay
carries the same value.
Statuses
A block, once present, stays on every later event of the payment: a
COMPLETED event still
carries tm and confirmation. The overview
explains each status, and which ones are final.
Not every payment sends every status. A quick monitoring decision skips PENDING_TM, a fast
settlement can skip RELEASED, and an automatic fallback from SEPA Instant to a SEPA credit
transfer sends nothing at all. A status is never sent twice in a row, and statuses never move
backwards, except that AUTHORISED and LIMIT_REVIEW can follow each other, and RELEASED
and RELEASE_DELAYED can alternate. After TM_REJECTED, the held money goes back to the
customer in one of two ways. When compliance returns it, no further event is sent: the
status stays TM_REJECTED, and the payment’s state on the get and list routes moves to
TM_REJECTED_HOLD_RETURNED. When Orenda’s operations team returns it, you receive
RETURNED_TO_CUSTOMER, with state RESOLVED_RETURNED.
Fields
intermediaryPayment carries:
The full record, including the whole UBO, the confirmation text and the cancellation reason,
is on Get an intermediary payment.
Ordering, duplicates and gaps
Events are not guaranteed to arrive in order: a retry arrives after events sent later. Order onsequence, per paymentRequestId, and ignore an event whose sequence is
lower than one you have already applied.
sequence rises with every change to the payment, including changes that send no event, so
gaps between the events you receive are normal and do not mean you missed one. An event can
also arrive some minutes after the change: if a change’s event could not be queued straight
away, it is sent later with the same eventId.
De-duplicate on eventId. It is derived from the payment, its status and its sequence,
so every delivery of the same change, including retries and replays, carries the same one.
intermediaryPayment.paymentRequestId + intermediaryPayment.sequence is an equivalent
key: every event of a payment has a sequence of its own, even when two events report the
same status.
The get and list routes are the source of truth. When in doubt, read the payment, and
reconcile from the list route
after any outage of your own.
Transaction events
An intermediary payment is also an ordinary payment request, so it sends the transaction webhooks as well:TRANSACTION_INITIATED and
TRANSACTION_UPDATED for the payment request, and
TRANSACTION_CREATED and
TRANSACTION_STATUS_CHANGED for the ledger
transactions that move the money. They report the same payment as this event, not a second
one.
Branch on paymentChannel: "INTERMEDIARY". All four carry it for an intermediary
payment, and no other payment has a paymentChannel. Book the payment once: do not book
its transaction events as a second payout. Their paymentRequest.status is the payment
request’s own status, not the intermediary status above.
Signing, retries and replays
Exactly as for every other notification:- signed with HMAC-SHA256 over the raw body in
Orenda-Payload-Signature: see verifying the signature; - retried on a timeout,
5xx,429or408: see retries; - kept for 180 days and replayable on request, with the same
eventId: see replays.
2xx within 10 seconds, and return 2xx for a status or field you do not
recognise.
Examples
Keys arrive sorted, as on every notification.- TM_PASSED
- COMPLETED
- CANCELLED