Enterprise-grade, cloud-native backend service
The Inventory API is the operational backbone powering a sophisticated retail and wholesale commerce platform for food and beverage operations. It seamlessly integrates iOS retail, iOS wholesale, and admin applications into a unified system — serving multiple independent businesses with full tenant isolation, real-time inventory tracking, and a sophisticated customer engagement engine.
PostgreSQL Row-Level Security enforced on 35 tables ensures complete data isolation at the database level — not just application layer. Each tenant operates independently with its own customer base, inventory, pricing, and rate limits.
A 4-tier loyalty program (Scoops → Silver → Gold → Diamond) with 12 achievement categories, streak bonuses with grace logic, 10 coupon types including viral referral chains, and 5 promotion types with auto-evaluation.
24-hour idempotency key cache prevents duplicate charges from mobile retries. Persistent audit logs track every mutation with actor, timestamp, and entity type for compliance and forensics.
OpenTelemetry distributed tracing, structured JSON logging with tenant/request context, Sentry error capture, and health endpoints — built in from day one, not retrofitted.