System integrations without duplicate records
What to agree before connecting a shop, accounting or warehouse system: retries, uncertain results and acceptance checks.

Key takeaway
Define one business operation and its result. Test retries, connection failures and escalation to a person before launching the integration.
No response, but did the action happen?
An online shop sends an order to a warehouse system. The connection drops before confirmation arrives. An employee sees an error and clicks Send again. What should the integration do: create a new order, return the earlier result or ask for a person to check?
This is an illustrative scenario worth discussing before connecting systems. An error message is not a complete description of the business process. The client needs to understand what happens to that particular order and how an employee can recognise its status.
AWS engineer Malcolm Featonby explains why retrying after a missing response can create an additional resource. An idempotent operation allows the same request to be repeated without additional side effects. [1]
Define one business operation
Before discussing data fields, we suggest defining a single operation. For example: sending a confirmed shop order to the warehouse. Amending, cancelling and creating an order represent different intentions, even when some of the data matches.
Prepare a short description for the operation:
- Start. What triggers it, and which conditions must be met?
- Identity. How is the same order found in both systems?
- Result. Which state counts as successful completion?
- Exception. Who receives a case that cannot be completed automatically?
This also helps define the employee interface. In progress should mean something different from Failed or Result unknown. We suggest deciding how to show those states and when to allow another attempt with the people who will manage the orders.
Keep the same key for a retry
Stripe documents an idempotency key that helps identify a repeated request. API v1 stores the response once the first request begins execution and returns it for a retry with the same key. Requests rejected before execution, for example because of invalid parameters, are not saved this way. A request made after the old key has been removed may be treated as new. This behaviour applies to API v1; check other APIs separately. [2]
During project discussions, ask the developer to demonstrate a retry as well as a successful order submission. Does the system retain the operation identifier? What happens if someone clicks twice? How does it distinguish a retry from a deliberately initiated new operation?
If the receiving API lacks such a mechanism, adding an identifier field will not create one by itself. You will need reconciliation or another agreed way to resolve an uncertain result. The implementation depends on what both systems support.

Put limits on retries
AWS guidance on retries explains that repeated requests can add load to an already struggling system. Increasing intervals and adding a random component help spread out attempts that would otherwise arrive together. [3]
On the business side, agree how long it is acceptable to wait and when a person should intervene. We suggest distinguishing a temporary connection problem, invalid order data and expired access. Employees do not need the same Try again message for every situation.
Also discuss what happens when automatic attempts run out. The task should not simply disappear from the employee's view. During acceptance, ask to see where it remains, who is informed and how work can safely continue.
Test cases a successful demonstration will not reveal
Our proposed acceptance test would cover more than a successful transfer. Before launch, prepare a test order and agree how many records, with which states, should remain after each action.
- Send the same order twice in succession.
- Retry a request whose first result is unknown.
- Change order data and check whether it counts as a new operation.
- Temporarily stop the receiving system, then bring it back.
- Omit a required field and show the error to the responsible person.
Assess more than the technical response. Check what the warehouse or support employee sees. If they still need to guess whether an order was created, the acceptance criteria have not yet been met.
Agree on ownership after launch
We suggest completing handover with a short operating guide: who maintains each system, who receives error alerts and who may retry an unfinished operation. It should also describe how records can be reconciled between the systems.
Before estimating the project, prepare the names of your systems, the information you want to transfer and one specific workflow. You can then ask not only whether an API exists, but also how the process will recover when interrupted.
The order examples and test checklist in this article are our practical recommendations. They are not results from a particular client or a promise that an integration will never fail.
Sources and further reading
Numbers in the text refer to the sources below. We distinguish research and technical guidance from our practical recommendations.
- DocumentationMaking retries safe with idempotent APIs
Malcolm Featonby. The Amazon Builders' Library.
Source checked: .
- DocumentationIdempotent requests
Stripe. Stripe API Reference.
Source checked: .
- DocumentationTimeouts, retries, and backoff with jitter
Marc Brooker. The Amazon Builders' Library, 2019.
Source checked: .
Related service
System integrations
Connected systems and automatic data exchange instead of manual copying.


