Deal-matching web app for beauty wholesale traders

Traders get a short, ranked list of deals meant for them and a clear verdict on each supplier offer. It's being tested with selected beta users.

The offer evaluation screen: supplier offer lines with their verdicts and margins, and the reasoning for one line opened

Project snapshot

Client
Deal match project markDistributor and wholesaler of branded beauty products
Industry
Wholesale distribution: branded beauty products
Region
Netherlands
Duration
About 3 weeksFirst version, with more built since
Team
1 person1 AI/ML engineer
Budget
Under $30k
Delivered
  • Web app with 11 screens
  • Matching engine
  • Alerts and offers inbox
  • Supplier-offer evaluator with a written note
  • Walkthrough video
AI
Offer email reading (Anthropic Claude Haiku 4.5)Being tested with beta users
Key stack
  • Python
  • FastAPI
  • pandas
  • React
  • TypeScript
  • Tailwind CSS

This web app helps a beauty products wholesaler connect what it can buy with who wants to buy it. It sends each trader a short, ranked list of deals, judges every supplier offer against the company's own history, and keeps each trader's clients private. Techuz built the first version in about three weeks, using plain rules for every match and AI only to read offer emails.

The client: a wholesaler that sells everything it buys

The client buys branded beauty products, such as perfume, skincare, cosmetics and hair care, from manufacturers and distributors. It resells them to other distributors and retailers, and aims to sell everything it buys rather than hold stock.

Its traders work in several teams, moving hundreds of brands across five continents.

Some traders only buy, some only sell, and some do both. They all work in a web browser.

The challenge: deals that live in people's heads

Linking a buy to a sell still depended heavily on manual back-and-forth between people. A brand, a price, a client's need and a supplier's offer often sat in different places, and in different people's heads.

The client wanted a structured web app, not a chatbot, that tells the right trader when a real opportunity appears.

The tricky part was brand names. The same brand turns up as “YSL”, “Saint Laurent” or “Yves Saint Laurent”, and the client saw this as one of the biggest technical risks.

Here's what the platform had to get right:

  • Telling the right trader about a real opportunity, without flooding them
  • Matching products and brands however a supplier writes them
  • Keeping each trader's clients hidden from colleagues
  • Judging an offer when there's no fixed target margin
  • Reading offers that arrive in three formats and four currencies

Key decisions and why we made them

Three choices shaped this app. We matched on barcodes and a fixed brand dictionary, enforced trader privacy on the server, and made the offer verdict a visible rule.

How a supplier offer is judged

  1. Supplier offer
  2. Each line matched: On its EAN barcode
  3. Price converted to euros: At the European Central Bank (ECB) rate for that line's date
  4. Compared with the client's own prices: Its buying and selling history
  5. Verdict: The reason, and which traders should know
  1. Barcodes and a brand dictionary, not guesswork

    The easier options were fuzzy name matching, which guesses from similar spellings, or letting an AI model decide which products match. We matched products on the EAN, the barcode number printed on each product, and resolved brand names with a fixed, rule-based dictionary.

    Here's how it works. The dictionary is built from the client's product master, plus known aliases. It copes with accents, punctuation, initials like “Y.S.L.” and endings like “Paris”.

    If a brand isn't in the dictionary, the app flags it instead of forcing a match.

  2. Trader privacy enforced on the server

    Each trader sees only their own clients and suppliers. Where a colleague handles an account, it shows only as “via” plus that colleague's name.

    The easy option was to hide names on screen. We enforce the rule in the back end, on every response, instead.

    Here's how it works. Each trader signs in and gets a signed session token, called a JWT. Ownership and masking checks then run in the service layer, the part of the back end every request passes through.

  3. A visible rule for “is this a good offer?”

    The client gave no target margin, on purpose. So we didn't hide a number in the code; we made the logic explicit.

    Here's how it works. The app converts the offer price to euros and compares it with the client's own average and best purchase price. Then it checks the room to resell, against the lower of the client's average sale price and the market price.

    The price thresholds (25% and 10%) sit in one settings file and show on screen.

Two smaller calls

  • AI reads emails; rules make the calls. Claude Haiku 4.5, Anthropic's AI model, turns a supplier's offer email into a structured offer. Matching, alerts and verdicts stay as plain rules, so every result can be traced.

  • The database sits between the data and the app. The data pipeline fills the database, and the API reads from it. Later, a live read-only feed from the client's Odoo business software can replace the file exports without changing the API.

What we built

Traders work in one web app with 11 screens. Behind it, a data pipeline loads the client's exports and a matching engine raises the alerts.

Supplier offer lines with verdicts, margins and the reason behind one of them

Know whether an offer is worth pursuing

An offer evaluator that gives a verdict, the reason and which colleagues to loop in

The offers inbox: supplier emails ready for AI to read

Turn an offer email into a structured offer

AI email reading in the offers inbox, ready to check and accept

Brands a trader can sell, with how many clients want each one and how many units

See who buys and sells each brand

Brand maps that hide colleagues' client names

Retailer prices against the buy price, with the headroom and a market-window signal; unknown brands flagged

Spot brands retailers sell above the client's price

A retailer price radar

The brand catalog, ready to export as a PDF

Send a client a brand catalog

A PDF export with no internal data in it

Also delivered

See the deals meant for themA ranked list across 6 alert types, capped at 15 per trader

How the project ran

We built a first demo on generated data with 50 hand-picked brands. The client's real files had far more brands, with much messier names, so we rebuilt the brand dictionary from their product master.

The order exports caused a second surprise. They carried the salesperson and customer only on each order's first line, so at first most lines had no trader.

The “who should know” output still looked believable. Filling each order's header down to every line fixed it.

1people

1
AI/ML engineer

What the client received at handover

  • The web app, with 11 screens, shown in a walkthrough video
  • The supplier-offer evaluator: one screen, run on the client's three offer formats, plus a written note

The results

The app is being tested with selected beta users, so there are no usage or deal figures yet. On the client's own files, it matched offers by barcode and flagged what it couldn't place. In one offer, only 4 of 31 barcodes were in the client's catalog, and the app said so instead of inventing a benchmark.

Order lines linked to a trader, after filling down order headers
10% → 100%
Supplier offer formats read
3 of 3
Currencies converted to euros at the ECB rate
4

Figures from a test run on the client's sample files and the app's database.

Tech stack

  1. API

    FastAPI is part of the client's specified stack

  2. Data pipeline

    • pandas
    • ECB reference ratesfor currency
  3. Database

    The client's target is PostgreSQL 16 on AWS, in an EU region

    • SQLitetables shaped like Odoo's, standing in for PostgreSQL
  4. Web app

    React, TypeScript and Tailwind are the client's specified stack

    • React 18
    • TypeScript
    • Vite
    • Tailwind CSS
    • Recharts

Around the core

Sign-in

  • PyJWT

PDF export

  • ReportLab

AI

  • Anthropic Claude Haiku 4.5

Questions about this project

  • Match on the product barcode first, then use a fixed dictionary for brand names. Here, products match on their EAN barcode, and a rule-based dictionary handles spellings like “YSL” and “Saint Laurent”, flagging any brand it doesn't know.

  • Not when every result has to be traced. In this app, matching, alerts and offer verdicts are plain rules, and AI only reads free-text offer emails.

  • Enforce it on the server, not just on the screen. Here, every response passes ownership and masking checks, so other traders' client names never leave the server.

Get a Ballpark Estimate for Your Project

Tell us what you're building. We reply within 24 hours and send a ballpark estimate within 48.

Tell us about your project

A few lines are enough. We reply within 24 hours.

By sending this form I confirm that I have read and accept the Privacy Policy