AI Blocks agents

E-commerce

Returns and failed-delivery cost analysis

One loss table (cost per failed delivery and per return, by product, postcode or ZIP area and channel), a ranked list of 3 to 6 fixes with money saved per month, and a one-screen summary the owner can approve.

When returns or failed deliveries (pay-on-delivery parcels refused and sent back, called RTO in India) feel high, profit per order looks fine but cash does not arrive, or before blocking pay on delivery, changing courier or return policy: costs the losses by product, postcode and channel.

The full skill

Returns and failed delivery cost analysis

You get: one loss table (cost per failed delivery and per return, by product, postcode or ZIP area and channel), a ranked list of 3 to 6 fixes with money saved per month, and a one-screen summary the owner can approve.

When to use

  • Parcels come back undelivered (refused, not reachable, wrong address, or unpaid pay-on-delivery orders) and nobody knows what each one costs.
  • Return or refund rate rose and the owner wants to know which products and channels cause it.
  • Profit per order looks healthy on paper but cash collected keeps falling short.
  • Someone wants to block pay on delivery or free returns for some areas, change courier or tighten the return policy.
  • A new channel or ad angle is scaling and its orders may come back more often.

Not for

  • Building the per-product profit sheet itself: use build-sku-profit-sheet (this skill feeds it the return and failed delivery cost lines).
  • Writing pay-on-delivery rules, confirmation flows or blocks (where the store offers pay on delivery): hand off to cut-rto-on-cod-orders and confirm-cod-orders-by-chat-or-call.
  • Designing the returns portal and exchange flow: use set-up-returns-and-exchanges.
  • Optimising Meta for delivered orders: use meta-ads-for-cod-stores.

What you need

Required (read access, level 1):

  1. Shopify order export, at least 90 days ending 30 days ago (so orders have matured): Name, Created at, Financial Status, Fulfillment Status, Cancelled at, Payment Method, Shipping Zip, Shipping Province, Subtotal, Shipping, Discount Amount, Refunded Amount, Lineitem sku, Lineitem quantity, Lineitem price, Tags, Source.
  2. Courier or shipping aggregator report for the same orders: order or tracking (AWB) number, postcode, final status (delivered, returned to sender, lost, damaged), delivery attempts, non-delivery reasons, forward freight, return-to-sender freight, payment collection charge if any, weight billed.
  3. Returns export from the returns app or a manual log: order, SKU, reason, item condition, outcome (refund, exchange, store credit), return freight.
  4. Landed cost per SKU and packaging cost per order.
  5. Channel per order: UTM or first-click source from Shopify's sales-by-referrer report or GA4, joined on order number.

Optional: ad cost per order by channel, warehouse labour cost per return, the courier contract.

If the courier report is missing, ask once; without it, failed delivery cost can only be estimated from order statuses, so label every failed delivery number "estimated". If channel data is missing, run by product and area only. This skill only reads data; any fix that changes checkout, payment rules or courier settings needs draft access (level 2) and the client's yes before it goes live.

Before you start: the gates

  1. Gross profit per delivered order. Pass when it is built from delivered cost: landed product, outbound shipping, packing, payment fees [MEA-0037]. Fail: build it first with build-sku-profit-sheet. A fix cannot be judged without knowing what a good order earns.
  2. Matured orders only. Pass when every order in the window is at least 30 days past dispatch, or past the return window if longer. Shopify books returns on the refund date, not the order date, so recent weeks always look too clean [MEA-0011]. Fail: move the window back.
  3. Enough orders per cell. Practitioner default, test it: 30 shipped orders per cell before quoting a rate. Below that, merge cells (see step 4).
  4. Cash and capacity. If a fix needs calling staff or a new courier, confirm someone can do it before it goes on the list.

Steps

1. Cost one failed delivery

Add up, from the courier report and invoices:

  • forward freight (paid even though nothing was sold);
  • return-to-sender freight back to the warehouse;
  • payment collection or handling fee, if the courier charges it on failed orders;
  • packing materials and pick-pack labour, now wasted;
  • damage or write-off share: units returned unsellable / units returned x landed cost;
  • ad cost already spent to win that order (the channel's cost per order).

Keep the ad cost as a separate column: it is spent whether the order is delivered or not, but it is the real reason failed deliveries hurt a paid-traffic store. Stock that sits in transit for a fortnight is also cash you cannot use; note days in transit.

2. Cost one return

Return freight, inspection and repacking labour, any refurbishing, the processing fee you do not get back [FIN-6243], the outbound shipping you gave free, and the write-off share for items that cannot be resold. Book refurbishing and repacking into product cost and return freight as an overhead if the store follows that split [FIN-0009], but count all of it here: this table is about decisions, not the ledger. An exchange costs freight both ways but keeps the sale; a refund loses the sale.

Cost each returned line by its reason, not with one average: refund amount for the returned quantity, plus shipping lost (for a full-order return, the order's shipping charge split by each line's share of value; zero for a part return), plus write-off at landed cost only for reasons where the item cannot be resold (damaged, defective, worn, hygiene). Set the list of write-off reasons with the owner, and check returned goods before writing them off or charging the factory, since some returns are not what the reason says [CXP-0018]. Sum the cost by reason and by product, so the owner sees which reason on which product costs the most.

3. Measure the rates on matured cohorts

  • Failed delivery rate = orders that came back undelivered / orders shipped. Compute pay-on-delivery and prepaid orders separately where the store offers both; prepaid failures are usually rarer and have different causes (address errors, carrier faults, duties refused on cross-border orders).
  • Return rate = units returned / units delivered, by SKU and by size or variant.
  • Refund rate by value = refunded amount / delivered revenue.

Group by order month, not refund month [MEA-0011]. For the P&L, accrue expected returns at this rate on each day's sales instead of waiting for refunds to land [MEA-0028].

4. Cut it three ways

  • Product (SKU and variant). High return rate on one size points to a fit or description problem.
  • Area. Group by postcode area the way the country's carriers sort: in the US, the first three ZIP digits; in the UK, the outward code (for example SW1A); in Canada, the first three characters; in Australia and much of the EU, the full postcode where volume allows, else the first two digits, else the region. Merge thin cells upward until each has 30 orders.
  • Channel. Meta, Google, marketplace, influencer code, organic. Some channels bring buyers who order on impulse and refuse at the door.

Also cut by order pattern where the data allows: first order versus repeat, order value band, and orders placed late at night or with incomplete addresses.

5. Turn rates into money

For each cell: loss per month = failed orders x cost per failed order + returns x cost per return. Also compute profit per order shipped = (delivered orders x gross profit per delivered order minus losses) / orders shipped. Sort cells by loss per month. Usually a small share of cells carries most of the loss; name them.

A product or area that looks profitable per delivered order can lose money per shipped order. That is the number to show the owner [MEA-0023].

6. Read the reasons

Group non-delivery reasons (customer refused, not reachable, wrong address, fake order, delayed delivery) and return reasons (fit, not as shown, damaged, changed mind, late). Each reason points to a different owner: refusals and fake orders to payment and order checks, address problems to checkout, damage to packing, "not as shown" to the product page and ads, late delivery to the courier.

Make the reason data usable first:

  • Map platform codes to a short list and keep the raw code beside it. For Shopify return reasons: size too large or too small to "fit"; not as described, colour or style to "not as shown"; defective to "damaged or defective"; unwanted to "changed mind"; wrong item, other and unknown to "other". Wrong item sent can be moved to its own line when packing errors matter.
  • Set a floor before naming products: list a product under a reason only with at least 3 returns in the period; keep every return in the totals and say how many products sat under the floor.
  • Close the gaps: a refund issued without creating a return records no reason, so count how many refunds have no return record and ask the team to always log returns; return reason lists can also differ by product category, so set categories on products.
  • Rank products by return count and share for each reason, and send the top three product and reason pairs to their owners with the cost from step 2.

7. Price each fix

For every candidate fix: net gain per month = losses avoided minus good orders lost x gross profit per delivered order minus the fix's running cost. Blocking pay on delivery or free returns in an area stops those losses there but also loses buyers who would have paid; never skip that term.

Typical fixes and where they go:

Cause · Fix · Hand off to

Refusals, fake orders · Confirm risky orders (pay on delivery, first orders, high value) by message or call before dispatch · confirm-cod-orders-by-chat-or-call High failed deliveries in a few areas · Prepaid nudge, partial advance or pay-on-delivery block for those cells · cut-rto-on-cod-orders, cod-and-prepaid-checkout-for-india One channel's buyers refuse · Optimise and judge that channel on delivered orders · meta-ads-for-cod-stores Late delivery, lost parcels · Change courier for those postcodes · compare-shipping-carriers Fit or "not as shown" returns · Size guide, better photos, honest copy · write-size-fit-and-how-to-use-guides Refunds that could be exchanges · Exchange-first return flow · set-up-returns-and-exchanges Overbilled weight or return-to-sender charges · Audit courier invoices against orders · this skill, step 8

For low-value items, refunding without asking for the item back can cost less than the return: a return can cost 20 to 65% of the item's cost to process, but about 9% of returns are fraudulent, so cap it by value and repeat use [CXP-0018].

Keep the customer in view: a bad return experience makes most buyers less likely to buy again [CXP-0007]. A fix that saves freight but makes returns painful can cost more in lost repeat orders.

8. Check the courier bills

Match billed weight, return-to-sender charges and collection fees to the orders. Overcharging is common enough that one operator puts it at 30 to 40% of the brands he mentors [OPS-0012]. List each mismatch with the order and AWB. Raising a claim with the courier is a message on the client's behalf: draft it, and send only with the client's yes.

9. Track how returns are resolved

Split every completed return by outcome: exchange (a replacement item sent), store credit (refunded to a gift card or store credit), or refund to the original payment. Report the share of each by count and value, and revenue kept = exchange value + store credit value. Read it monthly by product and reason: a high refund share on "fit" returns means the exchange option is too hard to find or out of stock in the next size. Shifting refunds into exchanges keeps revenue that the loss table in step 5 would otherwise count as lost; hand the flow change to set-up-returns-and-exchanges.

Market notes

  • Pay-on-delivery markets (much of the Middle East, Latin America, Eastern Europe and Southeast Asia): failed deliveries are mostly a pay-on-delivery problem. Include the courier's remittance lag in the cash view. Confirmation messages in the buyer's own language often get better answers than English ones; test it.
  • US, UK, EU, Canada and Australia: pay on delivery is rare, so the weight is on returns. Free return shipping, bracketing (ordering two sizes), the UK and EU 14-day right to cancel online orders, and card disputes are the main costs; check disputes in reconcile-payouts-and-payment-fees.
  • Tax: a return or failed delivery after a tax invoice was raised usually needs a credit note, so sales tax or VAT is not paid on a sale that did not happen; confirm the treatment with the store's accountant.
  • Cross-border orders: parcels refused because duties are due at the door are a failed delivery cause; collecting duties at checkout can fix it.

Checks before you hand it over

  • Cost per failed delivery and per return are built line by line, each line with its source file.
  • Every rate uses matured orders grouped by order month, not refund month.
  • No rate is quoted on a cell with fewer than 30 shipped orders unless marked "thin".
  • Each fix shows losses avoided, good orders lost and running cost, and only fixes with a positive net gain are recommended.
  • Profit per order shipped is shown next to profit per delivered order.
  • Courier mismatches list order, AWB, billed and expected amounts.
  • Return reasons are mapped to a short list with raw codes kept, products under the 3-return floor are counted, and refunds with no return record are counted.
  • Return cost is shown by reason and product, with write-off only on reasons where the item cannot be resold.
  • Exchange, store credit and refund shares are shown with revenue kept.
  • No payment rule, courier setting or customer message was changed or sent without the client's yes.

Output

One-screen summary: total monthly loss from failed deliveries and returns, as money and as a share of gross profit; the three cells that cause most of it; the recommended fixes in order with net gain per month; and up to three assumption lines where a missing cost changes the order of fixes.

Sheet 1, cost per event:

Line · Failed delivery · Return · Source

Forward freight · · · Reverse freight · · · Collection or processing fee lost · · · Packing and labour · · · Write-off share · · · Ad cost per order (separate) · · · Total · · ·

Sheet 2, loss table: Cut (product, area or channel), Cell, Orders shipped, Delivered, Failed delivery rate, Return rate, Loss per month, Gross profit per delivered order, Profit per order shipped, Top reason, Thin cell (yes or no).

Sheet 3, fix list: Rank, Fix, Cells it covers, Losses avoided per month, Good orders lost, Running cost, Net gain per month, Owner, Hand-off skill, Needs client yes (yes or no).

Sheet 4, courier mismatches: Order, AWB, Billed weight, Actual weight, Billed charge, Expected charge, Difference, Claim drafted (yes or no).

Sheet 5, reasons and cost: Reason (short list), Raw code, Product, Returns, Share of returns, Refund amount, Shipping lost, Write-off, Total cost, Owner.

Used by Radek, E-commerce unit economics analyst, Marivic, E-commerce fulfilment and support manager, Sudhir, Marketplace channel manager, Gurdeep, Shipping, delivery and returns manager.