WhatsApp Commerce V2 · reference implementation

WhatsApp ordering, rebuilt for what the demo didn't show.

A production-oriented reference implementation of WhatsApp Catalog + Cart ordering, on Rails 8, PostgreSQL and the WhatsApp Cloud API, verified against real Meta traffic.

Read the case study Source on GitHub Public menu

The Local Table is a fictional restaurant; its menu is seed data.

WhatsApp chat with The Local Table: a sent cart of 2 items at $20.50, the reply "Thanks! We've received your order #11 (2 items)", and the reply "Good news! Your order #11 is confirmed".
Real order, 7 Oct 2026, captured on the author's phone: the cart sent from WhatsApp's catalog, the app's receipt, and the confirmation after the operator accepted it.

Why V2 exists

Version one took real orders in August 2026. Its own logs showed what the demo hid: all 36 delivery-status webhooks were discarded, 7 errors were answered with HTTP 200 and kept only in a log line, and not one outbound message had a Meta message id.

Version two was rebuilt around those problems. Webhooks are stored before they are interpreted, effects are made idempotent, every outbound message has an explicit state, and failures are visible to an operator.

How it is built

Verified against real Meta traffic

Not a mock: the deployed app ran against Meta's real WhatsApp Cloud API, with the author as the only customer.

Every claim and its evidence →

Explore

Operator console order page with demo data: order #1 for a fictional customer, each line's customer price beside the catalog price, and the replies' sent, delivered and read times.
Operator console with labelled demo data (fictional customer, not a real order).

Limits

A production-oriented reference implementation, not a claim of production-scale operation: one test customer (the author), no uptime or volume figures, and a planned multi-week operating period that was not pursued. Catalog API push and the 24-hour window block were not verified against Meta.