Journal / Systems integration

A retry should never become a second invoice.

A network timeout tells you that the caller lost the response. The accounting system may already have posted the invoice.

Start with the business event

Give the event an identity that survives delivery attempts. For an order posting, that might combine the source system, order ID and posting type. Keep refunds distinct from original sales so a valid correction cannot be mistaken for a duplicate.

Handle the uncertain response

When the destination times out, look up the external reference before sending another write. Where the API supports an idempotency key, use the same key on every retry. Record the response and the external identifier together.

Reconcile before closing the day

A successful API response does not establish agreement between two ledgers. Compare record counts, currency and net totals for a closed period. Put unmatched rows in an operator queue with their source reference and the last action attempted.