Project

Item Clearancer

Clearance listings from a scan

When a damaged or shelf-worn item goes to clearance, it needs its own listing so it can be priced and sold apart from the good copies. Doing that by hand in Shopify took 5 to 10 steps, and Item Clearancer does it in two.

At a glance

Role
Designed solo and built with Claude Code
History
First version in April 2026, extended through the summer
Stack
Next.js, React and Tailwind on the Shopify Admin API, on Vercel. No database
Used by
Store staff, from the Apps menu in the Shopify admin
Shopify access
Reads and writes products and inventory. Every listing it creates is set to draft

What it does

One scan and one confirm replace 5 to 10 manual steps in Shopify.

  • By hand

    Duplicate the product, rename it, change every SKU and barcode, fix the price, and adjust stock on both listings.

  • With Item Clearancer

    Scan the item, check the preview of the clearance copy, confirm.

Scanned items join a queue. Each one shows the clearance copy it will become, with the new title, SKU and barcode beside the old ones, before anything is created.

One item in the queue. Its new SKU, barcode and title up top, then steps for the reason, pricing with the margin before and after, location, and an optional stock change.
  • Prefixed identifiers. The copy gets a "Clearance:" title, and every SKU and barcode gets an "x" in front, so scanning it at the register rings up the clearance copy, never the full-price one.
  • Store rules applied for you. Every copy is marked clearance with no backstock, sheet music and books are marked final sale, and the clearance reason and shelf location go on the product. Items that can't be cleared, or are already clearance copies, are refused at the scan.
  • Pricing with the margin in view. Enter a clearance price or a discount and the other fills in. The original price becomes the compare-at price, with the margin shown before and after.
  • Stock on both sides. The clearance copy starts with 1 on hand, and staff can take 1 off the original listing in the same step.

Batches and collisions

A whole cart at once, and a second clearance copy gets its own SKU.

Staff can queue a cart of items and create them together, then download a CSV of the new SKUs for printing labels.

A batch of three, created. One already had a clearance copy, so the new one stepped up to an xx prefix. The label CSV is ready to download.

If an item already has a clearance copy, the app checks Shopify when the item is scanned and steps the new one up to "xx", then further if needed. The preview flags it, so staff know another copy is already out there.

How it's built

A small Shopify app with no database. Shopify is the only record.

When it takes a unit off the original listing, it also tells the Annual Inventory Lookup Tool, which logs a labelled clearance adjustment so staff don't see an unexplained drop. If that message fails, the clearance listing is still created.

Data security

It keeps nothing, and the one key that can change the catalog never leaves the server.

  • Signed in by Shopify. Staff open it from the Shopify admin, which hands the page a short-lived token naming the store and the staff member. Every request carries it, and the server checks its signature, expiry, app and store before doing anything. If a required setting is missing, it refuses every request.
  • Nothing stored. There's no database. The queue lives in the browser until it's submitted, and the label CSV is built there too. Shopify is the only record.
  • One key, kept on the server. The Shopify key that can change products lives only on the server and never reaches the browser. The setup routes that once displayed it were removed, and a new key comes through Shopify's own flow.
  • Checked on the server, not just the screen. The server re-checks every request: a real product, a discount between 0 and 100%, and new SKUs and barcodes that are exactly the originals with an "x" in front. The free-text reason is escaped before it goes on the product.
  • Only inside the admin. The app can only be framed by the store's Shopify admin, so it can't be embedded anywhere else.

A plain-language data protection page inside the app sets all of this out for staff.

How I tested it

I tested it in the live store, which was safe because everything it creates is a draft.

There's no test suite and no separate test store.

  • How: scan a few real items, create their clearance copies, check the drafts in Shopify, then delete them.
  • Why it was safe: nothing reaches the sales floor or the website until a person publishes it. The one change that isn't a draft, taking a unit off the original listing, is a separate opt-in step.
  • Why real items: it was checked against the same catalog staff would be scanning.

What it leaves to people

It never publishes anything.

Every clearance listing is created as a draft, with a direct link to it in Shopify, so a person reviews it before it goes on sale.

Screens show the tool running on demo data.