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.