System Design Atlas

B2B wholesale orders with credit limits

01 / 10Worked example

Purpose and system boundary

Which requirements make an order a binding commitment?

Order A-101 requests 10 boxes of item W-101 at 2,000 cents EUR each. Offer P-101 totals 20,000 cents. Customer K-101 has 30,000 cents of available credit and the warehouse holds 15 boxes. The scope is one customer, one currency, one warehouse, a binding price offer, complete local stock and credit reservations, and one complete delivery.

Starting point A valid price does not guarantee stock.

Assumptions for the example case

A fictional example design with one customer, one currency and one warehouse; a binding price offer; complete local stock and credit reservations; and one complete delivery. Figures and quality goals are illustrative test assumptions. Multiple currencies, tax calculation, partial delivery and credit insurance are outside the scope.

Context and responsibilities

Commit price, stock and credit together

Customer purchasingsends out order A-101

Order responsibility

PriceOffer P-101 valid
CommitmentStock + credit atomically
DeliveryReconcile external evidence
SalesOffer + credit terms
Inventory managementProof of delivery

Confirmation reserves ten boxes and 20,000 cents in one business commit; delivery evidence converts the credit reservation to a receivable once.

A valid price does not guarantee stock. Treat price, stock and credit as one commitment. A confirmed order satisfies all three prerequisites.

Assumptions for the worked example

Scope
One customer, one currency and one warehouse; a binding price offer; complete local stock and credit reservations; one complete delivery.
Possible extensions
Multi-currency, tax calculation, partial delivery and credit insurance.

Define the complete commitment

Define the complete commitment

Treat price, stock and credit as one commitment.

A valid price does not guarantee stock.

A confirmed order satisfies all three prerequisites.

Alternative considered
Treating order receipt as confirmation falsely promises fulfilment capacity.
Trade-off
Conflicts prevent some immediate commitments.
Reassess
Pre-orders are offered separately.

Terms in this step

Define the complete commitment
A confirmed order satisfies all three prerequisites.

Try it yourself

An offer is valid but stock is unavailable. Determine whether the order can be confirmed and what response is shown.

A hint for your attempt

Use the specific entities and conditions from this step. The two solution parts distinguish the decision from its evidenced outcome.

Compare with a possible solution
First part of the solution
A valid price alone does not allow confirmation of A-101.
Second part of the solution
The API rejects the joint commitment with the existing reason, leaving neither a stock nor a credit reservation.

Apply to your project

Which corresponding assumption would you test first in your project? Consider this trigger: Pre-orders are offered separately.

Step 2 examines protection of the credit limit.