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:

WhereWhat's compared
Subject matchingThe details you send in subject, against the bank or document result
Dual modeThe bank result against the document result
Verified credentialsWhen 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

The standard ruleset. Unless your client was configured otherwise, this is the one you're using.

Attributes matchedgiven_name, family_name, birthdate, address.postal_code
Pass threshold65
🚧

Fields outside those four are ignored. You can send email, phone_number or 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

RuleScoreCatches
Exact100Identical strings
Cleaned99Different capitalisation, accents, extra spaces
Legal name95A document listing several given names
First word only85One source includes a middle name
Known alias80Jim vs James
No match0
📘

The alias rule is why Bob matches Robert. It uses a known-alias list, not fuzzy string matching, so unusual nicknames won't match.

Family name

RuleScoreCatches
Exact100Identical strings
Cleaned99Capitalisation, accents, spacing
Hyphenated80Smith-Jones vs Jones-Smith, or just one part
No match0
🚧

Only the hyphen - is treated as a name separator. Other delimiters aren't.

Birthdate

RuleScoreCatches
Exact100Identical dates
Same date, different format951965-3-3 vs 1965-03-03 (leading zeros)
No match0Including 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

RuleScoreCatches
Exact100Identical, including the space
Without spaces99M2P1N6 vs M2P 1N6
No match0

Combining the scores

The overall score is the average of the four attribute scores. The match passes if the average is 65 or more.

AttributeExampleScore
Given nameJohn vs John Henry85
Family nameDoe vs Doe100
Birthdate1965-03-03 vs 1965-03-03100
Postal codeM2P 1N6 vs M2P1N699
Overall(85 + 100 + 100 + 99) ÷ 496 — 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 attributes

If your subject leaves one out, it isn't scored as 0. Matching can't complete at all, and fails with fail_reason SYSTEM_ERROR instead 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. birthdate must always be a valid YYYY-MM-DD date.

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 nameFamily nameBirthdatePostal codeOverall
85100100071.25 — passes
808095063.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:

ValueResult
false (default)The verification fails. You get an error, not a score.
trueYou 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:

DoDon't
Send the name as it appears on official recordsSend a preferred or display name
Send birthdate as YYYY-MM-DDSend a locale-specific format — matching fails with a system error
Send postal_code as A1A 1A1Worry about the space — 99 either way
Send all four attributes, with "" for a name or postal code you don't holdOmit 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.

📘

Availability

Custom 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