Verification of Payee Rulebook 2.0: Spring Boot Engine
Build a payee-side Verification of Payee responder in Spring Boot that runs EPC rulebook v1.2 and v2.0 side by side, with MATCH, CLOSE_MATCH, NO_MATCH.

A Verification of Payee responder in Spring Boot takes a name and an IBAN, normalises and compares the name against the registered one, and returns MATCH, CLOSE_MATCH or NO_MATCH inside a hard deadline. To survive the move from EPC rulebook v1.2 to v2.0, the rules must be effective-dated configuration, not code. This post builds that engine, and it fits alongside the wider SEPA Instant readiness work for non-euro PSPs.
A caution before the code
I wrote this on 6 December 2026. Every date and rule detail below that comes from news coverage of the European Payments Council (EPC) publications, rather than from the EPC documents themselves, is marked [unverified]. I could not read the primary rulebook text, and by the same coverage the EPC's API specifications are not due until around February 2027.
That has two consequences you should hold me to:
- The numbers are mine. Every threshold, suffix list and scoring weight in this post is a placeholder I picked so the engine runs. None of them come from the EPC matching recommendations. Treat them as slots to fill, and tune them against the real document and your own labelled data.
- The wire format is unknown. I do not know how a requester will signal which rule version it speaks. The router below therefore does not depend on it. It decides by date first, and treats any requester-declared version as an optional hint behind a feature flag.
So the engine is built around one idea: nothing about a rule version is hard-coded. Dates, thresholds and normalisation steps live in configuration, and you edit them when the real documents land.
What Verification of Payee is, in plain words
Today, when you pay someone you type a name and an IBAN (the international bank account number). Only the IBAN decides where the money lands. The name is decoration, which is exactly what impersonation fraudsters rely on: if you are talked into entering the wrong account, nothing objects. The liability side of that problem is covered in my post on PSD3 impersonation fraud liability and payee verification.
Verification of Payee (VoP) inserts a question before the payment leaves: "Does this name belong to this account?" Two parties take part:
- The payer's bank (the requesting side) asks.
- The payee's bank (the responding side) holds the account and answers.
The EPC, the body behind the SEPA schemes, writes the shared rulebook so that answers from different banks are comparable. The answer is one of three outcomes:
| Outcome | Meaning in plain words |
|---|---|
| MATCH | Same name as registered, ignoring harmless differences like capitalisation. |
| CLOSE_MATCH | Similar but not the same. The responder may return the registered name. |
| NO_MATCH | The name does not correspond to the account. |
A fourth state, "could not verify" (the account is closed, the name is unavailable, or the lookup failed), exists in practice. I model it as its own result in the code rather than folding it into NO_MATCH, because telling a payer "wrong name" when the truth is "we could not check" is a bad lie.
What CLOSE_MATCH actually looks like
The three-row table hides where the engineering effort goes. These are the cases that land in the middle band in my test data. The scores are from my placeholder matcher, not from any EPC reference.
| Typed name | Registered name | Why it is close |
|---|---|---|
Jon Smith | Jonathan Smith | Shortened given name |
J. Smith | John Smith | Initial instead of full name |
Smith John | John Smith | Tokens in a different order |
Muller Bakery | Müller Bäckerei GmbH | Diacritics, a translated word and a dropped legal suffix |
Mueller | Müller | Transliteration of the umlaut (ue versus ü) |
Anna Weber | Anna Weber-Schulz | Double-barrelled surname partly given |
Maria and Paul Rossi | Paul Rossi (joint with Maria Rossi) | Joint account with two holders |
Three of those need decisions the matcher cannot make alone. For joint accounts, the lookup must return every holder, and the score is the best match across holders, not the average. For business names, legal suffixes (GmbH, BV, SA and so on) are noise to strip before comparing, but the stripped suffix list must differ per country. For transliteration, ue and ü should fold to the same thing, yet a blanket fold also turns two different surnames into one, which is why the diacritic fold is a per-version flag below.
I run payment-adjacent backends for a living, and the responder is where the real work sits. Plenty of public material covers what the payer sees on screen. Far less covers the service that answers. That service has to be quick, deterministic, explainable after the fact, and able to change its rules on a fixed date without a deployment night.
Why the responder is a versioning problem
According to secondary coverage, the EPC published rulebook versions 1.2 and 2.0 at the end of November 2026, after releasing version 2.0 of the matching recommendations on 3 November 2026 [unverified dates]. The reported timeline:
- v1.2 applies from 16 May 2027 [unverified].
- v2.0 becomes mandatory on 28 November 2027 [unverified].
Consider what that means for a running service. From 16 May to 28 November 2027, v1.2 is the required baseline while v2.0 is permitted but not yet compulsory. Some payer banks will already send v2.0-style requests and expect v2.0-style answers; others will not. After 28 November, v1.2 behaviour should retire.
Hard-code the rules and you get a big-bang release on a fixed date, likely over a weekend, with no way back. Model the rules as effective-dated versions and the cutover turns into a configuration event you can rehearse, shadow-test and roll back. The payer-side counterpart of this work is in my guide to building IBAN-name verification and a fraud-liability engine.
At AirAsia, a rule change that activated on a calendar date caused more incidents than any ordinary code change I shipped there. You can read more about my background in the experience section of this site. The remedy was the same one I use here: treat the date as an input to the decision, never as an assumption baked into it.
The architecture
The diagram traces a request through the version router, the matcher and the audit write.

A request arrives at intake, which starts a deadline clock and stamps a correlation ID. The router then picks a rule set from the effective date, with the requester's declared version only as an optional hint. Next, the account lookup fetches the registered name or names for the IBAN, and the normaliser cleans both sides under the chosen rule set. The matcher scores the pair; the decision mapper turns the score into MATCH, CLOSE_MATCH or NO_MATCH and decides whether the registered name may be returned. Last, the audit writer records the outcome off the hot path. Add distributed tracing with OpenTelemetry so every decision carries its rule version in the span.
Step 1: rules as data, not code
Start with the configuration model. Each rule set is a record with an effective-from date and tunable parameters. As said above, every number here is a placeholder to replace once the matching recommendations have been read in full.
@ConfigurationProperties(prefix = "vop")
public record VopProperties(List<RuleSetConfig> ruleSets, Duration responseDeadline) {
public record RuleSetConfig(
String version, // "current", "1.2", "2.0"
LocalDate effectiveFrom,
LocalDate effectiveUntil, // null = open ended
double matchThreshold, // placeholder, not an EPC value
double closeMatchThreshold, // placeholder, not an EPC value
boolean stripLegalSuffixes,
boolean allowTokenReorder,
boolean foldDiacritics,
Set<String> legalSuffixes) {}
}
And the YAML:
vop:
response-deadline: 3s
rule-sets:
- version: "current"
effective-from: 2025-10-09
effective-until: 2027-05-15
match-threshold: 0.97
close-match-threshold: 0.80
strip-legal-suffixes: true
allow-token-reorder: true
fold-diacritics: false
legal-suffixes: [GMBH, BV, SA, SRL, LTD, SPA, AG]
- version: "1.2" # [unverified] applies from 16 May 2027
effective-from: 2027-05-16
effective-until: 2027-11-27
match-threshold: 0.97
close-match-threshold: 0.82
strip-legal-suffixes: true
allow-token-reorder: true
fold-diacritics: true
legal-suffixes: [GMBH, BV, SA, SRL, LTD, SPA, AG, NV, OY]
- version: "2.0" # [unverified] mandatory 28 Nov 2027
effective-from: 2027-11-28
match-threshold: 0.97
close-match-threshold: 0.85
strip-legal-suffixes: true
allow-token-reorder: true
fold-diacritics: true
legal-suffixes: [GMBH, BV, SA, SRL, LTD, SPA, AG, NV, OY]
There is deliberately no field called "v2.0 behaviour". Every difference between versions is a parameter. If the real v2.0 text adds a normalisation step, you add one boolean and one branch, and the older versions keep working because their flag is false.
The current entry's dates are only a plausible starting point. Replace them with your real scheme adherence date.
Step 2: the effective-dated rule router
The router answers a single question: which rule set governs this request? My rule is a clock first and a header second. The date comes from an injected Clock, so tests can travel through time. If you are also planning the framework upgrade, the Spring Boot 4.2 upgrade guide for payment services covers rollout order.
During the overlap window (v1.2 mandatory, v2.0 allowed) you may want early adopters to opt in. I model that as an optional requested version, honoured only when an early-adoption flag is on. Since the real API specifications do not exist yet, I do not know whether a requester will declare its version in a header, a body field or a scheme-level directory entry. Keep the hint behind the flag, default it off, and let the date decide until the spec says otherwise.
@Component
public class RuleVersionRouter {
private final List<RuleSetConfig> ruleSets;
private final Clock clock;
private final boolean allowEarlyAdoption;
public RuleVersionRouter(VopProperties props, Clock clock,
@Value("${vop.allow-early-adoption:false}") boolean early) {
this.ruleSets = props.ruleSets().stream()
.sorted(Comparator.comparing(RuleSetConfig::effectiveFrom))
.toList();
this.clock = clock;
this.allowEarlyAdoption = early;
}
public RuleSetConfig route(String requestedVersion) {
LocalDate today = LocalDate.now(clock);
if (allowEarlyAdoption && requestedVersion != null) {
Optional<RuleSetConfig> asked = ruleSets.stream()
.filter(r -> r.version().equals(requestedVersion))
.findFirst();
if (asked.isPresent()) return asked.get();
}
return ruleSets.stream()
.filter(r -> !today.isBefore(r.effectiveFrom()))
.filter(r -> r.effectiveUntil() == null
|| !today.isAfter(r.effectiveUntil()))
.reduce((first, second) -> second) // latest effective wins
.orElseThrow(() -> new IllegalStateException(
"No VoP rule set effective on " + today));
}
}
Two details matter. First, the orElseThrow is intentional. A gap in the effective dates is a configuration bug, and I would rather it fail loudly in a startup check than quietly route to the wrong version. I add a validator that runs on boot and rejects overlapping or gapped ranges. Second, the date is evaluated in the scheme's reference timezone, not the server's. A cutover at midnight in one timezone is not midnight in another, so pass a Clock fixed to the scheme's zone.
Step 3: operating the responder under a deadline
The only speed requirement I have seen quoted is "within a few seconds" [unverified], which tells you nothing about how to budget a call. I would treat the deadline as a budget that every stage spends from.
- Deadline propagation. Intake records an absolute deadline (
now + vop.response-deadline) and passes it down. The account lookup gets whatever time remains minus a safety margin for serialisation, not a fresh fixed timeout. With a 3 second budget, I would give the lookup roughly two thirds and keep the rest in reserve. That split is my guess; measure your own p99 before you copy it. - Lookup failure. If the core banking lookup times out or errors, return the "could not verify" state, never NO_MATCH. A false NO_MATCH tells a payer their correct payee is wrong, and people will abandon a legitimate payment over it.
- Caching registered names. Registered names change rarely, so a short-lived cache keyed by IBAN takes load off the core system. Keep the TTL short, evict on any account-holder change event, and never cache across tenants. A stale name here means a wrong verdict, so I would sooner take a cache miss than a long TTL.
- Matching cost. Normalisation and token comparison on short strings is cheap. The latency lives in the lookup, and in joint accounts that return many holders. Cap the number of holders compared per request.
- Numbers. I do not have production load figures for a VoP responder, because none exist for a scheme that has not started. Load-test with a replay of your real SEPA Instant volume and set alerts on the p99 against your budget, not on averages.
Step 4: privacy and abuse
A responder that hands back the registered name on CLOSE_MATCH is also a name oracle. Anyone who can call it can feed in guesses against an IBAN and learn who owns the account. At scale that is enumeration of account holders, which is both a fraud enabler and a data protection problem.
What I would put in place:
- Authenticate the requester. Only scheme participants with a valid credential may call the endpoint. An open endpoint is not an option.
- Rate limit per requester and per target IBAN. Many different guesses against one account, or a single requester sweeping many accounts, are both abuse signals. Throttle and alert on them.
- Return the registered name sparingly. Return it only on CLOSE_MATCH and only if the rulebook permits. On NO_MATCH, return nothing. Where the holder is an individual, consider masking part of the name, subject to what the specification allows.
- Make the "why" invisible to callers. Do not expose the score, the threshold or which rule fired. An attacker can use that to tune guesses.
- Mind GDPR. Names tied to accounts are personal data. You need a lawful basis for processing (likely tied to the payment contract and regulation, which is for your legal team to confirm), data minimisation in what you log, and a defined retention period.
Step 5: what the audit trail must hold
"Asynchronous audit writer" is not a design. The audit record exists so that, when a payer disputes an outcome months later, you can show what you answered and why. This is also the evidence behind the liability questions in the PSD3 posts linked earlier.
Per request I would store: a correlation ID, requester identity, timestamp, the IBAN reference (hashed or tokenised, not raw, where you can), the rule version and rule-set hash used, the outcome, whether a name was disclosed, the score band, and the processing time. I would store the hash of the typed name and the registered name, plus enough to reproduce the decision with the rule version, rather than the names in clear text. Retention is a legal question: set it to the longest dispute window that applies to you and delete on schedule. I do not know the number for your jurisdiction and I will not invent one.
Write the audit record to an outbox in the same transaction as the decision, or to a durable queue, so that a crash cannot drop it. The hot path should not wait on the audit store, but it must not lose the record either.
FAQ
What is the difference between EPC VoP rulebook v1.2 and v2.0?
Based on secondary coverage, v1.2 applies from 16 May 2027 and v2.0 becomes mandatory on 28 November 2027 [unverified]. I could not read the rulebook text, so the engine models every difference as a configuration parameter instead of code.
What does CLOSE_MATCH mean in Verification of Payee?
CLOSE_MATCH means the typed name resembles the registered name without being identical, for instance a typo, a missing middle name, an initial, a reordered name or a company name without its legal suffix. The responder may return the registered name so the payer can decide whether to continue.
How do I run two VoP rulebook versions at the same time in Spring Boot?
Model each version as an effective-dated rule set in configuration and route each request through a router that reads an injected Clock. Add a startup validator that rejects gaps and overlaps, so a bad date fails at boot and not in production.
Who has to build the VoP responder?
Every bank or payment provider that holds accounts receiving euro transfers has to answer VoP requests. That means a service that finds the account, compares names and replies inside a tight deadline.