> ## 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 National Police sandbox

> Predetermined API payloads to retrieve every Philippines National Police status in sandbox mode.

Sandbox payloads for the [Philippines National Police](https://docs.idmetagroup.com/api-reference/government-data/philippines/ph-national-police/philippines-national-police.md) endpoint.

```http theme={null}
POST /api/v3/verifications/philippines/national-police
```

When your account is in sandbox mode, these payloads return the outcomes shown below. No credit is reserved or charged.

`clearanceNo` and `surname` together select the scenario, and both must match. Values must match exactly, including case: `Santos` matches the first verified scenario, `SANTOS` does not. `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

> [accordion] VERIFIED — Sample 1: Clearance and surname match
>
> **Request**
>
> ```json theme={null}
> {
>   "trustFlowId": "<your trust flow id>",
>   "trustValidationId": "<your trust validation id>",
>   "clearanceNo": "TRASB120260101000001",
>   "surname": "Santos"
> }
> ```
>
> **Response** — HTTP `200`
>
> ```json theme={null}
> {
>   "success": true,
>   "message": "Philippines National Police processed successfully",
>   "data": {
>     "surname": "SANTOS",
>     "fullname": "SANTOS, JORDAN DELA",
>     "hitVerificationId": 1,
>     "isValid": true,
>     "clearanceNumber": "TRASB120260101000001"
>   },
>   "verificationStatus": "VERIFIED",
>   "verificationStatusCode": 3,
>   "trustFlowId": "<your trust flow id>",
>   "trustValidationId": "<your trust validation id>",
>   "verificationType": "philippines_national_police",
>   "metadata": null,
>   "createdAt": "<UTC timestamp of the request>"
> }
> ```

> [accordion] VERIFIED — Sample 2: Compound surname
>
> **Request**
>
> ```json theme={null}
> {
>   "trustFlowId": "<your trust flow id>",
>   "trustValidationId": "<your trust validation id>",
>   "clearanceNo": "TRASB120260101000002",
>   "surname": "Dela Cruz"
> }
> ```
>
> **Response** — HTTP `200`
>
> ```json theme={null}
> {
>   "success": true,
>   "message": "Philippines National Police processed successfully",
>   "data": {
>     "surname": "DELA CRUZ",
>     "fullname": "DELA CRUZ, MARIA REYES",
>     "hitVerificationId": 1,
>     "isValid": true,
>     "clearanceNumber": "TRASB120260101000002"
>   },
>   "verificationStatus": "VERIFIED",
>   "verificationStatusCode": 3,
>   "trustFlowId": "<your trust flow id>",
>   "trustValidationId": "<your trust validation id>",
>   "verificationType": "philippines_national_police",
>   "metadata": null,
>   "createdAt": "<UTC timestamp of the request>"
> }
> ```
>
> Send multi-word surnames with their spaces, exactly as printed on the clearance.

### Rejected

A rejection is a completed verification, not an error: `success` is `true` and the HTTP status is `200`. All three return the same response, so your integration cannot tell a surname mismatch from a missing clearance.

> [accordion] REJECTED — Sample 1: Surname mismatch
>
> **Request**
>
> ```json theme={null}
> {
>   "trustFlowId": "<your trust flow id>",
>   "trustValidationId": "<your trust validation id>",
>   "clearanceNo": "TRASB120260101000001",
>   "surname": "Garcia"
> }
> ```
>
> **Response** — HTTP `200`
>
> ```json theme={null}
> {
>   "success": true,
>   "message": "Philippines National Police processed successfully",
>   "data": {
>     "isValid": false
>   },
>   "verificationStatus": "REJECTED",
>   "verificationStatusCode": 1,
>   "trustFlowId": "<your trust flow id>",
>   "trustValidationId": "<your trust validation id>",
>   "verificationType": "philippines_national_police",
>   "metadata": null,
>   "createdAt": "<UTC timestamp of the request>"
> }
> ```
>
> The clearance number is the same one used in the first verified scenario. A different surname rejects the clearance and returns none of the holder's details.

> [accordion] REJECTED — Sample 2: Clearance not found
>
> **Request**
>
> ```json theme={null}
> {
>   "trustFlowId": "<your trust flow id>",
>   "trustValidationId": "<your trust validation id>",
>   "clearanceNo": "TRASB120260101000005",
>   "surname": "Bautista"
> }
> ```
>
> **Response** — HTTP `200`
>
> ```json theme={null}
> {
>   "success": true,
>   "message": "Philippines National Police processed successfully",
>   "data": {
>     "isValid": false
>   },
>   "verificationStatus": "REJECTED",
>   "verificationStatusCode": 1,
>   "trustFlowId": "<your trust flow id>",
>   "trustValidationId": "<your trust validation id>",
>   "verificationType": "philippines_national_police",
>   "metadata": null,
>   "createdAt": "<UTC timestamp of the request>"
> }
> ```

> [accordion] REJECTED — Sample 3: Unlisted clearance
>
> **Request**
>
> ```json theme={null}
> {
>   "trustFlowId": "<your trust flow id>",
>   "trustValidationId": "<your trust validation id>",
>   "clearanceNo": "TRASB120260101000099",
>   "surname": "Reyes"
> }
> ```
>
> **Response** — HTTP `200`
>
> ```json theme={null}
> {
>   "success": true,
>   "message": "Philippines National Police processed successfully",
>   "data": {
>     "isValid": false
>   },
>   "verificationStatus": "REJECTED",
>   "verificationStatusCode": 1,
>   "trustFlowId": "<your trust flow id>",
>   "trustValidationId": "<your trust validation id>",
>   "verificationType": "philippines_national_police",
>   "metadata": null,
>   "createdAt": "<UTC timestamp of the request>"
> }
> ```
>
> Any `clearanceNo` and `surname` combination that is not listed on this page returns this same response, so this payload is only an example.

### Source unavailable

> [accordion] FAILED — Government source unavailable
>
> **Request**
>
> ```json theme={null}
> {
>   "trustFlowId": "<your trust flow id>",
>   "trustValidationId": "<your trust validation id>",
>   "clearanceNo": "TRASB120260101000009",
>   "surname": "Santos"
> }
> ```
>
> **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_national_police",
>   "metadata": null,
>   "createdAt": "<UTC timestamp of the request>"
> }
> ```
>
> The government source could not be reached, so `success` is `false`, `data` is `null` and `verificationStatus` is `FAILED`, but the HTTP status is still `200`. Treat it as a temporary failure and retry later.

### Validation failures

Validation runs before any fixture matching, so these behave identically in sandbox and live. They return HTTP `400`, and `message` is the first validation error. `clearanceNo` and `surname` are both required.

> [accordion] Validation failed — Clearance number missing
>
> **Request**
>
> ```json theme={null}
> {
>   "trustFlowId": "<your trust flow id>",
>   "trustValidationId": "<your trust validation id>",
>   "surname": "Santos"
> }
> ```
>
> **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": "TRASB120260101000001",
>   "surname": "Santos"
> }
> ```
>
> **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_national_police` 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.