EN
E-Commerce

Integration Dead Letters: Who Owns an Order That Did Not Finish?

Integration Dead Letters: Who Owns an Order That Did Not Finish?

Time to read: 4 minutes

Content

  1. Decide which action the evidence supports
  2. Worked example: Approve a status repair, not an order replay
  3. Put the approval log to work
Bookmark

When one ecommerce order lands in a dead-letter queue, assign it to a named incident owner on integration support. That person keeps the order open, gets evidence from the store and ERP owners, and records the decision. They do not get replay authority just by owning the ticket. Under a policy agreed in advance, the designated order operations approver authorizes a specific recovery action after the system owners verify the effects it could repeat. A permitted operator executes only that action.

A dead letter tells you that a message could not be processed as expected. It does not tell you whether the ERP created an order, the warehouse reserved stock, or a payment was captured. Decide what to do with the business order before deciding what to do with the message.

Decide which action the evidence supports

What the owners verifyDisposition for the failed operation
Rejected without the effects the operation can create. The destination confirms rejection before commit; no competing attempt is still pending.Fix the cause and check that the order is still valid. Review the corrected operation under the current interface contract; authorize it only if its scope and duplicate protection are verified.
Accepted, with all or some effects present. The ERP order exists; a reservation, shipment update or acknowledgment may still be missing.Do not replay order creation. Link the existing record. If something else is missing, propose only that operation and apply its own approval and verification rules.
Uncertain. A timeout, stale extract or incomplete search leaves the outcome open.Hold replay. Name the system owner who can check the authoritative record or pending work, and set a next-check deadline. Escalate a missed deadline or threatened customer promise; neither grants permission to resend.

Check the effects this particular action could cause, including downstream ones. Use the store plus source-order reference, the logical operation, message and attempt IDs, and linked ERP or warehouse references. A timeout can hide a committed write. As AWS explains in its guide to idempotent APIs, duplicate protection depends on what the receiver treats as the same intent and how long it remembers it. A key that protects ERP creation does not necessarily protect an inventory or payment step. Verify the contract for the exact action, including how corrected input is handled; don't generate a fresh identity to bypass an expired key.

Who owns a dead-letter decision? Support owns the open exception. System owners classify the operation as rejected, accepted or uncertain. The decision branches: a hold keeps the exception open with a named owner and next check. Only an approved action proceeds to execution, and support closes the exception only after verifying business evidence. One order, one decision 1. Claim the exception 2. Verify business effects 3. Approve or hold Hold: keep open Approved:Act and verify Support names one owner. System owners confirm:rejected, accepted or uncertain. Operations signs off onone specific action, or none. Keep a named ownerand set the next check. Operator executes the action.Support closes only afterchecking business records.
Figure 1. Ticket ownership, authority to change business records, and proof of closure are separate.

Worked example: Approve a status repair, not an order replay

Fictional exception record. A dealer order for four units is stuck at “Sent” in the store. Its ERP create attempt timed out. The merchant's assumed rules allow fulfillment to proceed once one linked ERP order and its four-unit reservation are confirmed.

Approval log fieldFictional entry
Identity and scopedealer-east/4187; create attempt A1, message M64. Open exception EX-27 is assigned to the on-call integration support lead.
Evidence at 14:10 UTCERP owner confirms one committed order, E-703, for this store reference. Inventory owner confirms one four-unit reservation on E-703. Commerce owner verifies the store order is active but its status is stale. This dealer account is invoiced; the proposed action cannot capture payment or request fulfillment.
Decision and approverOrder operations duty manager approves only Sent → Accepted for storefront order dealer-east/4187 linked to ERP order E-703, if the verified state still holds. ERP create replay is denied. Commerce owner confirms the approved repair path changes status only and cannot regress a newer state.
Execution conditionsOne assigned commerce operator. Recheck the linked reference and current status before acting. If the order has advanced, changed or been canceled, stop and return the decision to the approver. Record the action and evidence references in EX-27.
Closure at 14:17 UTCCommerce shows “Accepted” linked to E-703; the ERP still shows one order and one four-unit reservation. Support records the before/after references and retires the failed message under the queue's retention policy without resending it.

Counterexample: The same ERP search comes back empty, but the import worker still has an attempt pending. “No order found” is not verified rejection. Support holds the replay, asks the ERP owner to account for that attempt, and updates operations before the fulfillment deadline. If a vendor takes the next check, the exception stays with support until another named owner explicitly accepts it.

Put the approval log to work

  1. Name the duty roles and deputies. Separate evidence checks, business approval and execution in the runbook. If the action can move money or release a shipment, add the required finance or fulfillment approval. Queue access alone grants none of those rights.
  2. Make the exception record the place to claim work. Keep the expected and observed effects, sanitized evidence references and times, next deadline, proposed action, named approver and permitted operator together. Account for active automated retries and manual work so two people or paths cannot act on the same order.
  3. Rehearse the decision and its stop condition. In an approved test environment, make an ERP create succeed but withhold its response. Check that the team denies a second create, approves only a supported repair if needed, and closes the record on business evidence, not a green queue icon.

If you cannot yet locate the last confirmed state, start with how to trace a failed store-to-ERP order. Bring one completed approval log to an ERP integration scope discussion if the gap is who can verify, approve or execute recovery across vendors.

Lassen Sie Profis Ihre Herausforderung meistern

Unsere zertifizierten Spezialisten finden die optimale Lösung für Ihr Unternehmen.

Bitte einen gültigen Namen eingeben
Bitte geben Sie ein gültiges Unternehmen ein
Bitte geben Sie eine gültige Telefonnummer an
Bitte geben Sie eine gültige E-Mail-Adresse ein
Kurze Botschaft

    Ihre Nachricht wurde erfolgreich verschickt. Wir melden uns in Kürze! Success icon