An API integration can pass every staging test and still lose business records in production. Real providers have outages, stale credentials, partial successes, duplicate callbacks and undocumented edge cases. Rather than immediately increasing retry counts, I trace the business transaction from the original event to the final confirmed state.
A successful HTTP request is not a completed business operation
HTTP 200 tells us that one request was accepted, not necessarily that a payment was settled, an invoice was created or a booking was confirmed. For asynchronous APIs, I maintain explicit states such as pending, confirmed and failed. The frontend must display the authoritative result, not infer success from sending the request. Provider callbacks should be authenticated and recorded with their event identifiers.
Duplicate webhooks and idempotency
Many providers deliver events at least once, so duplicate delivery is normal. The consumer must check a durable external event identifier and enforce database uniqueness or transactional updates. When the same invoice creation request is retried after a network timeout, a stable idempotency key prevents unintended duplicates where the provider supports that mechanism. In-memory flags do not protect against two concurrent workers.
Timeouts, rate limits and controlled retries
Different failures need different responses. A 429 may require waiting for Retry-After, while a 401 means credentials or permissions should be fixed. I set bounded timeouts, exponential backoff with jitter, maximum retry budgets and a queue for deferred processing. Permanently failed messages go to a visible review process rather than disappearing or looping forever.
Data mapping and reconciliation
CRM, ERP and payment systems rarely share the same record identifiers or status values. I document which system owns each field, normalize dates and time zones, validate payload schemas and track the mapping between external IDs. A reconciliation job compares expected and confirmed states so failures can be repaired safely without silently overwriting newer changes.
How I investigate and deliver a fix
I begin with one reproducible failed transaction and a correlation ID. I examine logs and traces, recreate the sequence in a sandbox, distinguish transient failures from incorrect business logic and add regression tests for duplicate events, out-of-order callbacks and partial completion. Useful monitoring includes last successful synchronization, retry counts, unresolved discrepancies and queue age.
For clients, the first deliverable can be a data-flow diagram, risk list and prioritized repair plan. Implementation may include webhook signature checks, idempotent writes, alerts, safe replay tools and deployment verification. These are examples of an engineering approach, not claims about an undisclosed project.
If your integrations lose records, create duplicates or fail unpredictably, I can investigate and improve the workflow with Node.js, TypeScript or Python. Tell me about the systems at https://zavada.dev/contacts.
Need a developer for the long run?
I can start now and work with you for months or years, not hand off after two weeks. Send me a message and we will talk through your project, requirements and next steps.