Web & integrations
IT integrations without duplicate orders or lost changes
Practical choices for connecting ERP, commerce and external services: data ownership, safe retries and operational visibility.
The store accepts an order, but the warehouse never receives it. Or a connection drops and a retry creates a second operation that staff must reconcile manually. Reliable integration design starts with these failure cases, rather than a demonstration of one successful API request.
The key decision
Define who owns each field, how the same operation is recognised and how discrepancies are found. Connecting systems is also an operational process.
One owner for each important value
Decide where price, stock, address and order status originate. If two systems change the same field without a conflict rule, synchronisation can overwrite a newer value with an older one. Map stable identifiers instead of relying on similar product or customer names, and document the direction of each update.
A retry should not duplicate the outcome
A delayed response does not prove that an operation failed. Store an identifier for the business action and use idempotency when the API supports it. Otherwise implement a check for an already processed operation. Do not automatically repeat a POST solely because the client timed out; first consider whether the original request may have completed.
Separate acceptance from slow processing
An incoming webhook can be validated and recorded before slower processing runs through a queue. Acknowledge receipt according to the external service contract. Failed tasks need bounded retries, backoff and a visible review path, rather than an endless silent loop. Check signatures and reject data that does not meet the expected schema.
Reconcile the resulting state
Webhook events may arrive twice or out of order. Periodic reconciliation of orders and statuses reveals omissions that individual successful HTTP responses do not expose. Logs should connect the incoming event, processing task and changed record without collecting unnecessary personal information. Alert on an ageing queue as well as outright failures.
Launch one direction before connecting everything
Start with a bounded flow, such as new orders moving from the store into ERP. Test a lost connection, a duplicate event and invalid input before adding further directions. Agree who monitors the integration and who resolves business conflicts. MSS can implement the API connection together with the reconciliation and recovery process.