In brief
An online mortgage process is an application that lives for weeks and passes through a dozen or more systems: the calculator and the pre-contract information sheet, identity and income verification, the credit bureau, property valuation, the land register, the decision engine, the contract generator and the core banking system that releases the funds. Unlike a personal loan, it does not end in one session, so what matters most is the application's state machine, versioned documents and testing of calculations and of events spread over time.
Process stages from the systems' point of view
The customer sees a few screens and documents to sign. Behind them is a process in which each stage has different systems and a different duration.
| Stage | What happens | Systems and integrations | Typical time |
|---|---|---|---|
| simulation | amount, term, installment, APRC | calculator, interest rate table | minutes |
| application | customer, property and income data | front end, CRM, identity verification | one or several sessions |
| income and liabilities | income verification, credit history | account access (AIS), credit bureau, documents | minutes to days |
| property | valuation, legal status | valuation system, surveyor, land registers | days |
| decision | creditworthiness, risk, terms | decision engine, analyst | hours to days |
| contract | terms, documents, signature | document generator, archive, signing | days |
| collateral and disbursement | mortgage entry, insurance, release of funds, tranches | core, collateral system, payments | days to months |
Regulation sets some of the steps. Directive 2014/17/EU on credit agreements for consumers relating to residential immovable property requires giving the customer the European Standardised Information Sheet (ESIS) before the contract, stating the annual percentage rate of charge (APRC) and assessing creditworthiness. In Poland it is implemented by the Act of March 23, 2017 on mortgage credit (in Polish). For systems, this means the information sheet, the APRC and the creditworthiness result must be generated from the same data, stored in the version given to the customer and reproducible years later.
Integrations that decide how long the process takes
Most delays in a mortgage process come from waiting for an external system or a person. The integration design should assume from the start that an answer may come hours or days later.
- Income verification. Instead of scanned salary certificates, the customer can share their account history through the account information interface under the PSD2 directive. The integration and its tests resemble those in a personal loan process, but the analysis covers a longer period and more income sources.
- The credit bureau. The Polish Banking Law (Article 105) sets out when a bank may share and obtain information covered by banking secrecy, including through institutions that collect data on liabilities. The query has to be repeated when too much time has passed since the previous one under the bank's policy.
- The land register. The legal status of the property is checked in Poland's electronic land registers (Elektroniczne Księgi Wieczyste). A mortgage only comes into existence when it is entered in the register, so the system has to track the entry request and its status, often long after the funds are paid out.
- Valuation. An order for a surveyor, a PDF valuation report, the property value entered into the collateral system. This stage has the most manual work and the most corrections.
- The core and payments. Releasing the funds, often in tranches to the seller or the developer, with conditions to be met before each tranche.
The contracts between these systems are best described in one API layer instead of connecting the front end directly to each provider. The principles of such a layer are covered in Bank API layer.
The application as a state machine
A mortgage application has a dozen or so states: draft, submitted, under verification, waiting for documents, waiting for valuation, in decision, approved, contract generated, contract signed, waiting for entry, disbursed, rejected, withdrawn. Then there are loops: the customer changes the amount after valuation, the analyst asks for an extra document, the bank changes the terms before signing.
It is worth describing these states and transitions explicitly, in code or in a process engine, rather than scattering them across flags in the database. Then you can:
- check with tests that each state allows only permitted transitions,
- show the customer and the advisor what the application is waiting for and whose move it is,
- handle deadlines, for example the validity of the decision and the offer, the expiry of a credit bureau query, document reminders,
- reconstruct the application's history in a complaint or an inspection.
The decision engine is one step of the process, and its rules are tested separately, with decision tables and on historical applications. This is described in Decision engines and credit scoring.
How to test a mortgage process
| Area | What to check | Technique |
|---|---|---|
| calculations | installment, schedule, APRC, total cost for different terms, decreasing and equal installments | comparison with a reference spreadsheet approved by the product team, boundary values |
| documents | information sheet, decision, contract: consistency with application data and the template version | comparing the generated document with the expected one, field by field |
| states and transitions | every permitted and forbidden transition, loops, concurrent changes | state machine tests at the API level |
| time | decision expiry, repeated register queries, tranches months later | moving the business date in the test environment |
| integrations | register responses, latency, errors, no response | virtual services with rare cases |
| channels | an application started in the app and finished in a branch | end-to-end tests across channels |
Most defects appear where calculations meet documents: the information sheet shows an APRC calculated before an insurance rate change, and the contract after it. So these two areas are best tested together, on one set of reference applications. External registers are usually not called in tests: virtual services replace them and can return, for example, a land register entry with another mortgage. Moving the date and bookings are covered in Test environments in a bank.
B2Bnetwork engineers design and build lending processes in banks' digital channels: the front end, the API layer, integrations with registers and calculation testing. The scope is described on the Application development page, and a shorter process with a decision in one session is shown in the online personal loan case study.
Questions and answers
Can a mortgage be granted entirely online?
Most stages, yes: the application, income verification, register queries, the decision, the documents. The property-related stages, that is valuation and entering the mortgage in the land register, depend on a surveyor and the court, so they take longer whatever the channel. The form of signing the contract depends on the law and the bank's policy.
How does a mortgage process differ technically from a personal loan?
In the lifetime of the application and the number of parties. A personal loan often ends with a decision in one session. A mortgage application lives for weeks, waits for a surveyor, documents and the register entry, and changes terms along the way. So it needs an explicit state machine, deadline handling and versioned documents.
How do you test the APRC and the repayment schedule?
On a set of reference applications with results calculated independently, for example in a spreadsheet approved by the product team. The set covers boundary values of term and amount, equal and decreasing installments, grace periods and rate changes during the term. Every change in the price list or insurance reruns the whole set.
How do you protect personal data when testing a mortgage process?
An application contains data on income, liabilities and property, so tests use synthetic or masked data. Register responses are replaced by virtual services with fictitious customers. Documents generated in testing should not reach the production archive.
Sources
- Directive 2014/17/EU on credit agreements for consumers relating to residential immovable property, EUR-Lex
- Act of March 23, 2017 on mortgage credit and on the supervision of mortgage credit intermediaries and agents (in Polish), ISAP
- Banking Law of August 29, 1997 (in Polish), ISAP
- Act of July 6, 1982 on land registers and mortgages (in Polish), ISAP
- Electronic Land Registers (in Polish), Ministry of Justice
- Directive (EU) 2015/2366 (PSD2), EUR-Lex