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.
VERIFIED — Sample 1: Clearance found and current
VERIFIED — Sample 1: Clearance found and current
RequestResponse — HTTP
200VERIFIED — Sample 2: Clearance found and current, with middle name
VERIFIED — Sample 2: Clearance found and current, with middle name
RequestResponse — HTTP
200Rejected
REJECTED — Sample 1: Clearance found but expired
REJECTED — Sample 1: Clearance found but expired
RequestResponse — HTTP The clearance was found, so its details are returned, but it has expired, so
200isValid is false and verificationStatus is REJECTED.REJECTED — Sample 2: Clearance found but expired, with middle name
REJECTED — Sample 2: Clearance found but expired, with middle name
RequestResponse — HTTP
200REJECTED — Sample 3: Clearance not found
REJECTED — Sample 3: Clearance not found
RequestResponse — HTTP
200NBISANDBOX-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
Validation failures
Validation runs before any scenario matching, so these behave identically in sandbox and live. They return HTTP400, and message is the first validation error. clearanceNo is required.
Validation failed — Clearance number missing
Validation failed — Clearance number missing
RequestResponse — HTTP
400Not found — Trust validation does not exist
Not found — Trust validation does not exist
RequestResponse — HTTP
404trustValidationId 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 invalidAuthorization 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.
