I understand the business
I know what leasing looks like from the client’s, sales and finance side. I can turn that into rules.
Concept
A small company wants to lease a machine, quickly. To make that possible, sales, risk, compliance, finance and the supplier all have to do their part. I know this process from the client’s side of the desk. Here I designed the system for it.
I know what leasing looks like from the client’s, sales and finance side. I can turn that into rules.
For every rule you can find the step, service, data and API that implement it.
I work out duplicates, timeouts and unavailable services before coding starts.
The goal: “a decision in fifteen minutes”. Everyone agrees, but sales thinks about the client, risk about losses, and finance about the paperwork. So I start by talking to each of them and writing down what they want, what worries them, and what rule follows from it.
| Who | Wants | Worries about | So we agree that |
|---|---|---|---|
| Client | The machine this week | A no without a reason | a person can review a refusal |
| Sales | An offer during the call | Losing the client overnight | the offer shows how long it is valid |
| Risk | Policy applied every time | Exceptions nobody recorded | every decision records the rules it used |
| Compliance | A legal basis for every check | Data pulled without consent | without consent we check nothing |
| Supplier | Money on delivery | Waiting for a missing paper | we pay after the signature and a matching invoice |
| Finance | A balance it can prove | A correction in a spreadsheet | we never edit an entry, we reverse it |
Pick a rule and switch between the views. You will see which part of the process, system, data and API is responsible for it. This way it’s easy to answer the question: why do we need this?
Business rules
POST /applications/{id}/decision 403: CONSENT_MISSING 200: outcome, reasons[], ruleVersionPOST /decisions/{id}/reviews 202: assigned to a case officer POST /contracts body: offerId 409: OFFER_EXPIRED POST /payouts header: Idempotency-Key 409: NOT_SIGNED | INVOICE_MISMATCH POST /ledger/journals body: postings[] in minor units 422: UNBALANCED
Given consent was withdrawnWhen a decision is requestedThen no bureau is called Given an automated declineWhen the client asks for a personThen a named officer reviews it Given the same payout sent twiceThen the bank receives one transfer Given any journalThen debits equal credits Given an offer past its validityWhen the client signsThen a fresh offer is proposed
When everything works, it’s simple. I like to check the harder moments before anyone starts coding. Here are four of them, step by step.
The supplier gets one transfer. The key is created with the decision to pay, so a retry can never become a second payment.
We don’t guess. We ask the bank about our reference before sending anything again. Operations see every payout that stays unknown.
The client gets an up-to-date offer. The credit decision stays valid, so the client reads one changed number and does not start over.
The payment won’t get lost in the books. The outbox delivers at least once and the ledger accepts each event once.
Two settings decide who is approved automatically, whose application goes to a person, and who is refused. Move the sliders and see what it means for the company. This is a decision for the business. My job is to show what follows from it.
Model: 120 applications a day, equal amounts, normal scores (600, 80), logistic default curve, 45% loss given default, officers catch half of the bad cases. Illustrative only.
Example: 100,000 PLN for 36 months at 8.4% a year. Pick an event and a month to see the accounting entries. Both sides always have to add up to the same amount.
| Account | Debit | Credit |
|---|---|---|
| Bank | 3,152.12 | |
| Lease receivable | 3,152.12 | |
| Total | 3,152.12 | 3,152.12 |
✓ Balanced
Simplified: VAT, initial fee, residual value and settlement fee are left out. The last instalment absorbs rounding.
First one product, one supplier and decisions made by people. That is enough to check the whole path, from consent to the accounting entries.
Then automatic scoring works in the background. We compare it with people’s decisions before we start to rely on it.
Finally automatic approval for the simplest applications, followed by early settlement and collections.
From day one we measure how long a decision takes, how many payouts are unclear, how often a person changes a refusal, and whether the books balance.