Design Premium Subscription Billing With an Auditable Ledger
Last updated: November 29, 2026
Quick Overview
Design the billing system for LinkedIn Premium and Sales Navigator subscriptions, supporting free trials, monthly and annual renewals, upgrades with proration, refunds, and multiple payment processors, with a ledger that finance can audit.
0
0
0 solved
Design the billing system for LinkedIn Premium and Sales Navigator subscriptions, supporting free trials, monthly and annual renewals, upgrades with proration, refunds, and multiple payment processors, with a ledger that finance can audit.
LinkedIn sells subscriptions to individuals and seats to companies, so billing must handle trials, plan changes, and global taxes. Interviewers at senior levels expect correct money handling: idempotency, a double-entry ledger, and safe retry behavior with external processors.
What the Interviewer Expects
- Separates subscription state, invoicing, payment execution, and ledger
- Uses idempotency keys for charges and processor callbacks
- Designs a double-entry, append-only ledger
- Handles trial conversion, proration, and dunning
- Plans reconciliation against processor reports
- Discusses consistency and failure handling with external processors
Key Topics to Cover
How to Approach This
- Start by clarifying functional and non-functional requirements with the interviewer.
- Estimate the scale: QPS, storage, bandwidth. This drives your design decisions.
- Draw a high-level architecture first, then deep dive into 1-2 critical components.
- Discuss trade-offs explicitly (e.g., consistency vs availability, SQL vs NoSQL).
- Address failure scenarios, monitoring, and how the system handles 10x traffic spikes.
Possible Follow-up Questions
- How do you handle a charge where the processor timed out but may have succeeded?
- How would you compute proration when upgrading mid-cycle?
- How do you support corporate invoicing for Sales Navigator seats?
Sharpen Your Skills on Codemia
Practice similar problems with our interactive workspace, get AI feedback, and track your progress.
Practice System Design ProblemsSample Answer
Requirements
Functional: start trials, convert to paid, renew monthly or annually, upgrade or downgrade with proration, cancel at period end, refunds, retries on failed cards (dunning), and support card, PayPa...
High-Level Design
- Subscription service: state machine per subscription (trialing, active, past_due, canceled) and the next billing date.
- Billing scheduler: finds subscriptions due and creates invoices.
- **...