Preparing your design workspace

Loading the problem and your latest saved attempt…

Design a Credit Card Account and Authorization Platform

Authenticate cardholders, authorize purchases with fraud and credit controls, expose spending status, decide limit changes, and report monthly account state.

Problem statement

Design a credit-card account platform. A cardholder can sign in and view current spending and available credit. A merchant authorization request must receive a real-time approve or decline decision using account/card state, available credit, and an online fraud signal.

The same platform supports an auditable real-time credit-limit decision and produces one monthly account report for an external credit bureau. For this exercise, authorization requests carry a merchant-scoped idempotency key and amount in integer minor units.

An approval places a reversible hold against available credit; later clearing, settlement, disputes, rewards, statements, and payment collection are outside scope. Fraud scoring is an external versioned dependency whose result and timeout policy are recorded with the decision.

Monthly reports use a closed account snapshot and correction files rather than mutating an already acknowledged report. Numeric traffic, latency, retention, and availability values below are practice assumptions rather than source-reported facts.

What to build

  1. An authenticated cardholder can view account status, posted spending, active holds, credit limit, and available credit from a versioned projection.
  2. A merchant can idempotently request a real-time purchase authorization and receive an auditable approve or typed decline decision.
  3. An authorized workflow can request a real-time credit-limit decision bound to the account snapshot, policy, and evidence versions used.
  4. The platform closes one monthly account snapshot, submits a reproducible bureau report, and issues idempotent corrections when needed.

At scalePractice assumption

  • Support 100 million active accounts and 100,000 purchase authorization requests per second at peak.
  • Return an authorization decision within 300 milliseconds at p99 and a credit-limit decision within two seconds at p95.
  • Expose cardholder spending status within five seconds of a hold transition and complete each monthly bureau file within six hours of cutoff.
  • Preserve acknowledged financial decisions through a regional process or availability-zone loss and retain decision evidence for seven years.