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
ML System Design
Machine Learning Engineer
Faire
November 29, 2026
Machine Learning Engineer
System Design Round
ML System Design
Hard

0

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
credit risk modelling
label delay
reject inference
calibration
expected loss
feedback loops
How to Approach This
  1. Start by mapping the business objective to a concrete ML objective and metric.
  2. Cover the full pipeline: data collection, feature engineering, model selection, training, serving.
  3. Discuss online vs offline evaluation. Plan an A/B test to validate real-world impact.
  4. Address the serving latency budget and whether batch or real-time inference is needed.
  5. 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 Problems
Sample 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...


Submit Your Answer
Markdown supported

Related Questions