> ## 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 Driving License sandbox

> Predetermined API payloads to retrieve every Philippines Driving License status in sandbox mode.

Sandbox payloads for the [Philippines Driving License](https://docs.idmetagroup.com/api-reference/government-data/philippines/ph-lto-drivers-license/philippines-driving-license.md) endpoint.

```http theme={null}
POST /api/v3/verifications/philippines/driving-license
```

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

Only `licenseNumber` selects the scenario. `trustFlowId` and `trustValidationId` are still validated, but do not change which scenario is returned. 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

> [accordion] VERIFIED — sample 1
>
> **Request**
>
> ```json theme={null}
> {
>   "trustFlowId": "<your trust flow id>",
>   "trustValidationId": "<your trust validation id>",
>   "licenseNumber": "N01-23-456789"
> }
> ```
>
> **Response** — HTTP `200`
>
> ```json theme={null}
> {
>   "success": true,
>   "message": "Philippines Driving License processed successfully",
>   "data": {
>     "isValid": true
>   },
>   "verificationStatus": "VERIFIED",
>   "verificationStatusCode": 3,
>   "trustFlowId": "<your trust flow id>",
>   "trustValidationId": "<your trust validation id>",
>   "verificationType": "philippines_driving_license",
>   "metadata": null,
>   "createdAt": "<UTC timestamp of the request>"
> }
> ```

> [accordion] VERIFIED — sample 2
>
> **Request**
>
> ```json theme={null}
> {
>   "trustFlowId": "<your trust flow id>",
>   "trustValidationId": "<your trust validation id>",
>   "licenseNumber": "D04-12-345678"
> }
> ```
>
> **Response** — HTTP `200`
>
> ```json theme={null}
> {
>   "success": true,
>   "message": "Philippines Driving License processed successfully",
>   "data": {
>     "isValid": true
>   },
>   "verificationStatus": "VERIFIED",
>   "verificationStatusCode": 3,
>   "trustFlowId": "<your trust flow id>",
>   "trustValidationId": "<your trust validation id>",
>   "verificationType": "philippines_driving_license",
>   "metadata": null,
>   "createdAt": "<UTC timestamp of the request>"
> }
> ```

### Rejected

A rejection is a completed verification, not an error: `success` is `true` and HTTP status is `200`.

> [accordion] REJECTED — License number not verified
>
> **Request**
>
> ```json theme={null}
> {
>   "trustFlowId": "<your trust flow id>",
>   "trustValidationId": "<your trust validation id>",
>   "licenseNumber": "N99-99-999999"
> }
> ```
>
> **Response** — HTTP `200`
>
> ```json theme={null}
> {
>   "success": true,
>   "message": "Philippines Driving License processed successfully",
>   "data": {
>     "isValid": false
>   },
>   "verificationStatus": "REJECTED",
>   "verificationStatusCode": 1,
>   "trustFlowId": "<your trust flow id>",
>   "trustValidationId": "<your trust validation id>",
>   "verificationType": "philippines_driving_license",
>   "metadata": null,
>   "createdAt": "<UTC timestamp of the request>"
> }
> ```

> [accordion] REJECTED — Not verified, unmatched payload fallback
>
> **Request**
>
> ```json theme={null}
> {
>   "trustFlowId": "<your trust flow id>",
>   "trustValidationId": "<your trust validation id>",
>   "licenseNumber": "N12-34-567890"
> }
> ```
>
> **Response** — HTTP `200`
>
> ```json theme={null}
> {
>   "success": true,
>   "message": "Philippines Driving License processed successfully",
>   "data": {
>     "isValid": false
>   },
>   "verificationStatus": "REJECTED",
>   "verificationStatusCode": 1,
>   "trustFlowId": "<your trust flow id>",
>   "trustValidationId": "<your trust validation id>",
>   "verificationType": "philippines_driving_license",
>   "metadata": null,
>   "createdAt": "<UTC timestamp of the request>"
> }
> ```
>
> This license number matches no documented scenario, so it takes the no-match fallback — identical to the documented rejection above apart from `trustValidationId` and `createdAt`. Fire it once to confirm that an unknown license never reaches the live LTO source.

### 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. `licenseNumber` is required and must be a letter followed by 10 digits (`A0000000000`) or the `A00-00-000000` format.

> [accordion] VALIDATION\_FAILED — License 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 license number field is required.",
>   "errors": {
>     "licenseNumber": [
>       "The license number field is required."
>     ]
>   },
>   "createdAt": "<UTC timestamp of the request>"
> }
> ```

> [accordion] VALIDATION\_FAILED — License number invalid format
>
> **Request**
>
> ```json theme={null}
> {
>   "trustFlowId": "<your trust flow id>",
>   "trustValidationId": "<your trust validation id>",
>   "licenseNumber": "N01234"
> }
> ```
>
> **Response** — HTTP `400`
>
> ```json theme={null}
> {
>   "success": false,
>   "message": "licenseNumber must start with a letter. Use letter + 10 digits (A0000000000) or A00-00-000000 (3-2-6 format).",
>   "errors": {
>     "licenseNumber": [
>       "licenseNumber must start with a letter. Use letter + 10 digits (A0000000000) or A00-00-000000 (3-2-6 format)."
>     ]
>   },
>   "createdAt": "<UTC timestamp of the request>"
> }
> ```
>
> The same message is returned for any value that does not fit either format, even when it does start with a letter.

> [accordion] VALIDATION\_FAILED — Trust validation does not exist
>
> **Request**
>
> ```json theme={null}
> {
>   "trustFlowId": "<your trust flow id>",
>   "trustValidationId": "does-not-exist",
>   "licenseNumber": "N01-23-456789"
> }
> ```
>
> **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.

### Source unavailable

> [accordion] FAILED — LTO source unavailable
>
> **Request**
>
> ```json theme={null}
> {
>   "trustFlowId": "<your trust flow id>",
>   "trustValidationId": "<your trust validation id>",
>   "licenseNumber": "N00-00-000000"
> }
> ```
>
> **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_driving_license",
>   "metadata": null,
>   "createdAt": "<UTC timestamp of the request>"
> }
> ```
>
> `success` is `false`, `verificationStatus` is `FAILED` and `data` is `null`: the LTO 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.

### 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_driving_license` 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.