Blueprint · Logistics

Returns handling

The returns desk behind a small online shop. A customer asks to send something back and says why, and the warehouse answers. A parcel arrives that may not match what was promised. Someone decides what happens to the goods and to the money, so that neither ends up in the wrong place.

L2–L4

Level range

8

Sprints

40

Tasks

Backend and frontend

Built as

By the last sprint

What you’ll build

A returns system for a small online shop. Customers find what they bought, ask to send one item back and say why, and get an answer with a reason. The warehouse books in a parcel that arrived with no paperwork, records what really came back, not what was claimed, and either puts it back on the shelf or writes it off. The refund follows the inspection and is never paid twice.

What you’ll learn

A skill in every sprint

You show you have it in a pull request your team reviews, then explain it in a walkthrough.

01

Authentication

You can register and sign in a user, keep a request authenticated without asking for the password again, and explain where the credential lives in the browser and why there rather than somewhere else.

02

An order that moves through states

You can move an order through its states, refuse a transition that should not happen, and show the history of how it got where it is.

03

Roles and permissions

You can give users different roles and have the server refuse what a role may not do — not merely hide the button — and show the refusal working against a request the interface never offered.

04

Tracking a delivery

You can record location updates against a shipment and show a customer its current state and history without them refreshing.

05

Proof of delivery

You can capture proof at the point of delivery, store it against the shipment, and produce it later in a dispute.

06

Stock that cannot go negative

You can decrement stock on a sale and prove that a hundred simultaneous orders for ten items produce ten sales and ninety refusals.

07

Going live

Somebody who has never met you can open a URL and use the product — and you can say what is different about the copy running there, where its secrets come from, and what you do when a release turns out to be wrong.

The roadmap

8 sprints, 40 tasks

Every sprint has a goal and a set of tasks. Open a sprint to see the tasks you will pick up.

  1. Sprint 01

    Who is asking, and what they had

    A customer signs in and sees their own delivered orders, warehouse staff can record those orders, nobody can sign up as warehouse staff, and signing out on the shared bench really ends the session.

    5 tasks
    1. Let customers register, sign in and come back to their account
    2. Let staff record delivered orders with what was in them
    3. Show each customer their own delivered orders and nobody else's
    4. Create warehouse accounts that nobody can give themselves
    5. Make signing out of the shared bench tablet end the session
  2. Sprint 02

    Asking for one thing back

    A customer asks to send back part of an order and says why, and can never ask for more than they bought, ask twice for the same item, or ask after the return window has closed.

    5 tasks
    1. Let customers ask to send back part of an order
    2. Make customers choose a reason from a list, with room for their own words
    3. Stop anyone asking to return more than they bought, even from two tabs
    4. Refuse requests after the return window, and tell the customer the dates
    5. Show customers the returns they have asked for and where each has got to
  3. Sprint 03

    The other side of the counter

    Warehouse staff work through a queue of requests and approve or decline each one with a reason, while customers cannot answer their own requests or read anyone else's.

    5 tasks
    1. Give warehouse staff a queue of requests waiting for an answer
    2. Let warehouse staff approve a return and tell the customer what to send and where
    3. Let warehouse staff decline a return with a reason the customer can read
    4. Stop customers answering their own returns or reading anyone else's
    5. Let warehouse staff approve part of a request and decline the rest
  4. Sprint 04

    The parcel nobody announced

    A parcel on the bench is matched to its return, even with no paperwork, without guessing, and an approved return whose parcel never arrives is closed on its own.

    5 tasks
    1. Let warehouse staff book in a parcel using the reference on it
    2. Let warehouse staff search for the return a parcel with no label belongs to
    3. Hold a parcel nobody can match, instead of guessing
    4. Close approved returns whose parcel never arrives
    5. Show warehouse staff what they are still waiting for
  5. Sprint 05

    What actually came back

    Someone at the bench records what is really in the parcel, with photos, and any disagreement with the customer's reason is kept next to it, never written over.

    5 tasks
    1. Record what was really in the parcel, item by item
    2. Record a condition grade for every returned unit
    3. Mark an inspection unfinished while any of its photos has not uploaded
    4. Keep the customer's reason next to what the bench found
    5. Show customers what was received and in what state
  6. Sprint 06

    Shelf or write-off

    Every inspected unit goes back into sellable stock or is written off with its value and reason recorded, exactly once, by a named person.

    5 tasks
    1. Keep a count of sellable stock for each item, with a history of every change
    2. Put a returned unit back in stock only after it has been inspected
    3. Record each written-off unit with the value lost and the reason
    4. Make sure the same unit can only be restocked or written off once
    5. Show the shop what came back in a period and what it was worth
  7. Sprint 07

    Paying it back once

    The refund follows the goods decision, is exactly what was paid for what really came back, and the same money is never paid twice, whichever route pays it.

    5 tasks
    1. Create a refund only once the goods have been dealt with
    2. Work out the refund as what was paid for what really came back, to the penny
    3. Make pressing refund twice pay only once
    4. Pay each unit once when a return and a whole-order refund happen together
    5. Show refunds that are waiting, so nobody waits a month for their money
  8. Sprint 08

    Somewhere a customer can reach

    The app runs on the internet at its own address, keeps its photos through every release, and a bad release can be undone without losing returns or refunds that happened meanwhile.

    5 tasks
    1. Put the returns desk online so a stranger can open the address and use it
    2. Read every setting the app needs from the server's environment
    3. Store inspection photos somewhere that survives every release
    4. Make a bad release possible to undo without losing returns or refunds
    5. Let someone other than you see whether the app is working
The reading

Read before you build

Senior engineers read the docs before they touch the code. Every Blueprint comes with short documents on the product and its world, the kind a team hands a new hire. Read them well and you ask sharper questions and walk into every review prepared.

What you are building

The product, the two kinds of people who use it, and why a return is not an order run backwards.

How a returns desk actually works

How a returns desk works from behind the counter: approval, booking in, inspection, the goods decision and the refund, and why returns worry shop owners.

More logistics Blueprints

More to build

Not the one for you?

Every Blueprint is planned the same way, across health, shopping, money, education and more.

Browse all Blueprints
Ready?

Build returns handling.

Start your free week. Adaeze runs your kickoff, and Lars reviews every pull request.

Start today, for free