Flag Customer Refunds Without a Matching Return
Short answer
Match refund exports with warehouse returns and flag timing, quantity, or documented policy exceptions.
Two teams can run the same refund check and reach opposite Mondays. In one, the merch desk for the Doha events company flags 61 refunds as suspicious and spends a week apologizing after the warehouse confesses it was three days behind on scanning. In the other, the same export produces four named exceptions, two of which close by lunchtime when someone finds the unscanned carton. The difference is not effort; it is whether the comparison sorts ordinary timing gaps away from real questions before any human looks up.
That is the job here: line up the refund export against the returns export, one order line at a time, and classify every gap. The flag means a refund has no matching return record under the rule you set. It does not mean a customer stole anything, and it never means a refund gets reversed.
The prompt to use in Assistly
Compare the attached refund export and return export using order ID and line ID as the match key. Classify each refund line as exact match (returned quantity equals refunded quantity, accepted inside the return window), partial quantity match (returned quantity lower), no return found, or excluded when the reason code is REPLACEMENT or STORE_CREDIT. For lines with a bundle SKU, allocate the refund across the attached composition table and report the unreturned value by component. For no-return lines, label those whose carrier delivery date falls within 14 days of the refund as possible delayed receipt. Do not label any customer as fraudulent and do not recommend reversing any refund. Create an Excel workbook with one sheet per category, a summary with counts and refund values per category, and a review_reason column naming the specific field that failed. Confirm the four category counts add up to the source row count and list any rows you could not parse.Try this task
Examples you can follow
A bundle refund with a 38-riyal gap
What to give Assistly. The refund export and the return export for April, matched on order ID and line ID, plus the bundle composition table. Refund record RF-22087 covers order PK-3014, line 1, the festival bundle SKU BND-140, refunded 145.00 QAR on 2 April. The bundle table allocates the price: tote 45.00, tee 62.00, cap 38.00. The return export shows RT-6650 for the tote (1 accepted, 1 received) and RT-6651 for the tee (1 accepted, 1 received), and no return line for the cap.
What Assistly returns. The refund is compared against the value of components actually returned: 45.00 + 62.00 = 107.00, leaving an unreturned value of 38.00, which equals the cap exactly. Status: bundle partial return, gap 38.00, routed to a person with three ordinary explanations listed for checking: the customer kept the cap under a policy exception, the cap is still in transit, or the bundle was refunded in error. A first draft of this check had reported the gap as the full 145.00 because it treated the refund as unallocated; the composition table is what turns a scary number into a specific one.
How to verify it. Open RT-6650 and RT-6651 and read the accepted and received quantities directly. Add 45.00 + 62.00 yourself and subtract from 145.00. Then check whether any return record for order PK-3014 exists under a different line or order number, since combined shipments sometimes log returns under a sibling order.
A return that beat the scanner by four days
What to give Assistly. Refund record RF-21993 for order PK-2977, line 1, a event scarf refunded 60.00 QAR on 4 March. Return record RT-6481 shows status accepted, accepted date 6 March, carrier delivery scan 12 March, warehouse receipt date 19 March, quantity 1 and 1.
What Assistly returns. Cleared: delayed warehouse receipt. The receipt lag from acceptance to warehouse scan is 13 days, inside the site's 14-day rule, quantities agree, and the return window was open when the request was accepted. The line carries no flag into the review queue, and the note records the lag so the next reviewer does not re-derive it. The naive version of this check, which matched refunds only against returns received within a week, had listed this customer for follow-up; the timing rule is what stops that email from ever being sent.
How to verify it. Read the three dates off RT-6481 and subtract by hand: 19 March minus 6 March is 13. Confirm the rule in force says 14, and that the refund window was open on 6 March.
The match rules
Write the definition down before you run anything, because teams that skip this argue about individual customers forever. A refund line matches a return line when the order ID and line ID agree, the returned quantity equals or exceeds the refunded quantity, and the return was accepted inside the return window. Line ID matters more than order ID: an order with three lines can carry one refund and two untouched lines. For volume patterns across products, analyze ecommerce return reasons from CSV exports after separating these unlinked refunds from the return population.
Every refund line lands in one of four categories. Exact match: equal quantities, return received within your normal processing lag (14 days is a common rule; use your own history). Partial match: a return for fewer units than refunded. No return found: no return line at all. Excluded: refund types your policy does not require a physical return for, such as replacements or store credit. Only the middle two need human review in the first pass, and a large share resolve as timing. Check headers and date formats before starting, since a day-month versus month-day mismatch makes every timing check lie.
Before the flags flood the queue
Three patterns explain most no-return results. Delayed receipts: the item is delivered to the warehouse and sits unscanned behind other inbound freight; look for a carrier delivery scan at the warehouse address before treating the refund as returnless. Replacements: the refund shipped a replacement instead, expected return is zero, or the damaged original if policy demands it; the reason code and a linked replacement order settle it. Bundles: one refund line against several component return lines, checked by allocating the refund across the composition table, so the gap names a component rather than a total. When a case fits none of these, it goes to the exception list with the field that failed named specifically, because a note that says "no return" gives the next reviewer nothing.
Verify the counts
The summary earns trust by arithmetic. Suppose April holds 412 refund lines worth 18,904.50 QAR against 388 return lines. The classification must produce counts that add back to 412: 356 exact, 21 partial, 27 no return found, 8 excluded. Of the 27 no-return lines, 9 have a carrier delivery date inside the transit allowance and are labeled possible delayed receipt, leaving 18 for review. Pull ten of the 18 and trace each by hand through both exports. If all ten agree, trust the rest provisionally; if one disagrees, fix the rule before reading the other eight. Where both files are matching spreadsheet exports, the local comparison tool verifies the counts by exact IDs. Continue with a related workflow: Compare Online Store Return Policies With AI
FAQs
- Does a flag mean the customer committed fraud?
No. A flag means the refund line lacks a return record matching the rule you set, and most flags trace to delayed receipts, replacements, bundle components, or export errors. A person reviews the evidence before any conclusion, because the record alone cannot tell you intent.
- Should the refund be reversed automatically when no return appears?
No. Reversing a refund is a financial and customer-relationship decision that belongs to your policy owners. The comparison classifies records and prepares a file a person can act on; action on customer accounts is a different system with different authority.
- How often should the comparison run?
Weekly on the prior week's refunds works for most teams, because it gives the warehouse time to scan late receipts before the review. Keep each run's source files and output together, so when a line flagged this week clears next week, the reason is on the record instead of in someone's memory.
- What if the totals do not add up?
Stop and check the sources before checking customers: duplicate line IDs from split orders, unparsed rows, mixed date formats, and truncated uploads are the usual causes. Split large exports by month or fulfillment center, rerun each part, and confirm the parts add back to the original row count before trusting any category sum.