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.
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:
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.
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.
Example: number-only ID
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:
RC0000001is verified,RC0000002is not found,RC0000003is found with no company status (as CAC returns some new companies) andRC0000004is 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. -
sandboxOutcomeon 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:
While shareholders are on their way,
keyPeople.ownershipPendingis 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.
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:
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 longpending → completedtakes (0–60000 ms). Defaults to ~1200 ms; set0for 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:
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_creditsscenario. - Test IDs bypass the ID-type allowlist, so a new organisation can test immediately. Use
the
id_type_not_enabledscenario to simulate a revoked allowlist. - Branch on the stable
reasonCode, not the human-readablereason.