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

# PhilSys QR Verification sandbox

> Predetermined API payloads to retrieve every PhilSys QR Verification status in sandbox mode.

Sandbox payloads for the [PhilSys QR Verification](https://docs.idmetagroup.com/api-reference/government-data/philippines/ph-philsys-qr-verification/qr-code-verification.md) endpoint.

```http theme={null}
POST /api/v3/verifications/philippines/philsys-qr-check
```

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

Only `qr_value` selects the scenario. 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: Valid ePhilID
>
> **Request**
>
> ```json theme={null}
> {
>   "trustFlowId": "<your trust flow id>",
>   "trustValidationId": "<your trust validation id>",
>   "qr_value": "PH1:SANDBOX-VALID-0001"
> }
> ```
>
> **Response** — HTTP `200`
>
> ```json theme={null}
> {
>   "success": true,
>   "message": "PhilSys QR Check processed successfully",
>   "data": {
>     "isValid": true,
>     "type": "ePhilID",
>     "qrValue": {
>       "PCN": "1234567890123456",
>       "firstName": "Juan",
>       "middleName": "Santos",
>       "lastName": "Dela Cruz",
>       "suffix": null,
>       "dateOfBirth": "1990-01-15",
>       "sex": "Male",
>       "placeOfBirth": "Manila",
>       "dateIssued": "2023-06-01",
>       "bestFingerCaptured": null
>     }
>   },
>   "verificationStatus": "VERIFIED",
>   "verificationStatusCode": 3,
>   "trustFlowId": "<your trust flow id>",
>   "trustValidationId": "<your trust validation id>",
>   "verificationType": "qr_verification",
>   "metadata": null,
>   "createdAt": "<UTC timestamp of the request>"
> }
> ```

> [accordion] VERIFIED — Sample 2: Valid ePhilID
>
> **Request**
>
> ```json theme={null}
> {
>   "trustFlowId": "<your trust flow id>",
>   "trustValidationId": "<your trust validation id>",
>   "qr_value": "PH1:SANDBOX-VALID-0002"
> }
> ```
>
> **Response** — HTTP `200`
>
> ```json theme={null}
> {
>   "success": true,
>   "message": "PhilSys QR Check processed successfully",
>   "data": {
>     "isValid": true,
>     "type": "ePhilID",
>     "qrValue": {
>       "PCN": "6543210987654321",
>       "firstName": "Maria",
>       "middleName": "Lopez",
>       "lastName": "Reyes",
>       "suffix": null,
>       "dateOfBirth": "1985-07-22",
>       "sex": "Female",
>       "placeOfBirth": "Cebu City",
>       "dateIssued": "2024-02-14",
>       "bestFingerCaptured": null
>     }
>   },
>   "verificationStatus": "VERIFIED",
>   "verificationStatusCode": 3,
>   "trustFlowId": "<your trust flow id>",
>   "trustValidationId": "<your trust validation id>",
>   "verificationType": "qr_verification",
>   "metadata": null,
>   "createdAt": "<UTC timestamp of the request>"
> }
> ```

### Rejected

A rejection is a completed verification, not an error: `success` is `true` and the HTTP status is `200`. A rejected QR returns no `qrValue`.

> [accordion] REJECTED — Sample 1: Invalid ePhilID
>
> **Request**
>
> ```json theme={null}
> {
>   "trustFlowId": "<your trust flow id>",
>   "trustValidationId": "<your trust validation id>",
>   "qr_value": "PH1:SANDBOX-INVALID-0001"
> }
> ```
>
> **Response** — HTTP `200`
>
> ```json theme={null}
> {
>   "success": true,
>   "message": "PhilSys QR Check processed successfully",
>   "data": {
>     "isValid": false,
>     "type": "ePhilID"
>   },
>   "verificationStatus": "REJECTED",
>   "verificationStatusCode": 1,
>   "trustFlowId": "<your trust flow id>",
>   "trustValidationId": "<your trust validation id>",
>   "verificationType": "qr_verification",
>   "metadata": null,
>   "createdAt": "<UTC timestamp of the request>"
> }
> ```

> [accordion] REJECTED — Sample 2: Invalid ePhilID
>
> **Request**
>
> ```json theme={null}
> {
>   "trustFlowId": "<your trust flow id>",
>   "trustValidationId": "<your trust validation id>",
>   "qr_value": "PH1:SANDBOX-INVALID-0002"
> }
> ```
>
> **Response** — HTTP `200`
>
> ```json theme={null}
> {
>   "success": true,
>   "message": "PhilSys QR Check processed successfully",
>   "data": {
>     "isValid": false,
>     "type": "ePhilID"
>   },
>   "verificationStatus": "REJECTED",
>   "verificationStatusCode": 1,
>   "trustFlowId": "<your trust flow id>",
>   "trustValidationId": "<your trust validation id>",
>   "verificationType": "qr_verification",
>   "metadata": null,
>   "createdAt": "<UTC timestamp of the request>"
> }
> ```

> [accordion] REJECTED — Unlisted QR value
>
> **Request**
>
> ```json theme={null}
> {
>   "trustFlowId": "<your trust flow id>",
>   "trustValidationId": "<your trust validation id>",
>   "qr_value": "PH1:SANDBOX-UNLISTED-0001"
> }
> ```
>
> **Response** — HTTP `200`
>
> ```json theme={null}
> {
>   "success": true,
>   "message": "PhilSys QR Check processed successfully",
>   "data": {
>     "isValid": false,
>     "type": "ePhilID"
>   },
>   "verificationStatus": "REJECTED",
>   "verificationStatusCode": 1,
>   "trustFlowId": "<your trust flow id>",
>   "trustValidationId": "<your trust validation id>",
>   "verificationType": "qr_verification",
>   "metadata": null,
>   "createdAt": "<UTC timestamp of the request>"
> }
> ```
>
> Any `qr_value` that is not listed on this page returns this same response, so `PH1:SANDBOX-UNLISTED-0001` is only an example.

### Source unavailable

These two values simulate the QR verification source being unavailable. They currently return the same `REJECTED` result as an invalid QR, with `success` set to `true` and HTTP status `200`, not an error response.

> [accordion] REJECTED — Source unavailable, sample 1
>
> **Request**
>
> ```json theme={null}
> {
>   "trustFlowId": "<your trust flow id>",
>   "trustValidationId": "<your trust validation id>",
>   "qr_value": "PH1:SANDBOX-UNAVAILABLE-0001"
> }
> ```
>
> **Response** — HTTP `200`
>
> ```json theme={null}
> {
>   "success": true,
>   "message": "PhilSys QR Check processed successfully",
>   "data": {
>     "isValid": false,
>     "type": "ePhilID"
>   },
>   "verificationStatus": "REJECTED",
>   "verificationStatusCode": 1,
>   "trustFlowId": "<your trust flow id>",
>   "trustValidationId": "<your trust validation id>",
>   "verificationType": "qr_verification",
>   "metadata": null,
>   "createdAt": "<UTC timestamp of the request>"
> }
> ```

> [accordion] REJECTED — Source unavailable, sample 2
>
> **Request**
>
> ```json theme={null}
> {
>   "trustFlowId": "<your trust flow id>",
>   "trustValidationId": "<your trust validation id>",
>   "qr_value": "PH1:SANDBOX-UNAVAILABLE-0002"
> }
> ```
>
> **Response** — HTTP `200`
>
> ```json theme={null}
> {
>   "success": true,
>   "message": "PhilSys QR Check processed successfully",
>   "data": {
>     "isValid": false,
>     "type": "ePhilID"
>   },
>   "verificationStatus": "REJECTED",
>   "verificationStatusCode": 1,
>   "trustFlowId": "<your trust flow id>",
>   "trustValidationId": "<your trust validation id>",
>   "verificationType": "qr_verification",
>   "metadata": null,
>   "createdAt": "<UTC timestamp of the request>"
> }
> ```

### 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. `qr_value` is required.

> [accordion] Validation failed — QR value 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 qr value field is required.",
>   "errors": {
>     "qr_value": ["The qr value 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",
>   "qr_value": "PH1:SANDBOX-VALID-0001"
> }
> ```
>
> **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 `qr_verification` 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.