Verified credentials (VC)
Verify a user with a reusable credential they hold in the Interac verification app.
A verified credential (VC, also called Creds) is a reusable digital identity the user holds in the Interac verification app. They verify once to create it, then share it in a few taps whenever they're asked, without repeating a full verification.
Use this when you want a verified identity that users keep and control, or when you expect them to verify with you more than once.
Scope
openid vc_scope
Your exact scope string is set during onboarding. See Scopes.
How it works
Most users create their credential the first time they verify with you. After that, they share it directly.
First time — create the credential, then share it:
- You start a verification as described in Step 2. Hub shows the user a QR code or a link to the Interac verification app.
- The user downloads the app from their app store.
- The user returns to your website and continues the verification, which opens the app. If you sent
login_hint, they can also continue directly in the app. - In the app, the user creates a credential through dual mode: they sign in to their bank and scan a government-issued photo ID. Accepted IDs are a passport from any country, or a Canadian driver's licence, provincial photo card, permanent resident card or Secure Certificate of Indian Status.
- The user consents to sharing the new credential with you.
- You collect the results from the userinfo endpoint.
Next time — share the credential:
- You start a verification as described in Step 2.
- The user opens the app, typically by scanning a QR code or following a deep link.
- The user consents to sharing the credential with you.
- You collect the results from the userinfo endpoint.
Your integration is the same either way.
Help users come preparedTo maximize pass rates, tell users before you redirect them what they'll need the first time: the Interac verification app, their online banking sign-in and a government-issued photo ID. Users who come prepared complete the flow more smoothly.
What you get back
The credential carries its own metadata alongside the identity claims.
The same person, presenting a credential built from two different documents. Compare the tabs: a driver's licence fills in back_photo_doc and residence; a passport leaves them null.
{
"given_name": "John",
"family_name": "Doe",
"birthdate": "1990-01-31",
"issuance": {
"issuer": "Interac Corp.",
"issue_date": "2026-10-22T13:03:21Z",
"issue_expiry": "2027-10-22T13:03:11Z"
},
"document": {
"doc_type": "Driver's Licence",
"doc_number": "AA123456",
"doc_scan_date": "2026-10-22",
"doc_expiry_date": "2031-03-15",
"issuing_country": "CA",
"issuing_authority": "ON",
"front_photo_doc": {
"description": "Document Front Image",
"mimeType": "image/jpeg",
"uri": "data:image/jpeg;base64,/9j/4Ry",
"hash": "",
"hash-alg": null
},
"back_photo_doc": {
"description": "Document Back Image",
"mimeType": "image/jpeg",
"uri": "data:image/jpeg;base64,/9j/4AAQSkZJRgABAQEASABIAAD/4SM",
"hash": "",
"hash-alg": null
}
},
"predicates": {
"age_over_18": true,
"age_over_19": true,
"age_over_21": true,
"age_over_25": true,
"age_over_55": false,
"age_over_65": false
},
"residence": {
"resident_street_address": "123 Main Street",
"resident_city": "Toronto",
"resident_state": "ON",
"resident_postal_code": "A1B 2C3",
"resident_country": "CAN"
},
"job_id": "8c03497c-0674-4e05-92bb-69198eb5bc13",
"credential_id": "urn:uuid:920b4c64-3809-401d-b7a7-84a311f1034b",
"issuance_policy_url": "https://marketing.interac.ca/interacverifiedcredential"
}{
"given_name": "John",
"family_name": "Doe",
"birthdate": "1990-01-31",
"issuance": {
"issuer": "Interac Corp.",
"issue_date": "2026-10-22T13:03:21Z",
"issue_expiry": "2027-10-22T13:03:11Z"
},
"document": {
"doc_type": "Passport",
"doc_number": "112233445",
"doc_scan_date": "2026-10-22",
"doc_expiry_date": "2031-03-15",
"issuing_country": "UA",
"issuing_authority": "UA",
"front_photo_doc": {
"description": "Document Front Image",
"mimeType": "image/jpeg",
"uri": "data:image/jpeg;base64,/9j/4AAQSkZJRgABAQEAzwC2AAD/2wB",
"hash": "",
"hash-alg": null
},
"back_photo_doc": {
"description": null,
"mimeType": null,
"uri": null,
"hash": null,
"hash-alg": null
}
},
"predicates": {
"age_over_18": true,
"age_over_19": true,
"age_over_21": true,
"age_over_25": true,
"age_over_55": false,
"age_over_65": false
},
"residence": {
"resident_street_address": null,
"resident_city": null,
"resident_state": null,
"resident_postal_code": null,
"resident_country": null
},
"job_id": "8c03497c-0674-4e05-92bb-69198eb5bc13",
"credential_id": "urn:uuid:920b4c64-3809-401d-b7a7-84a311f1034b",
"issuance_policy_url": "https://marketing.interac.ca/interacverifiedcredential"
}| Object | What's in it |
|---|---|
issuance | Who issued the credential, when, and when it expires |
document | The document the credential was built from, including scan images |
predicates | Age checks, as booleans |
residence | Address, if the source document carried one |
credential_id | Unique ID for this credential |
job_id | Unique ID for this verification |
Nulls are normal. A passport has no backside and no address, soback_photo_docandresidencearenull— every field inside them, not the objects themselves. A driver's licence or provincial photo card fills both. Check individual fields fornullrather than checking whether the object exists.
Things to be aware of
doc_type is a display label. It's "Driver's Licence" or "Passport", not the drivers_license / passport values used by document verification. Don't reuse code that branches on the DVS values.
Country codes use two formats. document.issuing_country uses two letters (CA), but residence.resident_country uses three (CAN). Normalise before comparing them.
hash and hash-alg are currently empty. hash is "" and hash-alg is null. Don't build image-integrity checks on them yet.
Dates use two formats. issuance.issue_date and issue_expiry are full timestamps (2026-10-22T13:03:21Z); the document dates are calendar dates (2031-03-15).
Predicates: age without birthdate
The predicates object answers age questions directly, as booleans.
If you only need to know whether someone is old enough, use predicates.age_over_18 instead of birthdate. You get a direct answer and store less personal data.
This matches the derived claims available in bank verification.
Credential expiry
Credentials expire. Check issuance.issue_expiry before relying on one:
from datetime import datetime, timezone
expiry = datetime.fromisoformat(claims["issuance"]["issue_expiry"])
if expiry < datetime.now(timezone.utc):
# Credential has expired
...const expiry = new Date(claims.issuance.issue_expiry);
if (expiry < new Date()) {
// Credential has expired
}Instant expiry = Instant.parse(claims.path("issuance").path("issue_expiry").asText());
if (expiry.isBefore(Instant.now())) {
// Credential has expired
}var expiry = DateTimeOffset.Parse(claims["issuance"]!["issue_expiry"]!.GetValue<string>());
if (expiry < DateTimeOffset.UtcNow)
{
// Credential has expired
}Also worth noting document.doc_scan_date — how old the underlying document verification is. If your policy requires recent verification, check it.
Continuing in the app with login_hint
login_hintSend the user's email address or phone number from your records in login_hint. It lets users who don't have the Interac verification app yet pick up where they left off:
- The user starts a verification on your website.
- They download the app from their app store, then open it on its own rather than from your website.
- The app asks them to register with their email address or phone number.
- When they register with the details you sent, the app restores your verification and they continue the flow.
Send it whenever you hold the user's email or phone number, so users who install the app partway through can carry on without starting over.
Add login_hint to your signed request object as a JSON-encoded string:
{
"iss": "3f6c1a2e-8b47-4d19-9e52-7a0c4b6d1f83",
"scope": "openid vc_scope",
"login_hint": "{\"email\": \"[email protected]\", \"phone_number\": \"+14169378708\"}"
}| Field | Format |
|---|---|
email | RFC 5322, e.g. [email protected] |
phone_number | E.164 with the leading +, e.g. +14169378708 |
Rules:
- PAR only —
login_hintworks withPOST /auth/par, notGET /auth - You can send either field, or both. With both, the user can register with either one to continue.
- An empty object
{}is accepted but does nothing - Empty, whitespace or badly formatted values are invalid and fail the request with
invalid_request— for example, a phone number without the+. If you send both and either one is invalid, the whole request fails.
Note the double encoding:login_hintis a string containing JSON, not a JSON object. Serialise it before adding it to the request object.
login_hintapplies to this flow only. It has no effect on bank or document verification.
Errors
Verified credentials clients use detailed error reporting, which returns acidand the structurederror_descriptiondescribed below. Without it, you receive plain-text values such asUser cancelledinstead. See How Hub reports errors.
Failures arrive at your redirect_uri as query parameters, instead of a code:
https://acme-widgets.example.com/callback
?error=access_denied
&error_description=err%3Auser_cancelled%24details%3Acancelled_on_landing_page%24stage%3Asharing_init
&cid=e661b5a0-4f33-4738-b6a0-0274bb455370
&state=5de789881cc944a78e9c1c9d947f7867
| Query parameter | What it is | Use it to |
|---|---|---|
error | Always access_denied | Tell that the verification didn't complete. It can't tell failures apart. |
error_description | A structured string of key:value pairs joined by $ | Decide what to do. Parse it into the keys below. |
cid | A correlation ID for this verification | Log it with every failure. Interac support uses it to trace the verification, and you can use it with the Auth Report API. |
Reading error_description
error_descriptionDecoded, the error_description above is:
err:user_cancelled$details:cancelled_on_landing_page$stage:sharing_init
| Key | Meaning | Always present? | Use it to |
|---|---|---|---|
err | What went wrong | Yes | Branch on this. It's the stable code. |
details | A more specific reason | No | Add specifics to your logs or your message to the user |
stage | Where in the flow it happened | No | See where the user got to, for analytics and support. It doesn't change the action. |
So this one reads: the user cancelled, on the landing page, at the start of the flow. The Auth Report API returns the same values as separate error_code, error_details and stage fields.
stage | When it happens |
|---|---|
sharing_init | Starting the presentation |
sharing_interaction | In the app, while sharing |
sharing_completion | Finishing up after consent |
issuance | While creating a new credential |
Hub sets the first three. issuance, and any other stage value, comes from the Interac verification app and is passed through unchanged, so you may see values not listed here.
Handling errors
Parse error_description, branch on its err value, and treat details and stage as context.
err value | What it means | Example error_description | Suggested action |
|---|---|---|---|
user_cancelled | The user chose to stop | err:user_cancelled$details:cancelled_on_landing_page$stage:sharing_init | Offer to try again, or another way to verify. Don't log it as an error. |
no_consent | The user declined to share | err:no_consent$stage:sharing_interaction, or the same with $details:no_consent | Offer to try again, or another way to verify. Don't log it as an error. |
session_timeout | The user ran out of time | err:session_timeout$details:vcs_session_expired$stage:sharing_interaction | Offer to try again |
no_match_found | No credential matched the request | err:no_match_found$stage:sharing_interaction | Offer to try again, or another way to verify |
document_rejected, document_suspected, idv_data_matching_failed | The verification to create a credential didn't pass | err:document_rejected$stage:issuance | Apply your policy: retry, another way to verify, or decline |
system_error, wallet_error, issuance_incomplete | A temporary system issue | err:wallet_error$details:network_error$stage:sharing_interaction | Invite the user to try again later. Log the cid. |
| Anything else | A value you haven't seen before | Handle it like system_error, and log the full error_description and cid |
Expect values you haven't seen. Errors in this flow come from the Interac verification app and credential service, and Hub passes them through unchanged. Always keep a default branch. See Detailed error reference for the values known today.
def parse_error(error_description):
parts = {}
for pair in error_description.split("$"):
key, sep, value = pair.partition(":")
if sep:
parts[key] = value
return parts
parts = parse_error(request.args["error_description"])
err = parts.get("err")
log_failure(cid=request.args.get("cid"), **parts)
if err in ("user_cancelled", "no_consent", "session_timeout", "no_match_found"):
offer_retry()
elif err in ("document_rejected", "document_suspected", "idv_data_matching_failed"):
apply_verification_policy()
else:
# system_error, wallet_error, issuance_incomplete, and anything new
show_try_again_later()function parseError(errorDescription) {
const parts = {};
for (const pair of errorDescription.split("$")) {
const i = pair.indexOf(":");
if (i !== -1) parts[pair.slice(0, i)] = pair.slice(i + 1);
}
return parts;
}
const parts = parseError(req.query.error_description);
const err = parts.err;
logFailure(req.query.cid, parts);
if (["user_cancelled", "no_consent", "session_timeout", "no_match_found"].includes(err)) {
offerRetry();
} else if (["document_rejected", "document_suspected", "idv_data_matching_failed"].includes(err)) {
applyVerificationPolicy();
} else {
// system_error, wallet_error, issuance_incomplete, and anything new
showTryAgainLater();
}static Map<String, String> parseError(String errorDescription) {
Map<String, String> parts = new HashMap<>();
for (String pair : errorDescription.split("\\$")) {
int i = pair.indexOf(':');
if (i != -1) parts.put(pair.substring(0, i), pair.substring(i + 1));
}
return parts;
}
Map<String, String> parts = parseError(ctx.queryParam("error_description"));
logFailure(ctx.queryParam("cid"), parts);
switch (parts.getOrDefault("err", "")) {
case "user_cancelled", "no_consent", "session_timeout", "no_match_found" -> offerRetry();
case "document_rejected", "document_suspected", "idv_data_matching_failed" -> applyVerificationPolicy();
// system_error, wallet_error, issuance_incomplete, and anything new
default -> showTryAgainLater();
}static Dictionary<string, string> ParseError(string errorDescription)
{
var parts = new Dictionary<string, string>();
foreach (var pair in errorDescription.Split('$'))
{
var i = pair.IndexOf(':');
if (i != -1) parts[pair[..i]] = pair[(i + 1)..];
}
return parts;
}
var parts = ParseError(ctx.Request.Query["error_description"].ToString());
LogFailure(ctx.Request.Query["cid"].ToString(), parts);
switch (parts.GetValueOrDefault("err"))
{
case "user_cancelled" or "no_consent" or "session_timeout" or "no_match_found":
OfferRetry();
break;
case "document_rejected" or "document_suspected" or "idv_data_matching_failed":
ApplyVerificationPolicy();
break;
default: // system_error, wallet_error, issuance_incomplete, and anything new
ShowTryAgainLater();
break;
}Limitations
- Users without a credential are issued one first. Returning users go straight to sharing.
residenceandback_photo_docare null for passport-sourced credentials.- Credentials expire and must be re-issued.
login_hintrequires PAR.
Updated 3 days ago