> ## Documentation Index
> Fetch the complete documentation index at: https://docs.idmetagroup.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Philippines NBI Clearance sandbox

> Predetermined API payloads to retrieve every Philippines NBI Clearance status in sandbox mode.

Sandbox payloads for the [Philippines NBI Clearance](https://docs.idmetagroup.com/api-reference/government-data/philippines/ph-nbi/nbi-clearance.md) endpoint.

```http theme={null}
POST /api/v3/verifications/philippines/nbi
```

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](https://docs.idmetagroup.com/api-reference/sandbox.md) 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.

> [accordion] VERIFIED — Sample 1: Clearance found and current
>
> **Request**
>
> ```json theme={null}
> {
>   "trustFlowId": "<your trust flow id>",
>   "trustValidationId": "<your trust validation id>",
>   "clearanceNo": "NBISANDBOX-0000001"
> }
> ```
>
> **Response** — HTTP `200`
>
> ```json theme={null}
> {
>   "success": true,
>   "message": "Philippines NBI Clearance processed successfully",
>   "data": {
>     "clearanceExpiry": "2027-07-23",
>     "clearanceNumber": "NBISANDBOX-0000001",
>     "lastname": "SANTOS",
>     "firstname": "JORDAN",
>     "isValid": true
>   },
>   "verificationStatus": "VERIFIED",
>   "verificationStatusCode": 3,
>   "trustFlowId": "<your trust flow id>",
>   "trustValidationId": "<your trust validation id>",
>   "verificationType": "philippines_nbi_clearance",
>   "metadata": null,
>   "createdAt": "<UTC timestamp of the request>"
> }
> ```

> [accordion] VERIFIED — Sample 2: Clearance found and current, with middle name
>
> **Request**
>
> ```json theme={null}
> {
>   "trustFlowId": "<your trust flow id>",
>   "trustValidationId": "<your trust validation id>",
>   "clearanceNo": "NBISANDBOX-0000002"
> }
> ```
>
> **Response** — HTTP `200`
>
> ```json theme={null}
> {
>   "success": true,
>   "message": "Philippines NBI Clearance processed successfully",
>   "data": {
>     "clearanceExpiry": "2028-03-15",
>     "clearanceNumber": "NBISANDBOX-0000002",
>     "lastname": "DELA CRUZ",
>     "firstname": "MARIA",
>     "middlename": "REYES",
>     "isValid": true
>   },
>   "verificationStatus": "VERIFIED",
>   "verificationStatusCode": 3,
>   "trustFlowId": "<your trust flow id>",
>   "trustValidationId": "<your trust validation id>",
>   "verificationType": "philippines_nbi_clearance",
>   "metadata": null,
>   "createdAt": "<UTC timestamp of the request>"
> }
> ```

### Rejected

> [accordion] REJECTED — Sample 1: Clearance found but expired
>
> **Request**
>
> ```json theme={null}
> {
>   "trustFlowId": "<your trust flow id>",
>   "trustValidationId": "<your trust validation id>",
>   "clearanceNo": "NBISANDBOX-0000003"
> }
> ```
>
> **Response** — HTTP `200`
>
> ```json theme={null}
> {
>   "success": true,
>   "message": "Philippines NBI Clearance processed successfully",
>   "data": {
>     "clearanceExpiry": "2024-01-10",
>     "clearanceNumber": "NBISANDBOX-0000003",
>     "lastname": "GARCIA",
>     "firstname": "PAOLO",
>     "isValid": false
>   },
>   "verificationStatus": "REJECTED",
>   "verificationStatusCode": 1,
>   "trustFlowId": "<your trust flow id>",
>   "trustValidationId": "<your trust validation id>",
>   "verificationType": "philippines_nbi_clearance",
>   "metadata": null,
>   "createdAt": "<UTC timestamp of the request>"
> }
> ```
>
> The clearance was found, so its details are returned, but it has expired, so `isValid` is `false` and `verificationStatus` is `REJECTED`.

> [accordion] REJECTED — Sample 2: Clearance found but expired, with middle name
>
> **Request**
>
> ```json theme={null}
> {
>   "trustFlowId": "<your trust flow id>",
>   "trustValidationId": "<your trust validation id>",
>   "clearanceNo": "NBISANDBOX-0000004"
> }
> ```
>
> **Response** — HTTP `200`
>
> ```json theme={null}
> {
>   "success": true,
>   "message": "Philippines NBI Clearance processed successfully",
>   "data": {
>     "clearanceExpiry": "2025-06-30",
>     "clearanceNumber": "NBISANDBOX-0000004",
>     "lastname": "BAUTISTA",
>     "firstname": "ANA",
>     "middlename": "LIM",
>     "isValid": false
>   },
>   "verificationStatus": "REJECTED",
>   "verificationStatusCode": 1,
>   "trustFlowId": "<your trust flow id>",
>   "trustValidationId": "<your trust validation id>",
>   "verificationType": "philippines_nbi_clearance",
>   "metadata": null,
>   "createdAt": "<UTC timestamp of the request>"
> }
> ```

> [accordion] REJECTED — Sample 3: Clearance not found
>
> **Request**
>
> ```json theme={null}
> {
>   "trustFlowId": "<your trust flow id>",
>   "trustValidationId": "<your trust validation id>",
>   "clearanceNo": "NBISANDBOX-0000099"
> }
> ```
>
> **Response** — HTTP `200`
>
> ```json theme={null}
> {
>   "success": true,
>   "message": "Philippines NBI Clearance processed successfully",
>   "data": {
>     "isValid": false
>   },
>   "verificationStatus": "REJECTED",
>   "verificationStatusCode": 1,
>   "trustFlowId": "<your trust flow id>",
>   "trustValidationId": "<your trust validation id>",
>   "verificationType": "philippines_nbi_clearance",
>   "metadata": null,
>   "createdAt": "<UTC timestamp of the request>"
> }
> ```
>
> `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

> [accordion] FAILED — Data source unavailable
>
> **Request**
>
> ```json theme={null}
> {
>   "trustFlowId": "<your trust flow id>",
>   "trustValidationId": "<your trust validation id>",
>   "clearanceNo": "NBISANDBOX-0000009"
> }
> ```
>
> **Response** — HTTP `200`
>
> ```json theme={null}
> {
>   "success": false,
>   "message": "Government site down",
>   "data": null,
>   "verificationStatus": "FAILED",
>   "verificationStatusCode": 6,
>   "trustFlowId": "<your trust flow id>",
>   "trustValidationId": "<your trust validation id>",
>   "verificationType": "philippines_nbi_clearance",
>   "metadata": null,
>   "createdAt": "<UTC timestamp of the request>"
> }
> ```
>
> `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.

> [accordion] Validation failed — Clearance number missing
>
> **Request**
>
> ```json theme={null}
> {
>   "trustFlowId": "<your trust flow id>",
>   "trustValidationId": "<your trust validation id>"
> }
> ```
>
> **Response** — HTTP `400`
>
> ```json theme={null}
> {
>   "success": false,
>   "message": "The clearance no field is required.",
>   "errors": {
>     "clearanceNo": [
>       "The clearance no field is required."
>     ]
>   },
>   "createdAt": "<UTC timestamp of the request>"
> }
> ```

> [accordion] Not found — Trust validation does not exist
>
> **Request**
>
> ```json theme={null}
> {
>   "trustFlowId": "<your trust flow id>",
>   "trustValidationId": "does-not-exist",
>   "clearanceNo": "NBISANDBOX-0000001"
> }
> ```
>
> **Response** — HTTP `404`
>
> ```json theme={null}
> {
>   "success": false,
>   "message": "Trust Validation Not Found",
>   "errors": {
>     "trustValidation": "Trust Validation Not Found"
>   },
>   "createdAt": "<UTC timestamp of the request>"
> }
> ```
>
> `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](https://docs.idmetagroup.com/api-reference/sandbox.md#non-verification-responses) for their envelopes.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.