Ember Rewards: loyalty app for Ember & Oak Kitchen
Fictional 22-restaurant casual-dining group. Replaces lost paper punch cards with a digital program that shows repeat-visit behaviour and wins back lapsed guests, while keeping card data out of the app and marketing consent explicit.
Hi Sam π
Next reward
Free dessertFree entrΓ©e up to 18 USD
Earn points
Rewards
Account and consent
π³ Payment card
π² Wallet pass
π― Scope
MVP
- Join with email or phone, consent choices
- Earn by scanning receipt QR
- Redeem rewards with one-time code at the table
- Birthday offer, wallet pass
Later
- Card-linked auto earn via payment partner
- Tiers and challenges
- Order-ahead and gift cards
- Lapsed-guest win-back journeys
π₯ Personas
Visits with coworkers; wants rewards to feel automatic and fast at the table.
Visits monthly; cares about birthday treats; wary of marketing spam.
π Stories and acceptance criteria
1. Join
As a guest, I want to join in under a minute, so that I earn on today's visit.
Given the sign-up form, when I submit, then marketing opt-in is unticked by default and my consent choice and timestamp are stored.
2. Earn by scanning receipt QR
As a member, I want to scan my receipt, so that points land without asking staff.
Given a valid unclaimed receipt, when I scan it, then points equal to the earn rule show within 3 seconds; a receipt already claimed shows "Already added" and no points.
3. Redeem at the table
As a member, I want to redeem a reward with a code, so that my server can apply it in the POS.
Given enough points, when I tap Redeem, then a one-time code shows with a 10-minute timer; points deduct only after POS confirmation.
4. Birthday offer
As a member, I want a birthday treat, so that I feel valued.
Given a birth month on file, when the month starts, then the offer appears in Rewards; push or email only if opted in; drink offers only if 21+ is confirmed.
π± Screens and states
| Screen | Empty | Loading | Error |
|---|---|---|---|
| Home | 0 pts: "Scan your first receipt" | Ring skeleton | Offline: cached balance with timestamp |
| Scan (2 steps) | n/a | "Checking receiptβ¦" | Already claimed, expired, unreadable β manual code |
| Rewards / Redeem | "Earn X more for your first reward" | List skeleton | Code expired β generate new, points untouched |
| Account | n/a | Toggle spinner | Consent save failed β retry, state unchanged |
ποΈ Data model
| Entity | Key fields | Sensitivity |
|---|---|---|
| Member | id, name, email, phone, birthMonth, homeLocationId | Personal data |
| Consent | memberId, channel, granted, timestamp, source | Personal data, audit |
| AgeCheck | memberId, selfDeclared21, verifiedAt, locationId | Personal data |
| Receipt | checkId, locationId, subtotal, claimedBy, claimedAt | Internal |
| LedgerEntry | memberId, points (+/-), reason, receiptId or redemptionId | Internal |
| Redemption | id, rewardId, code, expiresAt, confirmedByPos | Internal |
| PaymentToken | memberId, partnerToken, last4 | Tokenised; no PAN stored |
ποΈ Architecture
- Client: Flutter (iOS, Android), camera QR scanning, Apple and Google Wallet passes updated by push.
- API: loyalty service with an append-only points ledger (balances derived, never edited).
- POS: receipt QR encodes a signed check ID; redemption confirmed by POS webhook [confirm POS capabilities].
- Auth: passwordless (email or SMS code), device binding for redemption.
- Payments: partner-hosted card linking returns a token, keeping the app out of PCI DSS scope.
- Analytics and CRM: events keyed by member ID; marketing sends gated on Consent records.
- Trade-off: receipt scanning ships fastest without deep POS work; card-linked earn is smoother but needs partner contracts.
π‘οΈ Compliance controls
| Requirement | Control |
|---|---|
| PCI DSS scope | No card entry screens in app; partner-hosted page; tokens only |
| GDPR / CCPA consent | Opt-in off by default; Consent table; one-tap withdraw; data export and delete in Account |
| Age gate | Drink offers hidden unless 21+ declared; staff verify ID at redemption |
Legal review needed for consent wording per market [confirm with stakeholder].
π Metrics and events
| Metric | Event(s) | Target |
|---|---|---|
| Sign-ups per location | member_joined {locationId, source} | [confirm] |
| 90-day repeat visit rate | receipt_scanned {locationId, memberId} | [confirm] |
| Redemption rate | reward_code_shown, reward_redeemed | [confirm] |
| Opt-in rate | consent_changed {channel, granted} | [confirm] |
β οΈ Risks
| Risk | Mitigation |
|---|---|
| Receipt fraud (photos shared) | Signed check IDs, one claim per receipt, 7-day window |
| Franchise POS differences | POS audit in sprint 1; manual code fallback |
| Staff friction at redemption | One-page staff guide, training at each location |
π§ Decisions needed first
- The earn rule and reward catalogue (the 10 pts per 1 USD shown here is an assumption).
- Which POS integration route each franchise location can support.
- Whether points are program-wide or can be set per franchise location.
I can turn this into a sprint-by-sprint build plan or a test plan covering earn, redeem and consent edge cases.