How sandbox works
Sandbox is a property of your company account, not of the URL. When your account is in sandbox mode, the same production endpoints stop calling the real upstream source and answer from stored fixtures instead. Same URLs, same tokens, same authentication. Sandbox differs from live in exactly two ways:- The upstream source is never called. The response comes from a fixture.
- No credit is reserved or charged.
A sandbox response is deliberately identical in shape to a live one. There is no
sandbox or environment field to branch on — that is the point, so code you write against sandbox works unchanged in production.400 instead of reaching the upstream source. See Not available in sandbox below.
Going live
Nothing in your integration changes. Your account is switched to live mode and the same calls begin reaching the real sources. There is no URL or token to swap.Authentication
Use the same Bearer token you use in live:Trust validations
Sandbox follows the same process as live. Every verification request belongs to a trust validation:- Use a
trustFlowIdwhose trust flow has the verification enabled. - Create a trust validation with Create verification and send its ID as
trustValidationId. - Run the verification with a payload from its sandbox page.
Matching rules
Each sandbox page names the field that selects the scenario, such asbusinessIdentificationNumber for most KYB endpoints or licenseNumber for Philippines Driving License. Some endpoints select on more than one field, such as clearanceNo and surname for Philippines National Police, and then all of them must match. Your value for that field must match one of the documented requests exactly to get that scenario’s response.
Australia DVS endpoints match on every field in the request body instead of one, so the whole payload must match a documented request.
PhilSys face liveness
PhilSys Check and PhilSys Check Tier 1 require aface_liveness_session_id. In sandbox, any valid UUID is accepted, including the session ID from a real face liveness capture in the IDmeta SDK or web flow. The scenario is selected by pcn, qr_data or pcnFormData alone, so you can pair a real face scan with any documented sandbox identity.
The one exception is 00000000-0000-4000-8000-000000000000. Send it with the documented PCN to get the liveness-failed response.
Asynchronous endpoints
Endpoints that are asynchronous in live are also asynchronous in sandbox. The HTTP response hasverificationStatus set to IN_PROGRESS, and the full result follows as a webhook to your resultNotificationURL and to your trust flow’s webhook URL, if one is set. In sandbox the webhook is sent within a few seconds of the HTTP response.
Each sandbox page shows both the HTTP response and the webhook payload.
Response placeholders
The sample responses on the sandbox pages use placeholders for values that change on every call:Non-verification responses
These responses are produced before — or instead of — a verification result, so they carry noverificationStatus, verificationStatusCode, or data.
Validation failure — HTTP 400
Validation failure — HTTP 400
Returned when the request body fails field validation. This happens before any fixture matching, so it is identical in sandbox and live.
message is the first validation error.Not available in sandbox — HTTP 400
Not available in sandbox — HTTP 400
Returned when your account is in sandbox mode and the endpoint has no sandbox page. The request is not sent to the upstream source. The plan name in
message is the one you called.Trust validation not found — HTTP 404
Trust validation not found — HTTP 404
Returned when
trustValidationId does not exist or belongs to another company.Plan not enabled — HTTP 403
Plan not enabled — HTTP 403
Returned when the authenticated company has no plan for the verification type. The plan gate is enforced in sandbox exactly as in live.
Insufficient credit — HTTP 402
Insufficient credit — HTTP 402
Live only. Sandbox reserves no credit, so this is unreachable there. Note that the field is
error_code, not code.
