In-Store Age Verification quickstart
Extends Nexiel Age's remote EUDI wallet flow to a physical checkout: alcohol, tobacco, and lottery purchases, each independently country-and-category gated, since a single country (Ireland, for one) can already have three different legal answers across those three categories today. Same service, same route, same wallet protocol as every other Nexiel Verify check: only the checkType and a new required countryCode field differ.
Preview. No country or category is enabled by default: every (country, category) pair starts at NOT_SUPPORTED, and nothing (not this API, not the Legislation Watch Copilot) can move one to ENABLED except a human reviewer's own explicit action in the dashboard. There is no live in-store deployment yet, so use this page to evaluate the flow.
The country and category gate applies to test keys and live keys alike. Until a reviewer enables a pair, every session for it is refused with 403 restricted_category_not_enabled, in either mode. Once a pair is enabled, a test key completes sessions with the synthetic credentials of the sandbox wallet. A live session trusts the EU lists the trust-list registry loads, and fails closed until the list for the presented credential and your relying-party certificates are in place (see going live). The examples below show IE/alcohol after it has been enabled.
What this is, and what this is not
This is not a new verification engine, and it is not proximity/NFC-based. It reuses Nexiel Verify's existing remote OpenID4VP/DCQL flow exactly as-is: the same QR-code-then-wallet-app round trip a phone or laptop checkout uses, just displayed on (or linked from) a physical terminal. The EUDI Architecture Reference Framework already permits this remote/QR flow at a point of sale. No proximity, Bluetooth, or NFC-based wallet handshake is built or required here.
This is not one generic “restricted purchase” check. Alcohol, tobacco, and lottery are three separate checkType values: restricted-purchase-alcohol-18, restricted-purchase-tobacco-18, and restricted-purchase-lottery-18. Each can be independently country/category-gated and independently audited, even though (see the mechanism section below) every one of them offers the exact same alternative underlying wallet claims today.
The mechanism: same alternatives, three gated check types
No EUDI PID attestation publishes an age_over_18 boolean claim at all: the PID Rulebook has no age-derived claim of any kind. DCQL 1.0 Final also has no query-time predicate/range operator, so there is no way to ask a wallet for “over 16” or any other threshold, even if one did exist. So each restricted-purchase check type offers the exact same alternatives, via DCQL credential_sets, as Nexiel Age's own age-verification check: the EU's official Age Verification (AV) attestation, a native age_over_18 boolean disclosed as-is, or the PID's birth date (from the SD-JWT VC PID or the mdoc PID), computed into age_over_18 server-side and discarded immediately. The three differ only in identifier and legal gating, not in what they ask the wallet to disclose:
{
"id": "restricted-purchase-alcohol-18",
"version": 3,
"description": "In-store/self-checkout restricted-purchase check for alcohol. Offers alternative ways to satisfy the same age-over-18 question, via DCQL credential_sets: the EU's official Age Verification (AV) attestation (a native age_over_18 boolean claim, disclosed as-is), or the PID's birth date, from the SD-JWT VC PID or the ISO/IEC 18013-5 mdoc PID (used only to compute age_over_18 server-side, then discarded immediately, never persisted or logged). Same AV-preferred / PID-fallback mechanism as age-verification.",
"dcqlQuery": {
"credentials": [
{
"id": "av_age_over_18_restricted_purchase_alcohol",
"format": "mso_mdoc",
"meta": {
"doctype_value": "eu.europa.ec.av.1"
},
"claims": [
{
"path": [
"eu.europa.ec.av.1",
"age_over_18"
]
}
]
},
{
"id": "pid_age_over_18_restricted_purchase_alcohol",
"format": "dc+sd-jwt",
"meta": {
"vct_values": [
"urn:eudi:pid:1",
"urn:eudi:pid:de:1"
]
},
"claims": [
{
"path": [
"birthdate"
]
}
]
},
{
"id": "pid_age_over_18_restricted_purchase_alcohol_mdoc",
"format": "mso_mdoc",
"meta": {
"doctype_value": "eu.europa.ec.eudi.pid.1"
},
"claims": [
{
"path": [
"eu.europa.ec.eudi.pid.1",
"birth_date"
]
}
]
}
],
"credential_sets": [
{
"options": [
[
"av_age_over_18_restricted_purchase_alcohol"
],
[
"pid_age_over_18_restricted_purchase_alcohol"
],
[
"pid_age_over_18_restricted_purchase_alcohol_mdoc"
]
],
"required": true
}
]
}
}Per jurisdiction, the alternatives requested never change. What changes is whether the session is allowed to start at all. Every (countryCode, category) pair has a current status of NOT_SUPPORTED, PENDING_REVIEW, or ENABLED, and that status is checked before a session is created, and before any DCQL template is even loaded: a missing status, or one that is not ENABLED, means no session is created at all. A database-level constraint enforces “never ENABLED without a human explicitly entering it live” independently of the application code, so the guarantee holds even against a direct database write. Flipping a country/category live is exclusively a dashboard reviewer action: the Legislation Watch Copilot can only draft a PENDING_REVIEW proposal with evidence for a human to approve. It can never write ENABLED itself.
Before you start
Same service as every other Nexiel Verify/Age flow. There is nothing separate to install. The one extra step versus a plain age-verification check: a country/category has to be ENABLED before a session for it will initiate.
There is no API call or database access a customer uses to flip IE/alcohol to ENABLED. That only ever happens through an operator enabling a country/category pair from the compliance dashboard, the same human-approval action described above. The example below assumes IE/alcohol has already been enabled that way.
The session-initiate step below is a plain HTTP request you can call directly. Completing a session requires a wallet-signed presentation, which a bare HTTP client cannot produce on its own. The responses shown are the exact shapes your server returns for an enabled country/category (IE/alcohol) and a not-yet-enabled one (DE/alcohol, left at its default NOT_SUPPORTED).
Initiate a session for an enabled country
curl -s -X POST https://compliance.nexiel.io/v1/verify/sessions \
-H "Authorization: Bearer $NEXIEL_ACCESS_TOKEN" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{"clientId": "docs-example-client", "checkType": "restricted-purchase-alcohol-18", "countryCode": "IE"}'{
"sessionId": "ead7d441-10b2-40c4-a475-49c69603da42",
"templateVersion": "restricted-purchase-alcohol-18@3",
"livemode": false,
"clientId": "x509_hash:Uvo3HtuIxuhC92rShpgqcT3YXwrqRxWEviRiA0OZszk",
"requestUri": "https://compliance.nexiel.io/v1/verify/sessions/ead7d441-10b2-40c4-a475-49c69603da42/request-object",
"flow": "cross_device",
"profile": "haip",
"sessionToken": "Yq3nW0vR8tLx...(truncated, 43 chars)",
"authorizationRequest": {
"client_id": "x509_hash:Uvo3HtuIxuhC92rShpgqcT3YXwrqRxWEviRiA0OZszk",
"response_type": "vp_token",
"response_mode": "direct_post.jwt",
"response_uri": "https://compliance.nexiel.io/v1/verify/sessions/ead7d441-10b2-40c4-a475-49c69603da42/responses",
"nonce": "CuEc0qH6S5-IKLtGc0U-V5_xaiYc05W4vh7E9Qq6PDc",
"state": "balePAbk9i0pUEBNUCb8zmfrujcJHvEGip9JMaVQjJg",
"dcql_query": {
"credentials": [
{
"id": "av_age_over_18_restricted_purchase_alcohol",
"format": "mso_mdoc",
"meta": {
"doctype_value": "eu.europa.ec.av.1"
},
"claims": [
{
"path": [
"eu.europa.ec.av.1",
"age_over_18"
]
}
]
},
{
"id": "pid_age_over_18_restricted_purchase_alcohol",
"format": "dc+sd-jwt",
"meta": {
"vct_values": [
"urn:eudi:pid:1",
"urn:eudi:pid:de:1"
]
},
"claims": [
{
"path": [
"birthdate"
]
}
]
},
{
"id": "pid_age_over_18_restricted_purchase_alcohol_mdoc",
"format": "mso_mdoc",
"meta": {
"doctype_value": "eu.europa.ec.eudi.pid.1"
},
"claims": [
{
"path": [
"eu.europa.ec.eudi.pid.1",
"birth_date"
]
}
]
}
],
"credential_sets": [
{
"options": [
[
"av_age_over_18_restricted_purchase_alcohol"
],
[
"pid_age_over_18_restricted_purchase_alcohol"
],
[
"pid_age_over_18_restricted_purchase_alcohol_mdoc"
]
],
"required": true
}
]
},
"client_metadata": {
"jwks": {
"keys": [
{
"kty": "EC",
"crv": "P-256",
"x": "kqYdLbmVZ0n7...(truncated)",
"y": "cU2k2Zp7z5oq...(truncated)",
"kid": "6f1c2e0a-4b7d-4f8e-9a3c-2d1e0f9b8a7c",
"use": "enc",
"alg": "ECDH-ES"
}
]
},
"encrypted_response_enc_values_supported": [
"A128GCM",
"A256GCM"
],
"vp_formats_supported": "...(truncated)"
},
"verifier_info": [
{
"format": "registration_cert",
"data": "eyJ0eXAiOiJyYy13cnArand0Ii...(truncated)"
}
]
},
"authorizationRequestUri": "openid4vp://?client_id=x509_hash%3AUvo3HtuIxuhC92rShpgqcT3YXwrqRxWEviRiA0OZszk&request_uri=https%3A%2F%2Fcompliance.nexiel.io%2Fv1%2Fverify%2Fsessions%2Fead7d441-10b2-40c4-a475-49c69603da42%2Frequest-object&request_uri_method=post",
"dcApi": null,
"expiresAt": "2026-07-06T11:12:43.795Z",
"hostedUrl": "https://compliance.nexiel.io/v1/verify/hosted/ead7d441-10b2-40c4-a475-49c69603da42#token=Yq3nW0vR8tLx...",
"sandboxWalletUrl": "https://sandbox.nexiel.io/present?client_id=x509_hash%3AUvo3HtuIxuhC92rShpgqcT3YXwrqRxWEviRiA0OZszk&request_uri=https%3A%2F%2Fcompliance.nexiel.io%2Fv1%2Fverify%2Fsessions%2Fead7d441-10b2-40c4-a475-49c69603da42%2Frequest-object&request_uri_method=post",
"metadata": {},
"transactionData": []
}Initiate a session for a not-yet-enabled country
Same request shape, a different countryCode. DE/alcohol is left at its default NOT_SUPPORTED, so no session is created. The response is a 403, not a 400: the request itself is well-formed, it is an eligibility failure.
curl -s -X POST https://compliance.nexiel.io/v1/verify/sessions \
-H "Authorization: Bearer $NEXIEL_ACCESS_TOKEN" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{"clientId": "docs-example-client", "checkType": "restricted-purchase-alcohol-18", "countryCode": "DE"}'{
"error": "restricted_category_not_enabled",
"message": "restricted-purchase category \"alcohol\" is not enabled for country \"DE\" (current status: \"NOT_SUPPORTED\"). A human reviewer must approve this in the dashboard before a session can be initiated for it"
}Omitting countryCode entirely for a restricted-purchase-* checkType is a separate, malformed request: a 400, not a 403:
{
"error": "country_code_required",
"message": "checkType \"restricted-purchase-alcohol-18\" is a restricted-purchase check and requires a countryCode (alcohol/tobacco/lottery legal enablement is per-country): none was supplied"
}The wallet discloses a birthdate, and you get back a boolean
Exactly like Nexiel Age's own completion response, with one difference: the boolean proof key is ageOver18ForRestrictedPurchase, not ageOver18, so an audit trail can distinguish a restricted-purchase decision from a plain age-verification one, even though both offer the same two underlying alternatives. templateVersion (already persisted) disambiguates exactly which category ran. The wallet's own reply carries only where to send the user next, never the outcome:
{
"redirect_uri": "https://compliance.nexiel.io/v1/verify/wallet-return"
}Your backend reads the decision with GET /v1/verify/sessions/{sessionId}:
{
"sessionId": "ead7d441-10b2-40c4-a475-49c69603da42",
"clientId": "docs-example-client",
"checkType": "restricted-purchase-alcohol-18",
"templateVersion": "restricted-purchase-alcohol-18@3",
"livemode": false,
"status": "completed",
"createdAt": "2026-07-06T11:02:43.795Z",
"expiresAt": "2026-07-06T11:12:43.795Z",
"metadata": {},
"sandboxWalletUrl": null,
"decision": {
"method": "eudi_wallet",
"booleanProofs": {
"ageOver18ForRestrictedPurchase": true
},
"amlResult": null,
"pepFlag": null,
"sanctionedFlag": null,
"listsChecked": [],
"humanReviewRequired": false,
"frozenDecisionArtifact": null,
"screeningCandidates": null,
"credentialMechanism": "pid_sd_jwt_vc",
"evidencePackStatus": "not_applicable",
"evidencePackDelivery": null,
"issuerCertificateStatus": {
"status": "good",
"handling": "accepted"
},
"credentialStatus": {
"status": "valid",
"mechanism": "status_list",
"handling": "accepted",
"unavailableReason": null
},
"transactionDataBinding": null,
"scaAuthentication": null,
"trustPolicy": {
"versionId": null,
"sha256": "9b1f0d6c2a4e8f3b7c5d1e9a0f2b4c6d8e1f3a5b7c9d0e2f4a6b8c0d1e3f5a7b",
"trustSource": "eu_pid_providers",
"issuerJurisdiction": null,
"trustAnchorSha256": null,
"issuerRegistration": null
},
"decidedAt": "2026-07-06T11:02:46.987Z"
}
}amlResult, pepFlag, sanctionedFlag, listsChecked, and frozenDecisionArtifact are all null/empty for the same reason they are on a plain age-verification check: no restricted-purchase-* check ever runs the sanctions/PEP matching engine, so there is no screening decision to human-review or freeze.
What gets persisted
- Session id, client id, timestamp, method, template version (which pins the exact category/claim shape that ran), and the boolean proof (
ageOver18ForRestrictedPurchase: true). Nothing else. - The country/category gate check itself is read-only at session-initiation time. This API never writes to it.
- No birthdate. When the wallet answers with the PID fallback, it discloses one, but it is used only to compute the boolean above and discarded within the same request, before anything is written to storage. When the wallet answers with the AV attestation instead, no birthdate is ever requested or disclosed at all. No name. No document number. No underlying claim value beyond the boolean.
- No raw wallet credential or presentation is ever written to storage.
Reference
There is no separate in-store API reference document: every route, parameter, and response schema this page uses is documented on the Verify API reference. The routes this page walks through are POST /v1/verify/sessions and POST /v1/verify/sessions/{sessionId}/responses, with checkType one of restricted-purchase-alcohol-18, restricted-purchase-tobacco-18, or restricted-purchase-lottery-18, plus the new required countryCode field.
Scope boundaries
Only “over 18” is supported. This API already requests a birthdate to compute that fixed boolean, but it deliberately never derives a different threshold, like Germany's 16, from it: the PID Rulebook has no age-derived claim to ask an issuer for directly, and using the same disclosed birthdate to compute an arbitrary additional threshold would be a claims-minimization regression from this product's own design principle, not a technical limitation. Proximity and NFC-terminal integration are not part of this either: every flow here uses the existing remote/QR OpenID4VP flow described above.
Roadmap
- A dedicated in-store API key and pricing tier. Today it authenticates and bills like any other Nexiel Verify/Age integration.