Skip to navigation

Sandbox & test IDs

Wallet scenarios

Wallet screening in a customer sandbox uses Toden’s deterministic scenarios. It never performs a live blockchain lookup and never creates billable wallet usage. In Spot Checks → Wallet, choose a scenario before screening, or send sandboxScenario to the On-Demand Wallet Screening API. The same published sandbox rules run against the simulated exposures, and sandbox cases, alerts and webhook deliveries use the sandbox environment.

Examples include wallet.clean, wallet.low_risk, wallet.medium_risk, wallet.high_risk, wallet.critical, wallet.unknown, wallet.sanctions.direct, wallet.sanctions.1_hop, wallet.sanctions.2_hops, wallet.mixer.direct, wallet.mixer.1_hop, wallet.mixer.2_hops, wallet.stolen_funds, wallet.ransomware, wallet.darknet, wallet.scam, wallet.terrorist_financing, wallet.high_risk_exchange, wallet.high_risk_jurisdiction, wallet.p2p_exchange, provider.timeout and provider.unavailable.

wallet.invalid_address and wallet.unsupported_network produce 422 validation errors before a screening or charge. wallet.unknown models a pending screening result and produces a review result. Use a format-valid address and hash with the chosen network; a scenario does not bypass input validation. Production rejects the scenario field with 422.

Test your Toden KYC integration end to end: webhooks, polling, the full result payload (biodata, facial match, OCR data, captured-media URLs), and every failure branch, all without calling any government database or consuming paid verification credits.

EnvironmentKey prefixReal IDs?Test IDs?Charged?
Sandboxpk_test_ / sk_test_rejectedcanned resultnever
Productionpk_live_ / sk_live_yestreated as realyes

Sandbox accepts only published test IDs. A real (non-test) idNumber is rejected immediately at POST /verify with 422 only_test_ids_allowed.

All sandbox results are fully fake: fake biodata, fake government photos, fake OCR, and fake gov-DB data. No external API is ever called.

How test IDs work

Pass a test ID in the idNumber field of POST /verify. The last one or two digits encode the scenario; everything before is zero-padding so the value stays format-valid for its ID type. Example for NG BVN:

00000000001 → verified
00000000002 → not_found
00000000004 → selfie_mismatch
00000000007 → document_expired (document IDs only)
00000000012 → provider_error

Scenario reference

Scenarios 5 and 6 follow your workflow’s identity details policy. When the workflow records every field the scenario disagrees on (5: first and last name; 6: first name and date of birth) instead of failing on it, the test ID verifies with dataMatch: false, exactly as a real mismatch would.

IdxScenarioStatusreasonCodeApplies to
1verifiedverified—all
2not_foundnot_foundidentity_not_foundall
3gov_validation_failedfailedgov_validation_failedall
4selfie_mismatchfailedselfie_mismatchall
5gov_data_mismatchfailedgov_data_mismatchall
6document_data_mismatchfaileddocument_data_mismatchdocument
7document_expiredfaileddocument_expireddocument
8document_type_mismatchfaileddocument_type_mismatchdocument
9document_unreadablefaileddocument_unreadabledocument
10document_blurryfaileddocument_blurrydocument
11id_number_not_foundfailedid_number_not_founddocument
12provider_errorerrorprovider_errorall
13unsupported_id_typeerrorunsupported_id_typeall
14media_not_founderrormedia_not_foundall
15insufficient_creditserrorinsufficient_creditsall
16system_errorerrorsystem_errorall
17id_type_not_enablederrorid_type_not_enabledall
18document_verification_disablederrordocument_verification_disableddocument
19gov_db_check_disablederrorgov_db_check_disabledall
20sandbox_not_foundnot_foundsandbox_not_foundall
21sandbox_failedfailedsandbox_failedall
22age_restrictedfailedage_restrictedall
23age_unverifiedfailedage_unverifiedall
24document_photo_no_facefaileddocument_photo_no_facedocument
25identity_suspendedfailedidentity_suspendedall

Scenarios 22 and 23 follow your workflow’s age restriction. Scenario 22 returns a date of birth just outside your own limits (a year under the minimum, or a year over the maximum) and scenario 23 returns none, so both fail exactly as a real holder would. On a workflow with no age restriction, both verify. If your workflow sends that case to review instead of declining it, scenario 22 verifies with the out-of-range date of birth and your decision rule sends it to review; scenario 23 always fails.

Scenario 24 follows your workflow’s settings for the photo on the document. It stands for a document ID whose selfie could only be compared with the photo printed on the document, where no face could be read on that photo. If your workflow compares that ID with the photo on the document and declines the case, it fails with document_photo_no_face. If your workflow sends that case to review, it verifies with facialMatchSkipped: "no_face_on_document", and your decision rule on verification.documentPhotoNoFace sends it to review. If your workflow does not compare that ID with the photo on the document, it verifies.

Scenario 25 stands for a government record the issuer has suspended, such as a suspended NIN. It fails with identity_suspended and returns no biodata and no face result, as a live suspended record does.

Document-only scenarios (6–11, 18) are not published for number-only IDs (BVN/NIN/vNIN).

The verified test ID per ID type

Change the trailing digits per the table above to pick a different scenario.

CountryID typeFormatverified test ID
NGbvn / nin / nin-slip11 digits00000000001
NGvnin16 chars0000000000000001
NGphone-number / nin-phone080 + 8 digits08000000001
NGpassportA + 8 digitsA00000001
NGdrivers-licenseTST + 8 digitsTST00000001
NGpvc19 digits0000000000000000001
GHghana-cardGHA-NNNNNNNNN-NGHA-000000001-0
GHvoters10 digits0000000001
GHssnitC + 12 digitsC000000000001
GHpassportG + 8 digitsG00000001
KEnational-id8 digits00000001
KEpassportK + 8 digitsK00000001
ZAnational-id13 digits0000000000001
ZApassportZ + 8 digitsZ00000001
CIcniCI + 9 digitsCI000000001
CIresidence-cardCR + 9 digitsCR000000001

Example: number-only ID

curl -X POST https://your-server/api/v1/verify \
-H "Authorization: Bearer pk_test_xxx" \
-H "Content-Type: application/json" \
-d '{
"country": "NG",
"idType": "bvn",
"idNumber": "00000000001",
"userData": { "firstName": "Chidi", "lastName": "Okafor", "dateOfBirth": "1990-04-12" },
"metadata": { "requestId": "test-001" }
}'

Document IDs

In sandbox, OCR is never run; a fake OCR result is returned instead. Either let the SDK document flow default to the verified fixture (no ID number collected), or pick a scenario by passing the document test ID in idNumber (e.g. A00000007 for an expired passport) or via the sandboxOutcome override below.

Business (KYB)

Business verification never calls a real registry outside production: a registry lookup incurs an external check cost in whichever environment requests it, so sandbox and development serve canned data instead.

  • Any registration number is accepted and resolves to a verified fixture that echoes the name you searched for. The catalogue values still pick their scenario: RC0000001 is verified, RC0000002 is not found, RC0000003 is found with no company status (as CAC returns some new companies) and RC0000004 is found but inactive. The last two are for trying a workflow’s company-status rules. A business picked from the real company search (which does work in every environment) can therefore be checked on sandbox against fixture data.

  • sandboxOutcome on the submit ("verified", "not_found", "status_unknown", "status_inactive" or one of the owners scenarios below) pins the result for any number, and is ignored silently in production.

  • Shareholders that arrive on their own schedule. Some registers send their list of shareholders after the company itself, sometimes minutes later. Four test numbers walk a business workflow through each case, with no registry called and nothing charged:

    NumbersandboxOutcomeWhat happens
    RC0000005owners_deliveredThe shareholders come back with the company and prefill the key-people step.
    RC0000006owners_lateOnly the directors and officers come back at first. The shareholders arrive about a minute later: they join the key people with their invite links, the success screen and result page update, and you receive key_people.ownership_received.
    RC0000007owners_neverThe shareholders never arrive. After about 10 minutes the wait ends, the result says ownership was not returned in time, and key_people.ownership_received is sent with status: not_returned.
    RC0000008owners_emptyThe register answers but names no shareholders.

    While shareholders are on their way, keyPeople.ownershipPending is true and a workflow that waits on key people holds its decision. These scenarios need a workflow that verifies key people; spot checks never fetch shareholders, so they treat these numbers as an ordinary verified company.

  • The sandbox company carries a full key-people set for exercising due diligence: a 45% beneficial owner, directors, a signatory, a persona named “Pep” that the sandbox screening stub flags (set SCREENING_PROVIDER=stub), and a corporate shareholder, Sandbox Holdings Ltd (RC0000900), whose own register resolves to a person majority-owner and a second company above it (RC0000901), so ownership-chain look-through, effective percentages, and the depth limit are all testable at no cost.

Screening test names

A screening check outside production gives each name below a fixed result on every list, so each outcome can be tried on purpose. Matching ignores case and extra spaces. The matches carry the same fields a live match does (topics, roles, programmes, lists, sources and dates), with made-up values. Nothing is charged.

NameTypeResult
Clear Test PersonindividualClear on every list
Sanctions Test PersonindividualA match on sanctions only
PEP Test PersonindividualA match on PEP only
Adverse Media Test PersonindividualA match on adverse media only
Full Match Test PersonindividualA match on every list
Unavailable Test PersonindividualNo list can be checked: the check is incomplete
Clear Test Company LtdbusinessClear on every list
Sanctioned Test Company LtdbusinessA match on sanctions only
Adverse Media Test Company LtdbusinessA match on adverse media only
Full Match Test Company LtdbusinessA match on every list
Unavailable Test Company LtdbusinessNo list can be checked: the check is incomplete

Any other name gets a sandbox answer (clear) unless Toden has switched on real screening for your sandbox, in which case it is screened against the real lists. In production every name is screened for real, these included.

Send externalUserId to file the check on your customer with that reference. Without one, the check stays in your screening history only.

Standalone checks

The email, phone, proof of address and liveness checks are free outside production. Each page lists its test values in full; in short:

CheckWhat to sendWhat you get
Email riskjane@low.example, jane@new.example, admin@new.example, jane@disposable.example, jane@nomail.exampleFixed facts for each: pass, pass, review, fail and review (undeliverable). Any other address is checked for real.
Phone risk+44 7400 123456 (mobile), +44 56 1234 5678 (VoIP), +44 901 234 5678 (premium rate), +44 7700 900123 (not valid)pass, review, fail and fail. Numbers are read from the published numbering plans, the same in every environment.
Proof of addressAny uploaded file, with name set to Stale Document, Name Mismatch, Not Proof Of Address or Unreadable Documentreview, fail, fail and unavailable. Any other name passes. The file is not read: a sample bill is judged in its place.
LivenessA selfieThe model runs for real. There are no canned outcomes: a photo of a photo, or of a screen, shows a review or fail.

Address presence

Presence verification has its own personas and a compressed clock so a multi-day watch is testable in minutes; they are documented with the feature on the Address Intelligence page. In short: outside production the watch window runs in minutes, and an externalUserId containing presence_verified, presence_fail or presence_inconclusive seeds a canned observation stream through the real scorer. A plain id gets no seed, so you can drive the ingest endpoint yourself.

The record matches what you send

A test ID that passes returns a record carrying the first name, last name and date of birth you sent, so the record matches the person you ran it for, as a real one does. Anything that reads the record reads those details: a screening attached to the check screens that name. The data mismatch scenarios still return a record that differs. Leave the details out and you get the test person’s own.

Overrides

Both go in metadata and are ignored in production.

  • sandboxOutcome: force any scenario regardless of the test ID, e.g. "sandboxOutcome": "selfie_mismatch".
  • sandboxDelayMs: how long pending → completed takes (0–60000 ms). Defaults to ~1200 ms; set 0 for an instant result.

NIN slip checks

A nin-slip test ID records a passed document check. To test a slip that fails it, set sandboxOutcome to one of these. The verification still verifies, its idDocumentCheck reads needs_review, and a workflow sends it to review:

sandboxOutcomeWhat the check reports
nin_slip_template_mismatchThe slip does not look like a NIMC slip
nin_slip_tamperedSigns of tampering on the slip
nin_slip_code_mismatchThe code on the slip carries a different NIN
nin_slip_code_reusedThe code was on another verification with a different NIN
nin_slip_not_examinedThe slip was not examined (not_checked)

Injection attack detected (documents). Set sandboxOutcome to document_injection to have the document capture read as injected (not captured live by the device camera), whatever was captured. The workflow’s Injection attack detected setting then applies: by default the verification fails with reasonCode document_injection; set to Review it is held for review; set to Approve it is only recorded. documentInjection.status reads detected either way. Ignored in production.

Captured media

Media uploaded under a test ID is kept for 3 days, then the bytes are replaced with a placeholder (an image for stills, a sample clip for videos). The data.media URLs in webhooks keep working; they just serve the placeholder after the sweep.

Webhook simulator

From a webhook endpoint’s detail page (or POST /api/dashboard/webhooks/:id/simulate with { "event": "verification.completed" }), fire a realistic, correctly-signed sample payload of any event at your endpoint to test signature verification and your handler, without running a verification. It uses the real delivery path (HMAC signing + retry).

Notes

  • Sandbox verifications are never charged, even for the insufficient_credits scenario.
  • Test IDs bypass the ID-type allowlist, so a new organisation can test immediately. Use the id_type_not_enabled scenario to simulate a revoked allowlist.
  • Branch on the stable reasonCode, not the human-readable reason.