Build spec v1For sign-off: Marketing Β· Digital Β· Franchise ops

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 πŸ‘‹

Points balance
0 pts
Ember member

Next reward

Free dessert

πŸŽ‚ Birthday month

Free entrΓ©e up to 18 USD

Valid until Dec 31 Β· dine-in

🎯 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

Sam, 29, weekly regular

Visits with coworkers; wants rewards to feel automatic and fast at the table.

Rita, 46, family diner

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

ScreenEmptyLoadingError
Home0 pts: "Scan your first receipt"Ring skeletonOffline: 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 skeletonCode expired β†’ generate new, points untouched
Accountn/aToggle spinnerConsent save failed β†’ retry, state unchanged

πŸ—‚οΈ Data model

EntityKey fieldsSensitivity
Memberid, name, email, phone, birthMonth, homeLocationIdPersonal data
ConsentmemberId, channel, granted, timestamp, sourcePersonal data, audit
AgeCheckmemberId, selfDeclared21, verifiedAt, locationIdPersonal data
ReceiptcheckId, locationId, subtotal, claimedBy, claimedAtInternal
LedgerEntrymemberId, points (+/-), reason, receiptId or redemptionIdInternal
Redemptionid, rewardId, code, expiresAt, confirmedByPosInternal
PaymentTokenmemberId, partnerToken, last4Tokenised; 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

RequirementControl
PCI DSS scopeNo card entry screens in app; partner-hosted page; tokens only
GDPR / CCPA consentOpt-in off by default; Consent table; one-tap withdraw; data export and delete in Account
Age gateDrink offers hidden unless 21+ declared; staff verify ID at redemption

Legal review needed for consent wording per market [confirm with stakeholder].

πŸ“ˆ Metrics and events

MetricEvent(s)Target
Sign-ups per locationmember_joined {locationId, source}[confirm]
90-day repeat visit ratereceipt_scanned {locationId, memberId}[confirm]
Redemption ratereward_code_shown, reward_redeemed[confirm]
Opt-in rateconsent_changed {channel, granted}[confirm]

⚠️ Risks

RiskMitigation
Receipt fraud (photos shared)Signed check IDs, one claim per receipt, 7-day window
Franchise POS differencesPOS audit in sprint 1; manual code fallback
Staff friction at redemptionOne-page staff guide, training at each location

🧭 Decisions needed first

  1. The earn rule and reward catalogue (the 10 pts per 1 USD shown here is an assumption).
  2. Which POS integration route each franchise location can support.
  3. 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.