Retail and e-commerce: spotting unusual return patterns without revealing shopper addresses
Most returns are honest. Wrong size, changed mind. A small group of shoppers may send back far more than everyone else. You can find them, and the patterns around them, without anyone on the analysis seeing a name or an address.
Storek team··4 min read
Sample dataUnusual returns found without seeing who the shoppers are. Illustrative data.
Returns are a normal cost of selling online. Shoppers order two sizes and keep one. A jacket looks different in daylight. Nobody wants to treat those customers as suspects.
A few patterns are worth a closer look, though: a shopper who returns most of what they buy, several accounts shipping to one address, returns that arrive without tags. Finding them usually means joining orders, returns and customer records on emails and addresses. That’s exactly the data you don’t want spread across an analyst’s screen.
The way through is to do the matching on tokens and reveal the person only at the end, to the one person who needs to see them.
Why tokens are enough for the analysis
A token is a stable stand-in for a value. The same email always becomes the same token, in every table of the workspace, and so does the same shipping address. That’s all the matching needs. “How many orders and returns does this shopper have?” and “how many accounts ship to this address?” only ask whether two values are equal, never what they are.
Storek detects personal data when a file lands, including names, emails, phone numbers, addresses and card numbers (checked with the Luhn test), and masks or tokenizes it whenever anyone reads the data. Tokenized shopper IDs keep repeat-rate, cohort and return-abuse math working without showing a single email.
The analysis, step by step
The numbers below are invented: an online apparel shop with about 18,000 shoppers in the last year.
Load orders and returns as they are
Upload the order and return exports. Check that the shopper email and shipping address columns arrive tokenized and that card numbers are masked or blocked before anyone starts asking questions.
Compute a return rate per shopper, with a floor
Count orders and returns per shopper token. Set a minimum number of orders before judging anyone: two orders and one return is a 50% rate and means nothing.
In Storek
You ask
“Which shoppers send back most of what they buy?”
What Storek did
matched every return to its order
worked out a return rate per shopper, only for shoppers with enough orders to judge
sorted from the highest rate down, with names and addresses masked
The answer
The frequent buyers who return most of their orders rise to the top, without anyone seeing who they are.
Dig deeper: see how it works
Shoppers are matched on a protected token, so the same customer is counted once across orders and returns even when names are spelled differently. A minimum order count keeps one-off returners off the list.
For analysts
SELECT o.shopper_token, COUNT(DISTINCT o.order_id) AS orders, COUNT(DISTINCT r.order_id) AS returned_orders, ROUND(1.0 * COUNT(DISTINCT r.order_id) / COUNT(DISTINCT o.order_id), 3) AS return_rateFROM orders oLEFT JOIN returns r ON r.order_id = o.order_idWHERE o.order_date >= DATE '2025-11-01'GROUP BY o.shopper_tokenHAVING COUNT(DISTINCT o.order_id) >= 10ORDER BY return_rate DESC;
The chart at the top of this page plots the result: orders across, return rate up. The seven dots in the upper right are frequent buyers who send back most of what they order.
Look for shared addresses
Count shopper accounts per address token. Several accounts shipping to one address isn’t wrong in itself (families, offices, dorms), but combined with a high return rate it’s worth a look.
Shopper
Orders
Returned
Return rate
Accounts at this address
Shipping address
tok_8KQ2
29
23
79%
3
*** M***** St, ******
tok_1HZ7
31
24
77%
3
*** M***** St, ******
tok_5PW0
36
27
75%
1
** O** Rd, ******
tok_3MD9
24
17
71%
1
**** B**** Ave, ******
tok_9TR4
27
18
67%
3
*** M***** St, ******
Sample dataThe five highest return rates among shoppers with at least 10 orders. Three accounts share one address token. Everything readable here is a count; the identities stay masked. Invented data.
Compare the reasons
Set the flagged group’s return reasons beside everyone else’s. For the whole shop, “wrong size” dominates. If the flagged group is mostly “item missing tags” or “not as pictured” on high-value items, that is a different story from a group that orders two sizes of everything.
Sample dataReturns by reason across the whole shop, last 90 days. Use it as the baseline for the flagged group. Invented data.
Hand the shortlist to one named person
The analysis ends with a short list of tokens and the evidence behind each. Your loss-prevention lead, and only that person, can hold a reveal grant for the name and address fields. Grants are per person and per field and re-checked on every query. The audit log records which labels were read and how many, never the values themselves.
Patterns beyond single shoppers
Some return problems aren’t about individuals: one promotion, one warehouse, one product page with misleading photos. Storek’s statistical segment discovery looks for combinations of values that occur together more than chance, such as a category plus a promotion code with an unusual return rate, and only names a combination when its lift is at least 1.3 and its chi-square at least 10.83, then proves it by re-running its filter. The scrap root-cause article walks through that test on a factory example.
How do you find return abuse without exposing customer data?
Work on tokenized identifiers. The same email or shipping address always becomes the same token, so you can count orders and returns per shopper, and accounts per address, without anyone reading the values. Only named people with a reveal grant see the real data, and only when they need it.
What return rate counts as unusual?
There's no universal number. Compare each shopper with your own customers: same categories, same season, and enough orders to judge. A shopper with 30 orders and a 70% return rate is unusual almost anywhere; one with 2 orders and 1 return is noise.
Can our loss-prevention lead see the real address?
Yes, with a reveal grant for that field. Grants are per person and per field, re-checked on every query, and can be revoked at any time. The audit log records which labels were read and how many, never the raw values.
Will this work on millions of order lines?
Yes. Storek scales from a few thousand rows to billions: storage grows without limit and engines start on demand as your questions need them. It also adds the indexes your questions need on its own.
Book a demo
See your own data, delivered.
30 minutes. Your data or our sample. No slide deck. Pick a time straight after the form.