System Design Atlas

Subscription billing, usage and service entitlements

01 / 10Worked example

Purpose and system boundary

What entitlement decision is allowed while the payment outcome is unknown?

Contract V-161 bills period P-10 from 1 October at 00:00 to 1 November at 00:00 UTC. Tariff T-2 has a base price of 1,000 cents plus 2 cents per usage unit. Event N-161 reports 100 units, so invoice R-161 totals 1,200 cents. Payment order Z-161 is bound to this amount. The scope covers one monthly EUR contract, positive integer usage units, a fixed tariff version per period, one invoice, one payment order and separate correction records.

Starting point Payment status and permission to use the service are separate decisions.

Assumptions for the example case

Original fictional example design: one monthly contract in EUR, positive integer usage units, a fixed tariff version per period, one invoice and one payment order, and separate correction records. Figures and quality targets are illustrative test assumptions. Tax law, multiple currencies, prorated tariff changes and debt collection are outside the scope.

Context and responsibilities

Contract, usage watermark, invoice and entitlement

SubscribersUsage and account view

Billing responsibility

Manage contract and usageV-161 · P-10 · T-2
Bill the periodFix the watermark
Resolve payment and entitlementEvidenced outcome
Billing operationsCorrections and payment reconciliation
Payment serviceExecute Z-161

R-161 fixes T-2 and the included usage snapshot. Late usage creates a correction record and leaves the invoice unchanged.

Payment status and permission to use the service are separate decisions. Model service entitlements with a reason and validity period so customers can understand the service commitment.

Assumptions for the worked example

Scope
One monthly EUR contract; positive integer usage units; a fixed tariff version per period; one invoice and one payment order; separate correction records.
Possible extensions
Tax law, multiple currencies, prorated tariff changes and debt collection.

Track entitlements explicitly

Track entitlements explicitly

Model service entitlements with a reason and validity period.

Payment status and permission to use the service are separate decisions.

Customers can understand the service commitment.

Alternative considered
Using every payment message directly to switch access on or off obscures the entitlement rules.
Trade-off
The entitlement rule requires a product decision.
Reassess
New grace-period or goodwill policies are introduced.

Terms in this step

Track entitlements explicitly
Customers can understand the service commitment.

Try it yourself

The payment response is missing and someone proposes blocking access. Distinguish the evidenced state from the permitted entitlement decision.

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
The payment outcome is unknown; a rejection has not been confirmed.
Second part of the solution
Entitlements follow the explicit contract rule. In this example, an unknown payment outcome does not trigger the restriction associated with a definite rejection.

Apply to your project

Which corresponding assumption in your project would you check first when new grace-period or goodwill policies are introduced?

Step 2 examines how to keep usage units unambiguous.