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.

Test credentials and the results they produce
CredentialWhat it holdsWhat 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-0001age-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: trueThe 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-0001age-verification with ageOver18: false.
Test age verification attestationage_over_18: true only (mdoc, eu.europa.ec.av.1)age-verification with ageOver18: true, disclosing nothing else.
Test mobile driving licenceAn ISO/IEC 18013-5 mDL for the same synthetic adult, with synthetic driving privilegesmobile-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.

Personas
PersonaIdentityResult of an aml-identity check
adult, minorAda Sandbox, and Ada Sandbox-Junior aged 16CLEAR
sanctionedTesta Sanctionova, born 14 March 1961, IECONFIRMED_MATCH with sanctionedFlag: true
pepPepita Testofficial, born 2 November 1958, IECONFIRMED_MATCH with pepFlag: true
possible_matchTesta Sanctionova, born 1 June 1975, IEPOSSIBLE_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 completed and sends verify.session.completed.
  • A failed age check: share the minor's PID with an age-verification session. The session completes with ageOver18: 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 failed and sends verify.session.failed with the reason above.
  • Declined in the wallet: choose Decline. The wallet sends an encrypted access_denied, and the session fails at once with reason wallet_declined.
  • Cancelled on your page: call POST /v1/verify/sessions/{sessionId}/cancel with the session token, or choose Cancel on the hosted page. The session fails with reason user_cancelled. See Verification sessions.
  • Expired: do nothing. After 10 minutes the session becomes expired and sends verify.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, pep or possible_match.
  • outcome: present (the default) a valid credential, present a revoked_credential, an expired_credential or one from an untrusted_issuer, or wallet_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