Duplicate orders An automatic or manual retry may create a second shipment.
The order was created, but the system received an error: how to protect an online store from duplicates and unnecessary refunds
-
06.11.2026 The customer paid for the order. The online store sent it to the delivery service but received a timeout or internal error instead of confirmation. In this situation, the order must not automatically be treated as uncreated and the request retried. In a distributed system, a response error does not mean that the operation failed.
-
The delivery service may have accepted the order and assigned it a number, but the response did not return in time. A retry will create a duplicate.
-
Automatic cancellation may trigger a refund for an order that is already being picked or delivered.
-
This is a distinct business scenario that must be designed alongside the main order flow.
