Skip to content
Ayotl

← All notes

November 10, 2026 · In Mercadito

Reviews from people who actually bought, on a platform that never sees the sale

On Mercadito the order goes out over WhatsApp and the platform doesn't know whether a sale happened. That way, anyone could review any business. The proof of purchase came from another feature built the same day: the stamps the business itself confirms.

Mercadito is digital menus, tables and bookings; the order is put together on the menu and goes out to the business's WhatsApp. That's the design, on purpose, and it has a consequence: the platform doesn't see the sale. For reviews that's a serious problem. Without knowing who bought, a «rate us» button is an invitation to the competitor, the friend and the passer-by.

The answer came from elsewhere. That same day we built stamps for repeat purchases: the business sets a goal and a reward, and a customer with an account collects one stamp per purchase. Mercadito only keeps count. A stamp is born in one of three ways: from a WhatsApp order placed while signed in, which stays pending until the business confirms it (capped at three a day); from a booking marked as completed; or by hand at the counter, with the customer's phone number.

That confirmed stamp is exactly what was missing: someone at the business said «yes, this person bought from me». So the rule for reviews fits in one query: you can rate if you have a confirmed stamp or a completed booking in the last ninety days.

SELECT EXISTS (
  SELECT 1 FROM sellos WHERE puesto_id = $1 AND cliente_id = $2
     AND estado = 'confirmado' AND confirmado_at > NOW() - INTERVAL '90 days'
) OR EXISTS (
  SELECT 1 FROM citas WHERE puesto_id = $1 AND cliente_id = $2
     AND estado = 'completada' AND inicio > NOW() - INTERVAL '90 days'
) AS ok
With no confirmed purchase the button doesn't show, and the server gives the same answer to anyone who tries from outside.

The other half is who gets to see them. The business sees every review privately from the first one, with the first name of whoever wrote it, and can reply. The public only sees the average and the comments once there are five: a single bad review doesn't pin a 1.0 on a business that's just starting. The threshold was set with the real size of a small-town pilot in mind: at ten, most businesses would take months to show anything. There's one review per customer and business, and it can be edited.

One boundary stays uncrossed. Mercadito is also the instrument of a research pilot, and its demand data is anonymous by construction: a random session that lives for a day and is never tied to an account. Stamps and reviews go the other way, attached to the customer's account, because without an account there's no stamp card. That's why they're product and not instrument: they live in their own tables and are never joined with the pilot's events. The decision was written into the research log, which can't be edited, and the privacy policy now covers both.

All notes