Testing
Test mode comes with synthetic credentials and a hosted test wallet, so age, identity, guest registration and driving licence checks run end to end before you hold a live key. Nothing in test mode is billed.
Test credentials
Collect these in the sandbox wallet at https://sandbox.nexiel.io/redeem, under Test identity credentials. Each is issued by the sandbox PID provider (registry country ZZ), signed under the Nexiel TEST CA and valid for 24 hours. Both personas are born on 12 April, 34 and 16 years before the year of issue, so the adult is always over 18 and the minor always under 18.
| Credential | What it holds | What it answers |
|---|---|---|
| Test PID (SD-JWT VC, adult) | given_name Ada, family_name Sandbox, birthdate 12 April, 34 years ago, nationalities IE, document_number SBX-ADULT-0001 | age-verification with ageOver18: true. Also aml-identity and str-guest-registration. |
| Test PID (mdoc, adult) | The same identity as an ISO/IEC 18013-5 mdoc, with birth_date, nationality and age_over_18: true | The same check types as the SD-JWT VC PID, with the same results. |
| Test PID (SD-JWT VC, minor) | given_name Ada, family_name Sandbox-Junior, birthdate 12 April, 16 years ago, document number SBX-MINOR-0001 | age-verification with ageOver18: false. |
| Test age verification attestation | age_over_18: true only (mdoc, eu.europa.ec.av.1) | age-verification with ageOver18: true, disclosing nothing else. |
| Test mobile driving licence | An ISO/IEC 18013-5 mDL for the same synthetic adult, with synthetic driving privileges | mobile-driving-licence. |
Every check discloses only the claims its template requests. An age-verification session, for example, asks for the birth date or age_over_18 and returns only the boolean.
Personas and credential states
A test PID can also carry a screening persona, and any test PID can be issued in a state that a verification must reject. Choose both under Test PID with a persona on the sandbox wallet's Get a credential page, or with the test helper below.
| Persona | Identity | Result of an aml-identity check |
|---|---|---|
adult, minor | Ada Sandbox, and Ada Sandbox-Junior aged 16 | CLEAR |
sanctioned | Testa Sanctionova, born 14 March 1961, IE | CONFIRMED_MATCH with sanctionedFlag: true |
pep | Pepita Testofficial, born 2 November 1958, IE | CONFIRMED_MATCH with pepFlag: true |
possible_match | Testa Sanctionova, born 1 June 1975, IE | POSSIBLE_MATCH, with humanReviewRequired: true |
The sanctioned and PEP personas are entries on Nexiel's synthetic sandbox list, which test-mode screening reads instead of the live lists. A Nexiel Screen test key gets the same results for the same names and dates of birth.
- Revoked: the credential's status list entry says revoked. The session fails with
credential_revoked. - Expired: its validity ended the day before it was issued. The session fails with
credential_not_valid_now. - Untrusted issuer: signed by a test issuer no verifier trusts. The session fails with
issuer_not_trusted.
Producing each outcome
- Completed: share a credential that answers the check. The session becomes
completedand sendsverify.session.completed. - A failed age check: share the minor's PID with an
age-verificationsession. The session completes withageOver18: false. Deciding what to do with a false proof is up to your application. - A rejected credential: share a revoked, expired or untrusted-issuer PID. The session becomes
failedand sendsverify.session.failedwith the reason above. - Declined in the wallet: choose Decline. The wallet sends an encrypted
access_denied, and the session fails at once with reasonwallet_declined. - Cancelled on your page: call
POST /v1/verify/sessions/{sessionId}/cancelwith the session token, or choose Cancel on the hosted page. The session fails with reasonuser_cancelled. See Verification sessions. - Expired: do nothing. After 10 minutes the session becomes
expiredand sendsverify.session.expired. - Live mode refuses test credentials: a session started with a live key never accepts a sandbox credential, and the sandbox wallet refuses a live request.
Completing a session without a browser
For automated tests, POST /v1/verify/sessions/{sessionId}/test_helpers/complete answers one of your pending test-mode sessions the way the sandbox wallet would: it fetches and checks the signed request, gets a synthetic credential for the persona you choose, and posts an encrypted answer. Every check runs as for a real wallet, including issuer trust, your trust policy, credential status, screening and your webhooks. It returns the session as GET /v1/verify/sessions/{sessionId} does.
curl -s -X POST https://compliance.nexiel.io/v1/verify/sessions/$SESSION_ID/test_helpers/complete -H "Authorization: Bearer $NEXIEL_ACCESS_TOKEN" -H "Idempotency-Key: $(uuidgen)" -H "Content-Type: application/json" -d '{"persona": "pep", "outcome": "present"}'persona:adult(the default),minor, or, for a check that presents a PID,sanctioned,peporpossible_match.outcome:present(the default) a valid credential, present arevoked_credential, anexpired_credentialor one from anuntrusted_issuer, orwallet_declined.
It works for cross_device and same_device sessions (a same-device session is also returned through its redirect step), with a test key that can write. A live key gets 403 test_helpers_test_mode_only, and a read-only key gets 403 forbidden_scope. A rejected credential is an outcome, not an error: the response is the failed session. The TypeScript SDK has it as verify.testHelpers.completeSession(), the Python SDK as verify.test_helpers.complete_session().
Testing with your own issuer
To test against your own development issuer or a conformance suite, add its CA certificate as a test issuer anchor. Test-mode sessions then accept credentials it issues. A certificate from a live EU trust list is refused with 400 live_trust_anchor.
curl -s -X POST https://compliance.nexiel.io/v1/verify/test-issuer-anchors \
-H "Authorization: Bearer $NEXIEL_ACCESS_TOKEN" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{"kind": "PID", "label": "My development PID issuer", "certificate": "<base64 DER certificate>"}'Your own test wallet can answer test-mode sessions if it trusts the Nexiel TEST CA root, published at https://compliance.nexiel.io/v1/verify/sandbox/test-ca.pem.
Nexiel Screen in test mode
A Screen test key screens against Nexiel's synthetic sandbox list only, never the live sanctions and PEP lists, and is never billed. The Screen API quickstart shows an example response for each classification.
Other products
- Strong customer authentication has its own test attestation route, described on its page. The sandbox wallet holds no corporate mandate credential, so corporate mandate sessions need a test issuer of your own. Sign in with EUDI Wallet connections run in live mode only.
- Nexiel Sign and Nexiel Seal run end to end in test mode with the Nexiel TEST trust service provider, whose signatures are not qualified.
- Nexiel Credentials has a sandbox university and membership issuer, and the sandbox wallet collects their demo credentials.