A refund succeeds but its response times out.
Detect: Payment lookup finds the original operation key with a completed refund.
Recover: Return the existing receipt and never create a replacement key for the same approved action.
Coordinate order status, shipment evidence, and return eligibility before committing a customer-approved resolution.
Explore in the architecture studioIllustrative reference architecture. Validate requirements for your organization.
Illustrative architecture: An online merchant receives a support request for an order split across two warehouses. One parcel is late, another item is damaged, and a promotion complicates refund allocation. The proposed system prepares specific resolution options without inventing shipment status or refund eligibility.
A simple refund chatbot can cancel the wrong order line, duplicate a refund after a timeout, or promise replacement inventory that is already reserved. Customer messages and uploaded images also contain untrusted instructions that must not control tools.
Separate order reconciliation, shipping investigation, policy retrieval, and resolution drafting. A deterministic monetary calculator and transactional adapters own amounts and inventory reservations; agents explain the options and surface unresolved evidence.
The intended result is a reviewable operational decision with source evidence and explicit ownership. Compare handling effort and customer recontacts while auditing financial effects. Faster response generation is useful only when customers receive accurate per-item status and the underlying order remains financially consistent.
Resolve line items, payments, promotions, and prior adjustments.
Cannot issue refunds or modify paid order lines.
Compare carrier scans, delivery evidence, and warehouse handoff events.
Cannot assert delivery from an estimated date alone.
Retrieve terms effective for the item, purchase date, and market.
Cannot waive restrictions or decide disputed damage evidence.
Draft replacement, return, or investigation options with exact prerequisites.
Requires customer confirmation and policy-authorized approval before consequential actions.
Own purchased quantities, refundable balances, adjustments, and payment operation identifiers.
Provide fulfillment events and separately versioned shipment status.
Retains customer identity, approved correspondence, resolution consent, and escalation ownership.
flowchart LR
N0["Order recovery and returns coordination"]
N1["Order reconciler"]
N2["Shipment investigator"]
N3["Returns policy agent"]
N4["Resolution coordinator"]
N5["Evidence ledger"]
N6["Human decision"]
N7["Authorized adapter"]
N0 --> N1
N0 --> N2
N3 --> N4
N1 --> N4
N2 --> N4
N4 --> N5
N5 --> N6
N6 --> N7sequenceDiagram
participant O as "Case orchestrator"
participant S as "Order and payment services"
participant H as "Accountable reviewer"
O->>S: Load refundable order balance
O->>H: Present exact refund proposal
H-->>O: Confirm line and amount
O->>S: Submit approved operation key
S--xO: Response timeout
O->>S: Query original operation
S-->>O: Existing refund receiptBind the customer to the order and requested lines before retrieving payment or address information.
Fetch order revision, remaining refundable balance, and existing return or refund operations to avoid duplicate work.
Parallelize shipment checks while preserving the distinction between estimated, scanned, delivered, and unknown states.
Use current inventory and deterministic amount allocation; attach the policy clause and expiry of each option.
Show the customer and support reviewer exact items, amounts, fees, and next steps; preserve unresolved damage disputes for staff.
Submit approved actions with stable operation keys, query uncertain payment results, and report each order line's final or pending state.
Detect: Payment lookup finds the original operation key with a completed refund.
Recover: Return the existing receipt and never create a replacement key for the same approved action.
Detect: Reservation service rejects the previously quoted stock version.
Recover: Refresh options and request new confirmation rather than silently substituting another product.
Measurement definitions, not promised improvements.
Elapsed time from authenticated request to valid options, segmented by split-order complexity.
Duplicate financial effects per approved refund operation, reconciled against payment records.
Audited customer commitments supported by current inventory and policy evidence divided by audited commitments.
Open order lines awaiting external confirmation after another line has completed.
| Decision | Benefit | Cost |
|---|---|---|
| Line-level workflows | Support mixed outcomes within split orders. | Require explicit partial-success state and customer communication. |
| Live inventory reservation | Avoids promising unavailable replacements. | Adds expiry handling and temporary stock contention. |
| Policy-grounded options | Keeps resolution terms inspectable. | Unusual disputes still need experienced support staff. |
Support staff validate split shipments, promotions, partial refunds, and duplicate-payment recovery.
A small queue evaluates factual accuracy and customer ownership enforcement without financial writes.
Selected return types enable execution after timeout reconciliation and expired-reservation tests pass.