Sort failures by the action they need
A service interruption may recover on retry. A record missing a required organization or email may need a teammate to fix it. Decide how each error appears in a queue and what context helps the person repair it, including the source record and the reason for failure.
Prevent duplicate effects during retries
Assign a stable identifier to each event or record. Decide how the destination checks whether that event has already been handled before creating another record. Test repeated delivery and a network interruption between sending a request and seeing a response.

Verify recovery with realistic examples
Send a valid event, one with a missing field and one that an operator can retry after correction. Confirm the right person can find the issue, fix it and see the final result. Reconcile a sample of source and destination record counts so there is a simple check on completeness.
Log enough to understand every failure
When an integration fails, someone needs to know what happened, to which record and why. Log each run with a timestamp, the records involved, the response from each system and the outcome. Avoid logging passwords, tokens or full personal data. Keep logs long enough to investigate issues reported days later, and make them searchable by record ID so support questions such as “why did this order not sync?” can be answered in minutes.
Alert the right person at the right level
Not every error deserves a phone notification at midnight. Classify alerts: a single retry that later succeeds may only need a log entry; repeated failures for one record need a daily summary; a complete outage of a connected service needs an immediate alert. Send alerts to a named owner through a channel they actually watch, such as email or a team chat, and include a link to the logs and the first steps to take.
Plan for API changes and limits
Third-party APIs change versions, deprecate fields and enforce rate limits. Subscribe to the provider’s changelog, record which API version you use and test against new versions before they become mandatory. Respect rate limits with queues and back-off logic rather than hammering the service. For critical integrations, keep a simple manual process documented so the business can continue for a day if the connection is down.
Who this guide is for: Teams that rely on data moving automatically between systems and cannot afford silent failures.
Practical tip: Decide who receives each alert and how fast they must respond. An alert sent to a shared inbox that nobody owns is almost as bad as no alert.
A worked example
A store syncs orders to its accounting system every ten minutes. One day the accounting API times out after creating an invoice but before confirming it. Because each order carries a unique reference and the integration checks for existing invoices before retrying, the retry recognises the invoice and does not create a duplicate. An alert records the timeout for review.
Illustrative scenario, not a client case study.
Common mistakes to avoid
- Silent failuresIntegrations that fail without alerts are discovered only when customers complain.
- Retrying payments blindlyRetries without idempotency checks can charge customers or create records twice.
- Storing secrets in codeKeep API keys in secure environment settings and rotate them when people leave.
Checklist
- Define which failures can retry and which need review.
- Decide how the system recognizes duplicates.
- Assign an owner and verify recovery tasks.
Questions about this topic
What is idempotency and why does it matter?
An idempotent operation produces the same result whether it runs once or several times. It prevents duplicate orders, payments or records when an integration retries after a timeout.
How quickly should integration errors be fixed?
It depends on the impact. Failures affecting payments or customer orders need same-day attention; minor sync delays can be handled in a daily review.
Our API integration projects include logging, alerts and recovery tests, and workflow automation applies the same safeguards to no-code tools.
Explore our API Integration service .






