Do not consider notification a guarantee of delivery.

A webhook notifies another system of an event via an HTTP request. The recipient may be unavailable, the response will be lost, and the sender will repeat the delivery or not try again - this depends on the specific service. Before development, read the vendor's rules: timeout, retries, retention period, and the ability to manually restore. You cannot transfer the behavior of one platform to all integrations. Make a note of where you can get a list of the original changes for reconciliation. If the only evidence of an event is a single, unrecorded delivery attempt, it will be difficult to restore completeness after a long failure.

Separate reception and business results

A quick response to the sender is useful, but it needs to be associated with the actual received state. After the necessary checks, save the event in a reliable way and determine whether a successful response means: accepted for processing or already completed. If you confirmed delivery before saving and the process stops, the sender may not repeat the request. Further processing receives a separate status, attempts and reason for the error. Don't show the manager "done" when the message has just been queued. The interface and log must distinguish between an event received, an operation initiated, and a confirmed change on the target system.

States of one integration operation
ConditionConfirmation
AcceptedEvent saved with ID
In progressThere is a specific attempt to process
Result unknownReconciliation needed after response failure
CompletedThe record in the target system has been verified

Consider repetition and order of events

A persistent event ID helps identify redelivery, but updates to a single object remain events in their own right. Maintain an association with the object version and rules for handling out-of-date changes. Do not rely on order of arrival unless the supplier guarantees it. The replay event must return a known result or safely continue the incomplete operation. In some cases it is more convenient to read the current state of an object in the source, but this is not suitable for all types of actions. The rule must be chosen based on the meaning of the process, especially for cancellations, deletions, and operations with irreversible consequences.

DEMONSTRATION EXAMPLE

Study situation: first the status change to “canceled” arrived, then the delayed message “created”. If the handler simply applies the last value received, it will restore the canceled request. An object version or current state check helps to identify this order before writing.

After timeout, set the actual result

CRM could create a record, although the integration did not receive a response. A blind replay will create a double, while an unconditional refusal will leave the outcome unknown. Consider foreign key lookups, checking operation status, or manual reconciliation if the API doesn't provide a reliable mechanism. Limit retries and differentiate between temporary failure, invalid data, and lack of permissions. Delayed retries should not take up the queue indefinitely. For a case that cannot be resolved automatically, forward it to the operator with the original event, attempt history, and available safe action. Foreign key mapping is also important whensynchronization of CRM and accounting system.

Check completeness regardless of delivery

Periodic reconciliation of the source and destination helps to find events that did not arrive at all. Define the control period, available identifiers, and acceptable delay. Comparing only the total is not enough: one missing and one extra record can give the same total. To restore, first prepare a discrepancy list and a dry run, then repeat only the necessary operations. Please note that the original data may have changed since the event. The operator must understand whether he is restoring historical action or synchronizing the current state. These options require different checks and should not be mixed unnoticeably.

Conduct a recovery drill

On the test circuit, pass recipient unreachable, lost response, retry, out of order, and incorrect permissions. Separately check the authenticity of input requests using the selected provider, security of secrets and volume restrictions. Record the stop, reconciliation, and recovery completion criteria. The timing of discovery and the availability of history must match the cost of process failure. Documentation with a verified recovery route is more useful than the promise “the integration will repeat everything itself,” which does not take into account the real capabilities of the source and CRM. This route is included in the designCRM integrations with exchange log.

Apply to your task

Describe one contact channel and the CRM used. Let's discuss fields, responsibilities, repetitions and the first route to check.

Parse the route of applications →
← Return to materials