Design a Credit Limit Model for Independent Retailers on Net Terms
Last updated: November 29, 2026
Quick Overview
Design the ML system that assigns and updates a credit limit for each independent retailer buying on net 60 terms, balancing growth in order volume against losses from retailers who never pay. Cover data, labels, modelling, decisioning and monitoring.
Faire
November 29, 20260
0
0 solved
Design the ML system that assigns and updates a credit limit for each independent retailer buying on net 60 terms, balancing growth in order volume against losses from retailers who never pay. Cover data, labels, modelling, decisioning and monitoring.
Offering terms to small shops with thin credit files is both a growth lever and the marketplace's biggest risk exposure. Interviewers check label definition with long outcome windows, cold start for new retailers, how a probability becomes a dollar limit, and feedback loops from the policy itself.
What the Interviewer Expects
- Define default precisely with an outcome window
- Use marketplace behavioural features plus external business signals
- Address cold start for brand new retailers
- Translate predicted risk into a limit with an expected loss framework
- Account for selection bias from past approval policy
- Monitor drift, calibration and loss rates by cohort
Key Topics to Cover
How to Approach This
- Start by mapping the business objective to a concrete ML objective and metric.
- Cover the full pipeline: data collection, feature engineering, model selection, training, serving.
- Discuss online vs offline evaluation. Plan an A/B test to validate real-world impact.
- Address the serving latency budget and whether batch or real-time inference is needed.
- Think about the data flywheel: how user feedback improves the model over time.
Possible Follow-up Questions
- How would you run an experiment on credit limits safely?
- How do you detect retailers gaming the system (bust-out fraud)?
- What fairness or regulatory constraints apply to credit decisions?
- How often should limits be recomputed?
Sharpen Your Skills on Codemia
Practice similar problems with our interactive workspace, get AI feedback, and track your progress.
Practice ML System Design ProblemsSample Answer
Requirements
Output a limit per retailer at signup and refresh it as behaviour arrives. Objective: maximise contribution margin from orders enabled by terms minus credit losses. Constraints: decisions in under a s...
High-Level Design
Offline: build a training table at the decision point (snapshot features as of the day the limit was set) with a label such as 'more than 30 days past due within 120 days of an order'. Train a gradien...