Skip to main content
Sandbox payloads for the Philippines NBI Clearance endpoint.
When your account is in sandbox mode, these payloads return the outcomes shown below. No credit is reserved or charged. Only clearanceNo selects the scenario. trustFlowId and trustValidationId are still validated, but do not change which scenario is returned. Matching is case-sensitive, so nbisandbox-0000001 does not match NBISANDBOX-0000001. Values must match exactly. createdAt is generated per request, and trustFlowId, trustValidationId and metadata are echoed back from your request and trust validation. See Sandbox introduction for the shared sandbox rules.

Verified

clearanceExpiry is returned as yyyy-mm-dd. middlename is only present when the clearance holder has one, so treat it as optional.
Request
Response — HTTP 200
Request
Response — HTTP 200

Rejected

Request
Response — HTTP 200
The clearance was found, so its details are returned, but it has expired, so isValid is false and verificationStatus is REJECTED.
Request
Response — HTTP 200
Request
Response — HTTP 200
NBISANDBOX-0000005 and any clearanceNo that is not listed on this page return this same response, so NBISANDBOX-0000099 is only an example. Only isValid is returned. A rejection is a completed verification, not an error: success is true and the HTTP status is 200.

Source unavailable

Request
Response — HTTP 200
success is false, verificationStatus is FAILED and data is null: the government source could not be reached, so the verification could not be completed. It is still returned with HTTP 200. Treat it as a temporary failure and retry later.

Validation failures

Validation runs before any scenario matching, so these behave identically in sandbox and live. They return HTTP 400, and message is the first validation error. clearanceNo is required.
Request
Response — HTTP 400
Request
Response — HTTP 404
trustValidationId must belong to your company. Create a trust validation first, then use its ID.

Account-level responses

Two further responses are not specific to this endpoint. A missing or invalid Authorization header returns HTTP 401, and an account without the philippines_nbi_clearance plan returns HTTP 403 — both enforced in sandbox exactly as in live. See Sandbox introduction for their envelopes.