How do we prevent duplicate records?
An order reference can tie a source to one received record, even after an interrupted connection.
Choose a stable identifier
A workflow needs to recognise the same order over time. Agree what happens when a reference is missing or two customers use the same number.
Verify receipt
A request may reach the destination even when its response is lost. Check for the existing order before retrying.
Test repeated requests
Try a duplicate message, a delayed acknowledgement and an interruption during registration. The expected result is one record and one billable unit.