DocV Sandbox Testing

Validate your Predictive DocV integration in Sandbox using transaction tokens to simulate decisions, then run the verification checklist before going live.

Before you go live, validate your integration end to end in Sandbox. Sandbox lets you simulate specific DocV decisions and reason codes without using production data, so you can confirm each step of your integration behaves correctly.

🚧

How Sandbox works:

  • Sandbox returns predefined DocV results; it does not run full production models.
  • If you do not pass a transaction_token, DocV returns Accept with static fields and reason codes, regardless of the images captured.
  • To retrieve images in Sandbox, include the Socure Image Request enrichment and add a WAIT (10 seconds) transformation step before it. Without the wait, downloads often return 400 "No Documents Found".
❗

Testing real government-issued IDs:

Sandbox doesn't verify real documents — it returns predefined results regardless of the images you submit. To verify real IDs with full production models, use the Production environment. See the Go-Live Checklist.


Sandbox environment

Point your integration at the Sandbox base URL and use a Sandbox API key:

ResourceURL
Evaluation endpointhttps://riskos.sandbox.socure.com/api/evaluation
Download documentshttps://riskos.sandbox.socure.com/api/evaluation/{eval_id}/documents

For Sandbox testing, confirm your workflow steps are in this order:

Input → Document Request → Document Verification → WAIT (10s) → Image Request → Decision Logic → Decision

The WAIT (10s) step is required in Sandbox to ensure images are available for download.


Simulate a specific decision

Sandbox returns predefined results. To force a specific outcome, pass a test docvTransactionToken value when you create the Document Request. If you omit the token, Sandbox always returns Accept.

📘

Need more scenarios?

Your Socure team can add custom Sandbox tokens for edge cases. Contact your Solutions Consultant team.

If your Socure team gives you test cases with preset input values (for example, a Postman collection), keep the values each test case depends on, such as country, ZIP code, date of birth, and di_session_token. If you change one of these values, Sandbox can't match the test case and doesn't return its expected decision.


Test DocV manually from the Dashboard

If your use case starts DocV from the RiskOS™ Dashboard instead of the API, for example a manual investigation flow, you can test the full capture experience in Sandbox without writing code. This uses manual evaluations, which must be enabled for your account.

  1. Sign in to the Sandbox Dashboard and go to Cases > All Cases.
  2. Click New Evaluation.
  3. Enter a unique ID and the test details. Use a mobile phone number you control so you can receive the verification link.
  4. In the Document Verification section, set Text customer a link to upload documents to Yes.
  5. Click Proceed To Review, confirm the selected Live Workflow, and then click Run Risk Evaluation.
  6. Open the link sent to your phone and complete the DocV capture flow.
  7. In Cases, click the Application ID for the case to review the completed output.

In Sandbox, the scores and reason codes returned for a manual DocV evaluation are placeholder values. Production runs full evaluations.


Troubleshooting

SymptomCauseResolution
Always AcceptYou didn't pass a transaction_token.Expected. Add a token from Simulate a specific decision to force another outcome.
401 / 403Wrong key or base URL.Use your Sandbox API key and the Sandbox base URL.
400 "No Documents Found" on downloadMissing image step.Ensure the Socure Image Request enrichment exists and a WAIT (10s) step precedes it. Confirm the correct eval_id.
Workflow never completesMissing DocV steps or error handling.Verify DocV steps are present and that error handling returns resubmit or cancel.
Test token returns the default sample documentSocure updated the Sandbox test tokens, or the token isn't recognized.Ask your Solutions Consultant team for the current Sandbox tokens and sample barcodes.
Test case returns an unexpected decisionAn input value the test case depends on changed.Restore the preset values for country, ZIP code, date of birth, and di_session_token, and then resend the request.

Verification checklist

Confirm each step of your integration in Sandbox:

Evaluation creation returns decision: "REVIEW", status: "ON\_HOLD", eval\_status: "evaluation\_paused", and a SocureDocRequest enrichment.
Your backend extracts and stores the eval\_id and docvTransactionToken.
Verification launches (SDK or Hosted Flows) and presents the correct flow.
Capture completes and your endpoint receives case\_notes\_added progress events.
Your endpoint receives the evaluation\_completed event with a final decision.
Your application routes correctly on ACCEPT, REJECT, and REVIEW decisions.

Related


Did this page help you?