CR-SRS-003 · SOFTWARE REQUIREMENTS SPECIFICATION
Software Requirements Specification
Functional and non-functional requirements, system interfaces and traceability for the Engagement & Loyalty Platform — Rewards, Triggers & Campaign Platform (IEEE-830 style).
Confidential
Version: 1.1
Status: Draft for Review
Date: 19 Jul 2026
Introduction
Purpose & scope
This SRS specifies the software requirements for the Engagement & Loyalty Platform. It refines the BRD and PRD into testable functional requirements (FR) and non-functional requirements (NFR). Requirement IDs are referenced by the architecture, API spec and test plan.
Definitions & references
See the BRD glossary. Related: Data Model, Configuration Guide, Security & NFR.
System context
The Engagement Suite is deployed inside the the Bank-controlled environment. It ingests bank lifecycle events (registration, activation, KYC, UPI, bill-pay, salary, FD) and evaluates trigger rules to issue rewards (primarily scratch cards); it also ingests transaction/customer/card data from CBS & the card system, calculates & posts spend rewards, tracks milestones, exposes admin & customer surfaces, dispatches notifications through the Bank channels, and integrates with external reward-catalogue & fulfilment partners over controlled APIs.
Overall Description
Product functions (summary)
- Bank event ingestion & trigger-rule evaluation (idempotent).
- Scratch-card issuance, hidden-prize storage & reveal.
- Milestone tracking & reward on completion (event & spend windows).
- Transaction ingestion & eligibility validation.
- Point calculation, posting, reversal, expiry, adjustment.
- Campaign & milestone configuration and evaluation.
- Loyalty ledger & balance management.
- Redemption, fulfilment & reversal (incl. points+cash, auto-redeem, charity, partner transfer).
- Loyalty tiers & status; points pooling, transfer/gifting & referral rewards.
- Integrity & risk: clawback, velocity controls, points-dispute workflow.
- Merchant-funded offer management & settlement.
- Communication & notification.
- Administration, RBAC, maker-checker & audit.
- MIS, reconciliation & reporting.
User classes
Campaign Manager, Programme Admin, Approver, Finance/Recon, Support, Merchant Manager, Auditor, Cardholder — per PRD personas.
Assumptions & constraints
- Data residency: all PII & transaction data remain within the the Bank environment.
- Posted (settled/authorised) transactions and bank events are consumed; the Engagement Suite does not authorise payments or originate events.
- Event ingestion is idempotent by
eventRef; scratch-card reveal and ledger writes are idempotent by key.
- All financially material configuration changes pass maker-checker.
Functional Requirements — M13 Event Trigger Ingestion
Bank systems POST lifecycle events to the ingestion API; the trigger engine evaluates configured rules and issues rewards. Canonical event types: USER_REGISTERED, CARD_ACTIVATED, KYC_COMPLETED, UPI_TRANSACTION, BILL_PAYMENT, SALARY_CREDIT, FD_BOOKED. Credit-card spend does not flow through this API — it continues through POST /api/v1/transactions (M1); the engine additionally evaluates spend milestones after each posted card transaction via the internal CARD_SPEND source. API contract in CR-API-006; data model in CR-DAT-005.
| ID | Requirement | Priority | Trace |
| FR-M13-01 | Accept POST /api/v1/events with eventRef (unique), eventType (from the canonical set), a subject reference (cardRef/customerRef/accountId, resolved like the accounts API), optional amountMinor, occurredAt and payload; validate schema & event type. | P0 | BR-01 |
| FR-M13-02 | Idempotent ingestion: eventRef is the idempotency key; a replay returns the original response (duplicate:true) with no additional reward, ledger entry or milestone progress. | P0 | NFR-04 |
| FR-M13-03 | Resolve the target account from the subject reference; reject unknown references with a clear error and audit the attempt. | P0 | M3 |
| FR-M13-04 | Evaluate active trigger rules for the event type using conditions first_occurrence, min_amount_minor and max_per_window {count,window}; return the ordered evaluations with matched and any issued reward. | P0 | BR-01 |
| FR-M13-05 | On a matched rule, issue the configured reward: a scratch card (M14) or a direct points credit (e.g. KYC_COMPLETED → 100 pts) posted idempotently with key evt:{eventRef}:{triggerId}. | P0 | M3,M14 |
| FR-M13-06 | Enforce max_per_window caps (e.g. SALARY_CREDIT max 1/month) and first_occurrence semantics per account across the event history. | P0 | BR-01 |
| FR-M13-07 | Persist every event to cr.bank_event and return eventId, accountId, evaluations and any issued scratchCards in the 201 response. | P1 | M5DB |
| FR-M13-08 | Provide admin reads: GET /api/v1/events?limit&account= (recent events) and GET /api/v1/triggers (trigger rules). | P1 | M7 |
| FR-M13-09 | Enable CORS for the app/portal/admin origins (http://localhost:4002, 4005, 5173) on the event and reward endpoints. | P1 | CR-API-006 |
Functional Requirements — M14 Scratch Card Lifecycle
| ID | Requirement | Priority | Trace |
| FR-M14-01 | Draw prize at issue time from the trigger's (or milestone's) weighted prize table and store it hidden on the card; the state is ISSUED. | P0 | M13,M15 |
| FR-M14-02 | List scratch cards: GET /api/v1/scratch-cards?account=<idOrRef>&status= returning ISSUED/SCRATCHED/EXPIRED; the hidden prize is not returned while ISSUED. | P0 | M9 |
| FR-M14-03 | Reveal: POST /api/v1/scratch-cards/:id/scratch reveals the prize and transitions to SCRATCHED. POINTS prizes post an idempotent ACCRUAL credit (source_type scratch_card, key scr:{scratchCardId}) and return ledgerEntryId & updated balance; VOUCHER prizes record voucherLabel/voucherValueMinor on the card with no ledger credit. | P0 | M3 |
| FR-M14-04 | Idempotent scratch: scratching an already-SCRATCHED card returns the same result without re-crediting; scratching an EXPIRED card returns 409. | P0 | NFR-04 |
| FR-M14-05 | Default expiry 30 days from issue; expired cards cannot be scratched. The scheduler may expire overdue cards in its daily run. | P1 | Ops |
| FR-M14-06 | Record card provenance: trigger_rule_id (NULL for milestone-issued), source_event_id, milestone_code, issued_at, scratched_at, expires_at and idempotency_key (unique). | P1 | M5DB |
Functional Requirements — M15 Milestone Tracking
| ID | Requirement | Priority | Trace |
| FR-M15-01 | Define milestones in cr.milestone_def: code (e.g. UPI_STREAK_3_WEEKLY), name, description, source (an eventType or CARD_SPEND), target_count/target_amount_minor, window (lifetime|weekly|monthly), reward JSONB and status. | P0 | CFG |
| FR-M15-02 | Track progress in cr.milestone_progress per account & window (progress_count, progress_amount_minor, status in_progress|completed|rewarded, completed_at); advance on each qualifying event or posted card transaction. | P0 | M13,M1 |
| FR-M15-03 | On completion, issue the configured reward (scratch card or direct points) idempotently and mark rewarded; window-scoped milestones reset per window. | P0 | M14,M3 |
| FR-M15-04 | Evaluate spend milestones (e.g. SPEND_25K_MONTHLY → 1,000-pt scratch card) using the internal CARD_SPEND source after each posted card transaction — spend accrual (M1) is unchanged. | P0 | M1 |
| FR-M15-05 | Expose GET /api/v1/milestones?account=<idOrRef> returning definitions joined with the account's current progress for app progress bars. | P1 | M9 |
Functional Requirements — M1 Accrual Engine
| ID | Requirement | Priority | Trace |
| FR-M1-01 | Ingest transactions via batch file, API and streaming with schema validation & deduplication. | P0 | BR-01 |
| FR-M1-02 | Validate eligibility: txn type, card & customer status, MCC, merchant, amount, date, reversal flag. | P0 | US-103 |
| FR-M1-03 | Calculate base points by card variant & configured earn rate. | P0 | US-101 |
| FR-M1-04 | Apply accelerated/bonus earn by MCC, merchant, channel or campaign. | P0 | US-102 |
| FR-M1-05 | Enforce caps (per txn, daily, cycle, lifetime) & exclusions; log cap/exclusion events. | P1 | US-104 |
| FR-M1-06 | Post eligible points to the loyalty ledger with full transaction reference & rule id. | P0 | BR-03 |
| FR-M1-07 | Auto-reverse accrual when the underlying transaction is reversed/refunded. | P0 | US-105 |
| FR-M1-08 | Support rounding rules & fractional-point handling configurably. | P2 | CFG |
| FR-M1-09 | Re-process / replay transactions for a window after rule correction (controlled). | P1 | Ops |
| FR-M1-10 | Apply tier-based earn multipliers (e.g. Silver 1×, Gold 1.5×, Platinum 2×) resolved from the customer's active tier at posting time. | P1 | M10 |
| FR-M1-11 | Support channel- & partner-specific earn (e.g. ECOM partner storefront, the Bank net-banking) and international-spend handling with currency-converted base/bonus earn. | P1 | CFG |
| FR-M1-12 | Configurable earn treatment for EMI & standing-instruction (auto-debit) spend, including reduced/zero earn and EMI-principal-only options. | P2 | CFG |
| FR-M1-13 | Resolve accrual through a deterministic accrual-type precedence chain: evaluate base earn first, then layer accelerators, campaign/promotional bonuses, tier multiplier, milestone & lifecycle grants, applying stacking mode (additive vs best-of) per the configured precedence (see Accrual-Type Catalogue). | P0 | CFG |
| FR-M1-14 | Grant welcome/activation, card-anniversary and birthday accruals as first-class accrual types with date/event triggers, idempotent per period and tagged with their source accrual_type in the ledger. | P1 | M2 |
| FR-M1-15 | For international (FX) spend, derive the earn basis from the INR-billed amount (post currency conversion) and support a configurable international multiplier and separate cap bucket. | P1 | CFG |
| FR-M1-16 | Support clawback as a distinct negative accrual type (vs ordinary reversal): triggered by confirmed fraud/chargeback, recoverable even post-redemption, with reason code and recovery tracking (see FR-M3-07). | P0 | M11 |
| FR-M1-17 | Apply rounding once after all multipliers, then enforce caps in the precedence order per-txn → daily → cycle → lifetime; emit a cap/round adjustment event capturing pre- and post-values. | P1 | CFG |
Accrual-Type Catalogue
The accrual engine resolves every eligible transaction or event through the following accrual types. Precedence is the evaluation order; stacking states whether a type adds to or replaces the running total. All emitted ledger entries carry the originating accrual_type and rule_id for traceability (CR-DBS-013) and reporting.
| # | Accrual type | Trigger | Basis | Stacking | Example |
| 1 | Base earn | Any eligible posted spend. | Billed amount × variant earn rate. | Foundation | 2 pts/₹100 → ₹5,000 = 100 pts. |
| 2 | Accelerated (MCC/merchant/channel) | Spend matching MCC, merchant or channel filter. | Base × accelerator factor (or incremental delta). | Additive (delta over base) | 3× dining MCC 5812 → 200 extra pts on ₹5,000. |
| 3 | Bonus / promotional | Active promo rule in window (no enrolment). | Flat or rate uplift on matching spend. | Additive | +1 pt/₹100 on all ECOM in June. |
| 4 | Tier multiplier | Posting while customer holds a tier. | Running subtotal × tier factor. | Multiplicative (on subtotal) | Platinum 2× → 100 base becomes 200. |
| 5 | Milestone-linked | Cumulative spend/count crosses a ladder rung. | Fixed grant per rung. | Additive (one-shot) | ₹50k cumulative → 4,000 pts. |
| 6 | Merchant-funded | Eligible spend at a funded merchant. | Funded points; liability tagged to merchant. | Additive (funding-tagged) | Brand X funds 500 pts on ₹2,000. |
| 7 | Welcome / activation | First eligible spend on a new card. | Flat grant; once per card. | Event (one-shot) | First spend → 2,000 pts. |
| 8 | Anniversary | Card enrolment-date anniversary. | Flat grant, may vary by tier. | Event (annual) | 1 yr → 1,500 pts (3,000 Platinum). |
| 9 | Birthday | Customer birth month/day. | Flat grant or day multiplier. | Event (annual) | Birthday → 1,000 pts or 2× for the day. |
| 10 | International spend (FX) | Foreign-currency transaction. | INR-billed amount × intl multiplier; own cap bucket. | Additive (separate cap) | Intl 2× → USD 100 (₹8,300) = 332 pts. |
| 11 | EMI / standing-instruction | EMI conversion or auto-debit SI spend. | Reduced/zero rate or principal-only basis. | Override (own rule) | EMI principal earns 0.5 pt/₹100. |
| 12 | Reversal | Underlying txn refunded/reversed. | Negative of original earned points. | Negating | ₹5,000 refund → −100 pts. |
| 13 | Clawback | Confirmed fraud/chargeback. | Negative recovery; may drive controlled negative balance. | Negating (recoverable) | Fraud → −2,000 pts recovery. |
Precedence & stacking order: base → accelerator/bonus (additive deltas) →
tier multiplier applied to the spend-derived subtotal → milestone/lifecycle grants (added as flat one-shots,
not multiplied by tier) → rounding (once) → caps in order per-txn, daily, cycle, lifetime. Where two rules of the same class match, the engine applies the configured
stack_mode (
additive or
best_of); the default for overlapping accelerators is
best_of. Exclusions are evaluated before any earn. See
CR-CFG-008 for the precedence config.
Functional Requirements — M2 Campaign & Milestone Engine
| ID | Requirement | Priority | Trace |
| FR-M2-01 | No-code rule builder combining segment, spend, count, MCC/merchant, channel & period with AND/OR groups. | P0 | US-201 |
| FR-M2-02 | Support campaign types: spend-threshold, milestone-ladder, first-txn/activation, weekend/category, dormant-reactivation, festival/seasonal. | P0 | US-202..204 |
| FR-M2-02a | Support lifecycle reward types: welcome/activation bonus, card-anniversary bonus, birthday bonus and surprise & delight (ad-hoc/random grant), each driven by date or event triggers. | P1 | CFG |
| FR-M2-03 | Define eligibility segments (variant, tenure, behaviour, geography, custom lists). | P1 | BO-10 |
| FR-M2-04 | Schedule with start/end, enrolment mode (auto/opt-in), frequency & reward cap. | P0 | US-205 |
| FR-M2-05 | Track per-customer progress toward milestones; unlock once thresholds met. | P0 | US-202 |
| FR-M2-06 | Simulate/preview campaign on sample population before activation. | P1 | QA |
| FR-M2-07 | Enforce campaign budget; alert & optional auto-pause at threshold. | P1 | US-205 |
| FR-M2-08 | Version campaigns; require maker-checker before activation/edit. | P0 | US-701 |
| FR-M2-09 | Support referral and surprise & delight campaign types: referral attributes referrer+referee and grants on qualification (see FR-M12-04); surprise & delight issues an ad-hoc/random grant to a selected cohort. | P1 | M12 |
| FR-M2-10 | Support enrolment modes — auto (all eligible), opt_in (explicit join), targeted_list (uploaded cohort) — and frequency caps (per customer, per period). | P1 | CFG |
| FR-M2-11 | Apply campaign stacking rules: configurable whether a customer may benefit from multiple concurrent campaigns, with priority & mutual-exclusion groups to prevent unintended reward compounding. | P1 | CFG |
| FR-M2-12 | Provide simulation/preview output: projected enrolment, estimated point liability and budget burn on a sample or full eligible population before activation. | P1 | QA |
| FR-M2-13 | Enforce budget controls with hard cap, soft alert threshold and optional auto-pause; record budget consumption per campaign for MIS (FR-M8-01). | P0 | M8 |
| FR-M2-14 | Enforce campaign-type predicates server-side during evaluation: category/weekend campaigns count only spend matching the configured mcc_in and days_of_week (weekend = Sat/Sun); first_txn/welcome qualify only if the customer has no posted purchase before the campaign window (genuinely first); dormant_reactivation qualifies only if there was no posted purchase in the dormant_days window before re-spend. Ineligible evaluations return eligible:false + reason and grant nothing. | P0 | CFG |
Campaign-Type Catalogue
All supported campaign types with their match conditions, an illustrative reward and notes on enrolment. Conditions are composed in the no-code rule builder (FR-M2-01); rewards post to the ledger as campaign-tagged accruals.
| Campaign type | Conditions | Example & reward |
| Spend-threshold | Cumulative eligible spend ≥ X within a window; optional MCC/channel filter. | Spend ₹10,000 in 30 days → 1,000 pts (once per customer). |
| Milestone-ladder | Multiple ascending thresholds; each rung unlocks once. | ₹10k→500, ₹25k→1,500, ₹50k→4,000 pts. |
| First-txn / activation | First eligible spend on a newly issued/unused card. | Welcome ₹500 voucher + activation flag. |
| Weekend / category | Time-of-week and/or MCC match on each qualifying txn. | 2× points on weekend dining. |
| Dormant-reactivation | No eligible spend for N days, then a qualifying spend. | No spend 90 days, then spend → 750 pts. |
| Festival / seasonal | Date-bound boost over a defined festival window. | Festival 3× on shopping MCC. |
| Welcome | Card issuance/enrolment event (no spend required). | 2,000 pts on enrolment. |
| Anniversary | Card enrolment-date anniversary; may vary by tier. | 1,500 pts (3,000 Platinum). |
| Birthday | Customer birth month/day. | 1,000 pts or 2× earn for the day. |
| Surprise & delight | Ad-hoc / randomly selected eligible cohort. | 500 pts surprise grant. |
| Referral | Referee completes qualification (e.g. first spend ≥ threshold). | Referrer 1,000 + referee 500 pts; velocity-capped. |
Functional Requirements — M3 Loyalty Ledger
| ID | Requirement | Priority | Trace |
| FR-M3-01 | Maintain customer/account-wise point balances (available, pending, locked, lifetime). | P0 | BR-03 |
| FR-M3-02 | Record immutable entries: accrual, redemption, reversal, expiry, adjustment — with source, reference & actor. | P0 | BR-03 |
| FR-M3-03 | Apply expiry policy (FIFO/oldest-first) with configurable validity & expiry notifications. | P1 | CFG |
| FR-M3-04 | Support manual adjustments via maker-checker with mandatory reason codes. | P1 | US-701 |
| FR-M3-05 | Guarantee balance integrity (no negative available balance; atomic debit on redemption). | P0 | NFR |
| FR-M3-06 | Provide point-in-time balance & statement export. | P2 | MIS |
| FR-M3-07 | Clawback / reverse points on confirmed fraud or chargeback even when already redeemed; permit a controlled negative available balance (recovery) with reason code & recovery tracking. | P0 | M11 |
| FR-M3-08 | Migrate opening balances from a legacy programme as a dedicated, audited entry type with source lot & expiry preserved. | P1 | Mig |
| FR-M3-09 | Apply an expiry grace period before lots are forfeited; near-expiry lots flagged for nudge generation. | P1 | M6 |
Functional Requirements — M4 Redemption & Fulfilment
| ID | Requirement | Priority | Trace |
| FR-M4-01 | Redeem for gift vouchers, brand vouchers, coupons, OTT, dining, travel, bundles. | P0 | US-401 |
| FR-M4-02 | Redeem as statement credit / cashback with CBS credit instruction. | P0 | US-402 |
| FR-M4-03 | Pay-with-points at POS & online checkout via partner APIs. | P1 | US-403 |
| FR-M4-04 | OTP / step-up authentication for redemption. | P0 | SEC |
| FR-M4-05 | Atomic debit-then-fulfil; auto-reverse points on fulfilment failure & notify. | P0 | US-404 |
| FR-M4-06 | Maintain redemption history & voucher vault (reveal, expiry reminders). | P1 | M9 |
| FR-M4-07 | Catalogue management: SKU, partner, point price, cash value, stock, T&C, eligibility. | P1 | CFG |
| FR-M4-08 | Support partial redemption and points + cash payment at a configurable points-to-cash ratio, with both legs reconciled. | P1 | CFG |
| FR-M4-09 | Auto-redeem on a customer-set rule: threshold-based (e.g. every 5,000 pts → cashback) or scheduled (e.g. monthly), honouring consent & step-up policy. | P2 | CFG |
| FR-M4-10 | Redeem to additional methods: charity donation, statement EMI conversion / annual-fee waiver, and points-to-partner-programme transfer (airline/hotel) — see M12. | P1 | M12 |
| FR-M4-11 | Enforce minimum & maximum redemption rules (per txn, per day) and distinguish instant vs deferred fulfilment per SKU. | P1 | CFG |
| FR-M4-12 | Signature-verified redemption: every redemption request must be signed by the issuing channel and verified server-side before any ledger debit. The request carries a channel signature over the canonical payload, a server-issued single-use nonce and the step-up OTP reference; all three are validated (signature authenticity, nonce freshness/uniqueness, OTP success) prior to commit. | P0 | CR-SEC-009 |
| FR-M4-13 | Reject and audit redemptions failing signature, nonce-replay or OTP checks; nonces are bound to the redemption intent and expire; idempotency-key reuse returns the original result without re-debiting (CR-API-006). | P0 | CR-SEC-009 |
| FR-M4-14 | Charity-donation redemption: debit points and issue a donation instruction to the configured beneficiary, with receipt reference returned to the customer. | P2 | M12 |
| FR-M4-15 | EMI-waiver / annual-fee-waiver redemption: debit points and post the corresponding fee-waiver / EMI-interest-waiver instruction to CBS. | P1 | M3 |
Redemption Methods & Server-Side Verification
The redemption engine supports the methods below. Every burn follows an atomic verify → debit → fulfil flow: the signed request is verified (signature + nonce + OTP per FR-M4-12), points are debited atomically (no negative available balance), fulfilment is invoked, and any fulfilment failure triggers automatic point reversal with customer notification (FR-M4-05).
| Method | Fulfilment | Timing | Notes |
| Gift / brand voucher | Partner voucher issuance to vault. | Instant or deferred | Reveal & expiry tracked. |
| Statement credit | CBS credit instruction. | Deferred (cycle) | Reconciled against CBS posting. |
| Cashback | CBS credit / wallet. | Deferred | Min/max per FR-M4-11. |
| Pay-with-points at POS / online | Partner checkout API. | Instant | Real-time value applied. |
| Charity donation | Beneficiary donation instruction. | Deferred | Receipt reference returned. |
| EMI / annual-fee waiver | CBS waiver instruction. | Deferred | Eligibility checked. |
| Points-to-partner transfer | Airline/hotel partner API. | Instant/deferred | Debit on success, auto-reverse on failure (FR-M12-03). |
| Points + cash | Split: points debit + cash leg. | Per SKU | Both legs reconciled (FR-M4-08). |
| Auto-redeem | Threshold or scheduled rule. | Triggered | Honours consent & step-up (FR-M4-09). |
Functional Requirements — M5–M9 (summary)
| ID | Requirement | Priority |
| FR-M5-01 | Merchant onboarding, KYC reference, offer configuration & eligibility — detailed in M5 below. | P1 |
| FR-M5-02 | Track merchant-funded eligible transactions; compute funded liability & generate settlement reports — detailed in M5 below. | P1 |
| FR-M6-01 | Template engine with variables, multi-language & channel rendering (SMS/email/push/WhatsApp/in-app). | P1 |
| FR-M6-02 | Trigger notifications on events (reward unlocked, near-milestone, expiry, redemption) respecting consent & quiet hours; record delivery status. | P1 |
| FR-M7-01 | RBAC with roles/permissions; SSO with the Bank IdP; session & password policy. | P0 |
| FR-M7-02 | Maker-checker workflow for rules, campaigns, catalogue, budgets, adjustments. | P0 |
| FR-M7-03 | Budget configuration & consumption tracking per programme/campaign. | P1 |
| FR-M8-01 | Standard reports: campaign performance, points liability, expired/reversed, budget utilisation, reconciliation, support cases, fulfilment status. | P0 |
| FR-M8-02 | Automated reconciliation of accrual/redemption vs source & fulfilment; exception workflow. | P0 |
| FR-M8-03 | Immutable audit trail of all configuration & financial events; exportable. | P0 |
| FR-M9-01 | Render rewards surfaces (scratch cards, milestones, points, catalogue, redeem, vouchers) inside the Bank's mobile app/net-banking via APIs; deep-link to the rewards portal via ?card={cardRef}. | P0 |
| FR-M9-02 | the Bank-branded experience; “Powered by Cheggout” footer only. | P1 |
Functional Requirements — M5 Merchant-Funded & Fulfilment Billing (detail)
Merchant-funded offers let merchants co-fund (or fully fund) earned points — including split-multiplier offers; fulfilment partners consume points and are billed for the consumed value. See configuration in CR-CFG-008, data model in CR-DAT-005 and the partner integration contract in CR-FPI-015.
| ID | Requirement | Priority | Trace |
| FR-M5-03 | Funded-offer models & attribution: configure offers with funding model per_point, pct_of_point_value, flat_per_txn or multiplier_split; an idempotent attribution run matches eligible accruals (by MCC/merchant + BIN/variant + period) to active offers, records the merchant-funded share on merchant_txn_map and flags the ledger entry funding_source = merchant. Re-runs never double-attribute (UNIQUE offer × ledger entry). | P1 | CR-DAT-005 |
| FR-M5-04 | Split-multiplier & BIN/variant scope: support headline multipliers split between bank and merchant (e.g. Myntra 10X = 5X bank + 5X merchant) where the merchant funds merchant_multiplier ÷ (bank_multiplier + merchant_multiplier) of earned points; offers may be scoped to specific card variants/BINs via applies_to_variant (e.g. PLATINUM, SIGNATURE only). | P1 | CFG |
| FR-M5-05 | Settlement generation: generate a per-merchant monthly settlement (with settlement_line detail) rolling up attributed funded points and amount due; support draft → generated → settled lifecycle and a Merchant Funding & Settlement MIS report by merchant and by offer. Offer budget_minor caps attribution. | P1 | M8 |
| FR-M5-06 | Fulfilment-partner onboarding: register fulfilment partners (voucher/marketplace/dining/travel/d2c/hotdeals) with point_value_minor, contracted bank_discount_pct and the linked catalogue partner whose redeemed SKUs represent consumption. | P1 | M4 |
| FR-M5-07 | Consumption billing: compute partner billing as consumed_points × point_value_minor × (1 − bank_discount_pct/100); provide an on-demand billing preview and persist a per-period invoice (fp_invoice: consumed points, distinct users, gross, discount, net payable) with draft → generated → invoiced → paid lifecycle. | P1 | M8 |
| FR-M5-08 | Partner consumption report & points APIs: expose per-transaction consumption detail with acceptance MID/TID for partner reports, and a signed, idempotent points API contract (balance check, block/hold, confirm, reverse/release, voucher issue/confirm) per CR-FPI-015. | P1 | CR-FPI-015 |
Functional Requirements — M7 Admin & Governance (detail)
| ID | Requirement | Priority | Trace |
| FR-M7-04 | Full RBAC: manage roles, granular permissions (scopes such as campaign:write, ledger:adjust, admin:approve) and user-role assignment; least-privilege defaults; SSO via the Bank IdP. | P0 | CR-CFG-008 |
| FR-M7-05 | Maker-checker / SoD: enforce that maker and checker are distinct identities; a user cannot approve their own submission; configurable per object type (rule, campaign, catalogue, budget, template, adjustment). | P0 | US-701 |
| FR-M7-06 | Budget config & consumption alerts: define budgets per programme/campaign/merchant; track live consumption; alert at soft threshold and optionally auto-pause at hard cap. | P1 | M2,M8 |
| FR-M7-07 | Reward-catalogue management: CRUD on SKUs (point price, cash value, partner, stock, eligibility, T&C, funding type) under maker-checker; activate/deactivate & schedule. | P1 | M4 |
| FR-M7-08 | Notification-template management: create/version templates with variables, locale & per-channel rendering; preview; maker-checker before activation. | P1 | M6 |
| FR-M7-09 | Support console (Customer 360): view profile, balances (available/pending/locked/lifetime), accrual/redemption/expiry history, tier, cases & vouchers; initiate manual adjustment as a maker (requires checker approval, mandatory reason code). | P0 | M3,M11 |
| FR-M7-10 | Configuration versioning & rollback: every config object is versioned; admins can view diffs, compare versions and roll back to a prior approved version (rollback itself passes maker-checker). | P1 | CFG |
| FR-M7-11 | Audit views: searchable, read-only audit of all config & financial events (actor, before/after, timestamp, approval chain); exportable for Auditor persona. | P0 | M8 |
| FR-M7-12 | Operational dashboards: programme KPIs — accrual/redemption volumes, liability, budget burn, fulfilment SLA, exception & case backlog. | P1 | M8 |
| FR-M7-13 | Scheduler / jobs management: view, configure, trigger and monitor batch & scheduled jobs (accrual batch, expiry, tier eval, reconciliation, notification dispatch) with run history & failure alerts. | P1 | Ops |
Functional Requirements — M8 MIS, Reconciliation & Audit (detail)
| ID | Requirement | Priority | Trace |
| FR-M8-04 | Provide the report catalogue below with on-screen view, scheduled generation and export (CSV/XLSX/PDF) under role-based access; exports are audit-logged. | P0 | CFG |
| FR-M8-05 | Support report scheduling (daily/weekly/monthly) with delivery to authorised recipients/secure store; parameterised by date range, programme, campaign & merchant. | P1 | Ops |
| FR-M8-06 | Maintain a points-liability report reconcilable to the ledger (available + pending, by lot & expiry bucket) for finance close. | P0 | M3 |
MIS / Report Catalogue
Standard reports available on-screen, scheduled and exportable (FR-M8-04, FR-M8-05). Sources reference the ledger, campaign, redemption, settlement, recon and audit stores (CR-DBS-013).
| Report | Purpose | Key fields | Audience | Frequency | Source |
| Campaign performance | Measure enrolment, unlocks & ROI. | campaign_id, enrolled, qualified, points_issued, budget_used, cost/redemption. | Campaign Mgr, Mgmt | Daily/Weekly | campaign, ledger |
| Points liability | Outstanding obligation for finance close. | available_pts, pending_pts, by_expiry_bucket, monetary_value. | Finance | Daily/Monthly | ledger |
| Accrual summary | Earn breakdown by type/source. | accrual_type, rule_id, variant, channel, points, txn_count. | Campaign Mgr, Finance | Daily | ledger, accrual |
| Expired / reversed | Track forfeiture, reversals & clawbacks. | points_expired, points_reversed, clawback_pts, reason_code. | Finance, Risk | Daily/Monthly | ledger |
| Redemption | Burn by method & SKU. | method, sku, points_burned, cash_value, count, partner_id. | Programme, Finance | Daily | redemption |
| Fulfilment status | Monitor delivery & SLA. | redemption_id, status, partner, sla_met, failure_reason. | Support, Ops | Real-time/Daily | redemption, partner |
| Budget utilisation | Spend vs allocation & alerts. | scope, allocated, consumed, pct, auto_pause_state. | Programme, Finance | Daily | budget, campaign |
| Merchant funding & settlement | Funded points & payables by merchant and by offer; split-multiplier & budget burn. | merchant, offer, funded_points, amount_due, period, settlement_status. | Finance, Merchant Mgr | Monthly | merchant_txn_map, settlement |
| Fulfilment-partner consumption | Points consumed & net payable to the bank per partner. | partner, consumed_points, distinct_users, gross, discount_pct, net_payable, MID/TID. | Finance | Monthly | fp_invoice, redemption |
| Reconciliation | Accrual/redemption vs source & fulfilment. | match_count, exceptions, break_amount, ageing, status. | Finance, Ops | Nightly | recon |
| Support cases | Query/dispute volumes & resolution. | case_id, type, status, adjustment_pts, sla, agent. | Support, Mgmt | Daily | cases, ledger |
| Audit | Config & financial event trail. | actor, object, action, before/after, approval_chain, timestamp. | Auditor, Compliance | On-demand | audit |
Functional Requirements — M10 Loyalty Tiers & Status
| ID | Requirement | Priority | Trace |
| FR-M10-01 | Define a configurable tier ladder (e.g. Silver → Gold → Platinum, or Classic → Signature) with qualification metrics (eligible spend and/or points earned over a rolling/anniversary window). The cardholder attains a tier on meeting either its spend threshold or its points threshold (whichever is reached first); the entry tier qualifies with no threshold. | P1 | CFG |
| FR-M10-02 | Evaluate tier qualification on a schedule and on threshold-crossing events; promote immediately on upgrade. | P1 | CFG |
| FR-M10-03 | Apply downgrade / retention rules with a grace window and configurable review cadence; record every tier change with reason. | P1 | M3 |
| FR-M10-04 | Attach tier benefits (earn multiplier, fee waivers, redemption discounts, exclusive catalogue eligibility) consumed by accrual (FR-M1-10) and redemption modules. | P1 | M1,M4 |
| FR-M10-05 | Emit tier-change alerts (upgrade, imminent downgrade) via the communication engine respecting consent & quiet hours. | P2 | M6 |
Functional Requirements — M11 Integrity & Risk Controls
| ID | Requirement | Priority | Trace |
| FR-M11-01 | Velocity & abuse controls: detect anomalous earn/redeem patterns (e.g. excessive referrals, rapid burn, self-dealing) and flag/hold for review. | P1 | SEC |
| FR-M11-02 | Point clawback workflow on confirmed fraud/chargeback, including recovery of value already redeemed (see FR-M3-07). | P0 | M3 |
| FR-M11-03 | Cardholder points-dispute workflow: raise, investigate, decide (credit/deny) and notify, with maker-checker on any resulting adjustment. | P1 | M7 |
| FR-M11-04 | Enforce per-account negative-balance recovery: subsequent accruals net against an outstanding recovery before becoming available. | P1 | M3 |
Functional Requirements — M12 Points Transfer, Pooling & Partners
| ID | Requirement | Priority | Trace |
| FR-M12-01 | Points pooling for family / supplementary-card accounts: configurable pool that aggregates earn from linked cards into a primary loyalty account. | P1 | CFG |
| FR-M12-02 | Member-to-member points transfer / gifting within the programme, with limits, optional fee (in points) and step-up authentication. | P2 | SEC |
| FR-M12-03 | Points-to-partner-programme transfer (airline/hotel) at a configured conversion ratio via partner APIs; debit on success, auto-reverse on failure. | P1 | M4 |
| FR-M12-04 | Referral rewards: attribute a successful referral (referrer + referee) and grant configured points once qualification (e.g. first spend) is met. | P1 | M2 |
| FR-M12-05 | Optional gamification grants — scratch card / spin-the-wheel issued on qualifying events — recorded as standard ledger accruals with provenance. | P3 | M2 |
External Interface Requirements
| Interface | Direction | Mode | Purpose |
| CBS / Card System | Inbound | Batch + API | Transactions, card/customer master, statuses. |
| Transaction switch | Inbound | Stream/API | Near-real-time posted transactions. |
| the Bank IdP (SSO) | Bi-dir | OIDC/SAML | Admin authentication. |
| Bank event sources | Inbound | REST (POST /events) | Lifecycle events (registration, activation, KYC, UPI, bill-pay, salary, FD). |
| Notification gateways | Outbound | API | SMS, email, push, WhatsApp dispatch. |
| the Bank digital channels | Bi-dir | REST | Customer rewards & scratch-card surfaces. |
| Reward catalogue / fulfilment | Outbound | REST | Voucher issuance & fulfilment (controlled). |
| CBS credit posting | Outbound | API/Batch | Statement credit / cashback instructions. |
Non-Functional Requirements
| ID | Category | Requirement / target |
| NFR-01 | Performance | Accrual posting ≤ 2s (API) / batch ≥ 1,000 txn/s; redemption response ≤ 1.5s (P95). |
| NFR-02 | Scalability | Horizontally scalable to 10M+ cards & 50M+ monthly transactions. |
| NFR-03 | Availability | 99.9% for customer-facing & redemption services; graceful degradation for batch. |
| NFR-04 | Reliability | Exactly-once accrual via idempotency keys; no double-credit/double-debit. |
| NFR-05 | Security | Encryption in transit (TLS 1.2+) & at rest (AES-256); tokenised identifiers; see CR-SEC-009. |
| NFR-06 | Auditability | 100% of config & financial events logged immutably with actor & timestamp. |
| NFR-07 | Data residency | All PII & transaction data stay within the the Bank-controlled environment. |
| NFR-08 | Maintainability | Config-driven; rule changes without redeploy; documented APIs. |
| NFR-09 | Observability | Central logging, metrics, tracing, health checks & alerting. |
| NFR-10 | Recoverability | RPO ≤ 15 min, RTO ≤ 2 h; backups & DR per CR-SEC-009. |
| NFR-11 | Accessibility | Customer surfaces target WCAG 2.1 AA. |
| NFR-12 | Localisation | Multi-language notification templates; INR formatting (en-IN). |
Requirements Traceability (extract)
| Business (BR) | Functional (FR) | API | Test suite |
| BR-01 | FR-M13-01..09 | /events, /triggers | TS-EVT-* |
| BR-01 | FR-M14-01..06 | /scratch-cards, /scratch-cards/:id/scratch | TS-SCR-* |
| BR-02 | FR-M15-01..05 | /milestones | TS-MLS-* |
| BR-01b | FR-M1-01..17 | /accruals, /transactions | TS-ACC-* |
| BR-02 | FR-M2-01..13 | /campaigns, /milestones | TS-CMP-* |
| BR-03 | FR-M3-01..09 | /ledger, /balances | TS-LED-* |
| BR-04 | FR-M4-01..15 | /redemptions, /catalogue | TS-RDM-* |
| BR-05 | FR-M5-01..02 | /merchants, /settlements | TS-MER-* |
| BR-06 | FR-M6-01..02 | /notifications, /templates | TS-NOT-* |
| BR-07 | FR-M7-01..13 | /admin, /approvals | TS-ADM-* |
| BR-08 | FR-M8-01..06 | /reports, /recon | TS-MIS-* |
| BR-09 | FR-M10-01..05 | /tiers, /tier-rules | TS-TIER-* |
| BR-10 | FR-M11-01..04 | /disputes, /clawbacks | TS-RISK-* |
| BR-11 | FR-M12-01..05 | /transfers, /referrals, /partners | TS-XFER-* |