Sep 2026
API Integrations That Hold Up When Responses Arrive Late
A successful first request says little about an integration's reliability. Learn how to define data contracts, prevent duplicate effects, bound retries, and handle repeated or delayed webhooks, while keeping the operation's status understandable to both the delivery team and the people using the service.

An integration faces its real test when a system sends a request and loses the connection before receiving the response. Did the operation fail, or did its confirmation disappear?
01-Start with a contract that explains meaning
Before mapping fields, define the operation and who owns its data. In a hypothetical integration between a training platform and invoicing software, adding a learner does not mean an invoice is paid. Document required fields, value units, valid states, and actionable errors.
Review contract examples together: what does cancellation mean? Assign compatibility ownership and check that adding an optional field does not break consumers.
02-Keep retries attached to the same operation
Idempotency prevents another attempt from creating another business effect for the same operation. Stripe documents keys that associate repeated requests, subject to its service rules and key retention period.
In the illustrative workflow, save the invoice operation identifier before sending, and reuse its key when the response is uncertain. Do not create a fresh key for every attempt or reuse one for a different operation. Check concurrent requests and the provider's retention limits too.
03-Give retries a budget
AWS guidance explains that extra attempts can increase pressure on an already struggling dependency. Set a request timeout, a bounded attempt count, and increasing delays with a ceiling. Add jitter, a small random variation in timing.
Select retryable failures according to the provider's contract; invalid input needs correction. Choose one layer to own retries so attempts do not multiply across components. When the budget expires, move the operation into an explicit follow-up state instead of keeping the user waiting indefinitely.
04-Expect webhooks to arrive again
An at-least-once delivery contract permits redelivery; it does not automatically produce one business execution. Check the retry window and failed-event recovery mechanism instead of assuming unlimited delivery guarantees. Stripe documents possible duplicate events and no guaranteed arrival order.
Verify the sender, record the event identifier alongside the processing decision, and make that decision and its effect safe under concurrency. Before acknowledging receipt, ensure the work is durably retained; arrange for lengthy processing to happen afterward.
05-Test ambiguity before launch
For this example, interrupt the connection after invoice creation, deliver the same webhook again, and deliver an older update after a newer one. Inspect invoice state and the registration employee's experience, not just the request's success code.
Connect logs through the operation identifier and expose states such as processing or needs review. Provide reconciliation against the source system so the team can resolve pending work without generating additional invoices.
Your next step
Reliable integration combines a meaningful contract, controlled effects, and traceable status. Start with a practical question: how will we know what happened, and resume safely when we do not?