Skip to main content
MarkupRx is an archived project. Read the story →

Blog / MarkupRx

What one pharmacy owner taught me that 2,400 cold emails couldn't

MarkupRx

TL;DR

It never had a real user. Here's what I built, how I tried to sell it, and the one conversation that explained why it was never going to work.

Between March and June this year I built MarkupRx, a tool to help independent pharmacies catch and appeal prescriptions they were paid less for than the drug cost them. By the end it pulled 13 federal data sources, had about 2,660 tests, and generated appeal letters with evidence attached.

It never had a real user. Here's what I built, how I tried to sell it, and the one conversation that explained why it was never going to work.

The problem

When an independent pharmacy fills a generic prescription, the payer reimburses it at a price the pharmacy doesn't set. Sometimes that price is below what the pharmacy paid for the drug. The claim goes "underwater": the pharmacy loses money on every fill.

The government publishes enough data to see this from the outside. CMS publishes NADAC, the national average price pharmacies pay for each drug, every week. Medicaid publishes what it actually reimbursed, drug by drug. Comparing the two, I found 2,473 of 27,083 comparable generics (9.1%) where Medicaid paid less per unit than the average acquisition cost. Industry surveys tell the same story: in NCPA's 2024 survey, more than half of owners said they lose money on at least 30% of the prescriptions they fill (Pharmacy Times).

Pharmacies can contest these prices through MAC appeals (MAC is the maximum allowable cost a payer sets). My bet was that a neutral tool built on public data could find a pharmacy's underwater claims and build the appeal for them, and that pharmacies would pay for it.

What I built

I built it alone, with Claude Code as the implementation agent: I wrote specs and reviewed, the agent wrote most of the code, and the test suite decided what shipped.

What a pharmacy got:

  • A free public explorer showing underwater generics by state, no login.
  • A dispensing-history upload. Patient data was stripped in the browser and never reached the server.
  • Each claim checked against NADAC as of its fill date, with underwater drugs ranked by dollars lost.
  • One-click MAC appeal letters as PDFs, with the evidence frozen and labeled by source.
  • A dashboard tracking appeals filed, won, lost and money recovered.

The hardest part was making sure the numbers were never confidently wrong. One example: some drugs are priced per mL and others per unit. A database view dropped the unit column, and for a while the system compared per-mL reimbursements against per-unit costs, producing precise, convincing and wrong losses. There's no free conversion table, so the fix was to refuse: compare only when units match, drop implausible spreads, and show "N/A" rather than a misleading number. On an appeal letter, a confident wrong figure is worse than none.

For the engineering details (matching drugs across 13 federal datasets, ingestion that can't double-count, evidence you can re-verify), see the companion post: Matching 13 federal drug-pricing datasets without letting fuzzy matches win.

Trying to sell it

Pricing was $79 a month for 3 appeals or $149 for 10, with a free trial. I sold by cold email.

  • First campaign: about 1,400 pharmacies, about 2,400 emails, a 0.07% positive reply rate. Most of it landed in spam. I learned that partly because one owner's reply, declining because her PSAO already handled appeals, sat in my own spam folder.
  • Second campaign, from a fresh domain: about 90 emails, zero replies, zero site visits.
  • Two industry experts, a PBM-policy consultant and a drug-pricing researcher: no reply.

By then I had made 2,641 commits. I had not had a single in-depth conversation with a pharmacy owner.

The conversation that ended it

At the end of June I finally sat down in person with the owner of a single-location independent pharmacy, a member of a PSAO (a pharmacy services administrative organization, which negotiates with payers on a pharmacy's behalf). We talked for a long time. He agreed the problem was real. Then he took my product apart:

  • MAC appeals are almost always filed through the PSAO. Most pharmacists don't know any other channel exists, or where they would even submit one.
  • The number of underwater drugs in a month can run into the hundreds. My 3 or 10 appeals a month weren't close to enough.

Three other owners confirmed by email that their PSAOs already give them a way to file these appeals. Not built on the public data I was aggregating, but that didn't matter to them.

When I dug into why, the picture got worse. The largest PSAOs are owned by the same three companies that distribute most of the country's drugs: McKesson, Cardinal Health and Cencora. By PCMA's count, over 60% of independent pharmacies belong to one of those three (PCMA). When the PSAO holds the payer contract, appeals go through it; Tennessee's pharmacist association tells members that either the pharmacy or the PSAO should file, not both (TPA). And a strong appeal needs the pharmacy's actual acquisition invoice, which the wholesaler already has, along with the remittance data. The incumbent wasn't a competing app. It was the supplier, holding exactly the two documents an appeal needs. Being the neutral outsider didn't give me a clearer view. It meant I had less information than they did.

My notes from that day: "the more we research the more we run into walls and shrink TAM." I called it a dead end.

What I got wrong

I validated the problem, not the path to fixing it. Underwater claims are real, and every owner I reached agreed. What I never checked was who is allowed to act on them and who already holds the data. Both answers pointed to the same company.

I priced on a guess about frequency. Charging per appeal assumed appeals were rare and valuable. In practice they're constant and routine, which is why the people handling them bundle them into a membership.

I let building stand in for selling. With an agent writing the code, the next feature was always cheap to add, and shipping it felt like progress. 2,641 commits came before one real conversation with a buyer. The tool removed the friction that used to force me to go talk to someone before writing the next thousand lines.

I treated email as discovery. About 2,500 cold emails told me less than one sit-down in a pharmacy.

What I do now

Before building anything, I want a handful of real buyers to say, in their own words, that they have the problem and would pay for a fix, ideally with some commitment attached. Then I build narrow and fast, with them using it.

The engineering wasn't wasted. I built a complete, regulated-domain system end to end, and it taught me how to work with an AI agent without losing control of correctness. It just didn't need to exist yet.

I build payments and ledger software, most recently in card products. I'm open to contract work: [email protected].

Ten minutes to know.

Read the report. Draft an appeal. Renegotiate a contract. Cancel if it isn't worth it.

Free public explorer · 13 federal data sources