Matching rulesets
How the default_KYC ruleset scores a match in subject matching, dual mode and verified credentials.
Hub uses the same matching rules wherever it compares two sets of identity details:
| Where | What's compared |
|---|---|
| Subject matching | The details you send in subject, against the bank or document result |
| Dual mode | The bank result against the document result |
| Verified credentials | When a credential is first created: the bank result against the document result, as in dual mode |
This page explains how those rules turn the details into a score.
default_KYC
default_KYCThe standard ruleset. Unless your client was configured otherwise, this is the one you're using.
| Attributes matched | given_name, family_name, birthdate, address.postal_code |
| Pass threshold | 65 |
Fields outside those four are ignored. You can sendphone_numberor a full address, but they don't affect the score.
How scoring works
Each attribute is scored 0–100. Hub tries progressively more forgiving comparisons and stops at the first one that succeeds, so the score tells you how it matched, not just whether.
Given name
| Rule | Score | Catches |
|---|---|---|
| Exact | 100 | Identical strings |
| Cleaned | 99 | Different capitalisation, accents, extra spaces |
| Legal name | 95 | A document listing several given names |
| First word only | 85 | One source includes a middle name |
| Known alias | 80 | Jim vs James |
| No match | 0 |
The alias rule is whyBobmatchesRobert. It uses a known-alias list, not fuzzy string matching, so unusual nicknames won't match.
Family name
| Rule | Score | Catches |
|---|---|---|
| Exact | 100 | Identical strings |
| Cleaned | 99 | Capitalisation, accents, spacing |
| Hyphenated | 80 | Smith-Jones vs Jones-Smith, or just one part |
| No match | 0 |
Only the hyphen-is treated as a name separator. Other delimiters aren't.
Birthdate
| Rule | Score | Catches |
|---|---|---|
| Exact | 100 | Identical dates |
| Same date, different format | 95 | 1965-3-3 vs 1965-03-03 (leading zeros) |
| No match | 0 | Including swapped day and month, such as 1965-04-03 vs 1965-03-04 |
birthdate must be a valid YYYY-MM-DD date. Anything else, including an empty value, makes matching fail with a system error rather than score 0.
Postal code
| Rule | Score | Catches |
|---|---|---|
| Exact | 100 | Identical, including the space |
| Without spaces | 99 | M2P1N6 vs M2P 1N6 |
| No match | 0 |
Combining the scores
The overall score is the average of the four attribute scores. The match passes if the average is 65 or more.
| Attribute | Example | Score |
|---|---|---|
| Given name | John vs John Henry | 85 |
| Family name | Doe vs Doe | 100 |
| Birthdate | 1965-03-03 vs 1965-03-03 | 100 |
| Postal code | M2P 1N6 vs M2P1N6 | 99 |
| Overall | (85 + 100 + 100 + 99) ÷ 4 | 96 — passes |
Because it's a plain average, every attribute counts equally:
- One attribute at 0 caps the overall score at 75.
- Two attributes at 0 cap it at 50, which always fails.
- The score isn't rounded, so expect decimals such as
71.25.
Always send all four attributesIf your
subjectleaves one out, it isn't scored as 0. Matching can't complete at all, and fails withfail_reasonSYSTEM_ERRORinstead of a score.If you don't hold a name or postal code, send an empty string (
""): that attribute scores 0 and the other three can still carry the match.birthdatemust always be a validYYYY-MM-DDdate.
Passports score 0 for postal code
A passport carries no address, so postal code can never match. The attribute scores 0, which caps the overall score at 75.
To pass, the other three attributes have to average about 87 or more:
| Given name | Family name | Birthdate | Postal code | Overall |
|---|---|---|---|---|
| 85 | 100 | 100 | 0 | 71.25 — passes |
| 80 | 80 | 95 | 0 | 63.75 — fails |
So a passport user who matches only on a nickname and a reordered hyphenated surname will fail, even with the right birthdate. Take this into account if you expect passport users, and see Document types for which documents carry an address.
Below the threshold
What happens depends on the Partial results option (acceptPartialResult), which your Interac representative sets:
| Value | Result |
|---|---|
false (default) | The verification fails. You get an error, not a score. |
true | You get the result and the score, and decide for yourself. |
Set it to true if you want to auto-approve high scores and route borderline ones to manual review.
The numeric score is available from the Auth Report API, if your client is configured for detailed error reporting.
Sending data that matches well
Small input choices change the score:
| Do | Don't |
|---|---|
| Send the name as it appears on official records | Send a preferred or display name |
Send birthdate as YYYY-MM-DD | Send a locale-specific format — matching fails with a system error |
Send postal_code as A1A 1A1 | Worry about the space — 99 either way |
Send all four attributes, with "" for a name or postal code you don't hold | Omit one — matching fails outright rather than scoring it 0 |
Sending a nickname relies on the alias rule and caps that attribute at 80. If you hold a legal name, send it.
Custom rulesets
Different attributes and thresholds can be configured.
AvailabilityCustom matching rulesets are enabled per client and subject to contractual agreement. Contact your Interac representative to confirm which ruleset applies to your integration.
If you're on a custom ruleset, the scoring ladders above may not apply. Confirm before tuning against them.
Related
- Subject matching
- Dual mode — subject matching is not supported there
Updated 3 days ago