Skip to main content

ExchangeRateLocked

Published by this service. The first lock for a pair and business date was created; later locks that day reuse it.

When​

The first lock for a currency pair and business date was taken (normally when a PO line is submitted for approval or committed). Later locks for the same pair and date return this lock and do not raise the event again.

What to do with it​

Optional: accounting can audit which rate each day used. Callers store lockId and rate on the line and reuse the lock when the line is edited.

Routing​

Exchange pvc.integrations.exchange-rate-locked (fanout). Bind your own queue to it. The JSON envelope's messageType is urn:message:Integrations.Contracts.Events:ExchangeRateLocked.

Fields​

FieldTypeMeaning
lockIdGuidLock id every line committed that day for the pair shares.
fromstringSource currency.
tostringTarget currency.
rateDateDateOnlyBusiness date locked.
observationDateDateOnlyDate the source published the rate.
ratedecimalLocked rate.
sourcestringRate source.
occurredAtDateTimeOffsetWhen the lock was created.