Ecommerce

Returns management automation, from the customer's request to the product fix

Returns management automation takes a return from the customer's request to the refund or exchange without anyone copying details between the store, the carrier and the warehouse. We build it around your own policy: a returns portal, rules by reason and product, labels, an inspection step, refunds or exchanges, fraud signals, and a report that turns return reasons into product fixes. Routine returns follow the rules; people decide the rest.

Book an operations review

How a return usually runs, and where it leaks money

In many stores a return still starts as an email. An agent finds the order in Shopify, checks the policy, asks for photos, makes a label in the carrier's portal and sends it. Days later a parcel reaches the warehouse with nothing that links it to the order, so someone searches by the customer's name, checks the item and messages support, and support issues the refund by hand.

Every handover in that chain costs something:

  • Agent time spent on lookups and copy-and-paste, at its worst after a sale or a seasonal peak such as Eid.
  • Stock that waits. A returned jacket left in its box for two weeks misses the weeks it could have sold in.
  • Refund errors, such as a refund paid twice, or paid for an item that never came back.
  • Disputes. A customer who waits too long for a refund may go to their bank instead, which turns a return into a chargeback.
  • Lost lessons. Reasons typed into an inbox as free text never reach the people who could fix the product.

The returns system we build

The parts depend on your policy and your systems, but most returns projects include:

  • A returns portal in Arabic and English, built for a phone first. The customer enters an order number and email or phone, picks the items, chooses a reason and adds photos where the rules ask for them.
  • A rules engine that decides each request from the reason, the product, the order date and the customer's history: approve, approve after photos, send to review, or decline with a clear explanation.
  • Labels and drop-off. Labels or drop-off codes from your carriers' APIs, or instructions when the customer ships the item back themselves. For low-value items, a refund without a return can cost less than the shipping.
  • An inspection screen for the warehouse: scan the label, see what should be in the box, grade it (resell, refurbish or write off), add a photo, and send sellable stock back into inventory sync.
  • Refunds, exchanges and store credit, issued through your store platform and payment provider at the moment your rules set.
  • Return-reason reports by product, variant, size and channel.

Both screens are small web apps beside your store; ecommerce development covers the storefront itself.

Rules by reason and product, written down first

Most stores have a returns policy on a web page and a second, unwritten one in the support team's heads. We write both down together, in a table the team can read and change, before anything is coded. A typical starting point:

ReasonA typical ruleGoes to a person when
Wrong size or fitApprove inside the return window and offer an exchange firstThe item was final sale or shows wear
Arrived damagedAsk for a photo, then replace or refund; skip return shipping on low-value itemsDamage keeps repeating for one carrier or warehouse
Not as describedApprove, and tag the listing for reviewThe same listing collects several such returns
Changed mindApprove if unopened and inside the windowThe product is hygiene-sensitive or made to order
Never arrivedDo not open a return; check the tracking insteadTracking shows the parcel as delivered

Marketplace orders usually follow the marketplace's own return policy, which can take precedence over yours; the system still records those returns so stock and reasons stay complete. Consumer protection rules set minimum return rights in many markets and differ by country, so the table starts from them. This is awareness, not legal advice: confirm what applies with qualified counsel.

When to release the refund

The moment a refund is released is a trade-off between customer trust and the risk of paying for something that never comes back. You can choose a different moment per product or per customer:

Release the refundSuitsThe risk
When the request is approvedLow-value items and customers with a clean historyThe item may never be sent back
At the carrier's first scanMost ordersThe box may be empty or hold a different item
After warehouse inspectionHigh-value items and items that are easy to swapSlow refunds bring complaints and disputes

Exchanges and store credit keep the sale, so many stores offer them first. Offer them honestly, with the refund option on the same screen: hiding it frustrates customers and may conflict with local consumer rules. Cash-on-delivery orders need their own refund path, covered in the FAQ below.

Fraud signals and a review queue that stays short

Most returns are honest, and a rule that flags too many customers buries the real cases. The system scores each request on signals you agree, and sends the high scores to a person. It never declines on a score alone. Typical signals:

  • Many returns from one account, address or card in a short period, especially of high-value items.
  • A return sent from an address that differs from the delivery address.
  • Signs found at inspection: removed tags, wear, or a serial number that does not match the one shipped.
  • A parcel whose weight at drop-off is far from what the items should weigh, where your carrier reports it.

Start with clear rules; a statistical model can come later, once you know which flagged returns really were fraud. Reviewers note a reason for every decision, which keeps the process fair. See handling automation exceptions for queue design.

Turning return reasons into product fixes

A reason picked from a list can be counted; a free-text comment explains it. We keep both. A language model can sort the comments into your reason list and summarise the themes for each product every week, and a person reads a sample to check the sorting. It is a small, well-bounded use of AI automation. The patterns then become tasks:

  • "Runs small" on one shoe: update the size guide and add a fit note to the listing.
  • "Colour looks different" on one variant: reshoot the photos.
  • Damage concentrated on one carrier or packing station: change the packaging or the carrier.
  • "Not as described" only on the Arabic listing: the translation is wrong, a job for catalogue automation.

Connections, data flow and security

How data moves

The portal reads orders from Shopify or your store platform, and marketplace orders through their APIs. Each step (request, approval, label, scan, inspection, refund) writes an event to a log, and the next step picks it up through a webhook or a queue. Every refund call carries an idempotency key, so a retry can never pay twice. Agents see the return inside the help desk, such as Zendesk, and refunds reach accounting, such as QuickBooks or Xero, as credit notes.

Protecting refunds and customer data

  • The portal confirms the customer with a one-time code sent to the order's email or phone, because an order number alone is easy to guess.
  • Uploaded photos are checked for type and size, scanned for malware, and stripped of location metadata before staff see them.
  • Only named roles can approve refunds above a limit, staff accounts use multi-factor authentication, and every refund records who approved it and why.
  • Bank details for cash-on-delivery refunds are collected through a secure form, masked on screen and deleted once the payout is confirmed.

As in every project, we start with a threat review of these flows. If a data protection law applies to you, this is design awareness, not legal advice, so confirm the details with qualified counsel.

From a baseline of handling time to the first release

Measure the baseline listed in the FAQ below before anything changes, and compare the same measures after launch. We do not promise a percentage in advance, because the result depends on your policy, your volumes and your systems.

Most returns projects start with a discovery sprint of about two weeks: we map today's flow with support and the warehouse, write the rules table, prototype the portal and the inspection screen, threat-model the refund flow and agree a roadmap. A common first release is the portal, the rules and the labels, then inspection and refunds, then reporting. See pricing for engagement shapes, and the ecommerce industry page for the wider picture.

A small first step

A review of your order and returns flow

Walk us through how orders, order questions and returns move today. We point out where messages and refunds pile up and what to automate first, in Arabic and English.

Message us on WhatsApp

Questions we get asked

  • If your rules are standard and you sell through one store, an app for your store platform is often enough. A custom build makes sense when the rules depend on data an app cannot see, such as warehouse grading, marketplace orders or cash-on-delivery refunds. Often the answer is an app plus custom integrations; see [build or buy](/blog/build-vs-buy-software).

  • Routine approvals come from the rules you agree, not from a model. AI helps around the edges: it sorts free-text reasons, reads a damage photo and suggests a category, and drafts the reply. Anything outside the rules, above a value limit or flagged for fraud goes to a person, and the model's suggestions are logged and sampled, so you can see how often your team overrules them.

  • There is no card to refund, so the system offers the routes your finance team approves: a bank transfer to an account the customer enters through a secure form, store credit, or a wallet credit. Bank details are masked on screen, kept only until the payout is confirmed, and every payout is logged against its return.

  • Track a few weeks of support minutes per return, days from request to refund, the share of returns that need a manual step, refund errors, and days from warehouse receipt to sellable stock. Add the return rate by reason and product. Without that baseline, nobody can say later whether the new system made a difference.

Keep exploring

Ready to build something secure?

Tell us about your product. We will reply with a clear plan.

Start a project

We would like to use Microsoft Clarity to see how visitors use the site, so we can improve it. It sets cookies and is off unless you accept. Cookie policy