Skip to main content
A sandbox scenario is a client-authored test case: when this input arrives, behave like this and return that. Create one, supply its input in a sandbox verification (sign in with its login, upload the files it names, or order for the applicant it identifies), and the task completes with your data instead of Truv’s built-in test data. Scenarios are scoped to your account, so every teammate’s sandbox key reads and writes the same set. The endpoints accept sandbox keys only; a production key gets 403 env_not_sandbox. For a walkthrough with worked examples, see Custom Sandbox Data and its per-data-source guides for payroll, document upload, financial accounts, education, and insurance.

Attributes

Identity and routing

How a scenario is selected

These matching fields decide which input the scenario answers. A field left unset narrows nothing, so it matches any value. The API refuses a scenario that sets none of them, and is_refresh alone doesn’t count; such a scenario would answer every input of its data source. No two scenarios of the same data source can have the same matching fields; enabled and products don’t make them distinct. A value that collides with Truv’s own test data is refused with reserved_credential.

Behavior

Content


Which scenario wins

If multiple scenarios match, Truv selects the most specific. On docs, a scenario whose filenames are exactly the uploaded files beats one naming only some of them, and among partial matches the one naming more files wins. Then the scenario with more matching fields set wins; if there is still a tie, a scenario that sets is_refresh wins over one that doesn’t. After that, Truv selects the oldest scenario. Disabled scenarios never take part, and a scenario restricted to products is skipped for tasks of any other product. Truv uses its built-in test data when no custom scenario matches. Resolve a sandbox scenario reports the winner for an input without running a verification.

The Sandbox Document object

A sandbox document is a file in your sandbox document library. A scenario references one by document_id wherever it serves a file: a payroll or document-upload paystub, W-2, 1099, 1040, volunteer letter, or PCS order, a bank statement, or an insurance policy document. A document-upload scenario also selects on the entry’s filename. When a task uses a sandbox document, Truv creates a separate copy for that task. The original stays in your sandbox document library and can be reused. Remove all scenario references before deleting the library entry.

Endpoints

Scenarios

Documents


Errors

Sandbox configuration errors use the standard error envelope.