> For the complete documentation index, see [llms.txt](https://docs.vida.id/identity-stack/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.vida.id/identity-stack/verify/document-ai/ocr-and-document-verification/ocr-and-document-verification-v2/full-details-endpoint/id-verification/passports.md).

# Passports

{% hint style="info" %}
**Note:**

**Passport IDV (Identity Verification) results do not include confidence scores.**\
Instead, the response includes:

* **Code `5000`** → Indicates the **passport was successfully tested** for the specified check.
* A **success** or **failure** message → Indicates **whether the check passed or failed**.
* Spoof and forgery failure will result in error.
* Landmark failure will result in a warning.

Passport do not have a IQA response with them.
{% endhint %}

### Request

<details>

<summary>Request</summary>

```json
{
    "operations": ["idVerification"],
    "payload": {
        "partnerTrxId": "{{$guid}}",
        "groupId":"{{$guid}}",
        "country": "IND",
        "idType": "PASSPORT",
        "idSubtype": "N/A",
        "idFrontSideImage":"Base64 encoded image of passport front side"
      },
      "userConsent": {
        "userIp": "226.80.211.232",
        "country": "IND",
        "obtained": true,
        "obtainedAt": "1680700959"
    }
```

</details>

### Success Response

HTTP Status Code: `200`

<details>

<summary>Success JSON Response</summary>

```json
{
    "transactionId": "unique transaction id generated to identify this transaction",
    "partnerTrxId": "partner transaction id submitted by customer in request",
    "groupId": "partner group id submitted by customer in request",
    "card": {
        "country": "Country",
        "type": "PASSPORT",
        "isoAlpha3CountryCode": "iso Alpha 3 Country Code",
        "isoAlpha2CountryCode": "iso Alpha 2 Country Code"
    },
    "idVerificationResult": {
        "front": {
            "spoofingResult": {
                "message": "success",
                "code": 5000
            },
            "landmarkResult": {
                "message": "success",
                "code": 5000
            },
            "forgeryResult": {
                "message": "success",
                "code": 5000
            }
        }
    }
}
```

</details>

### Landmark Response

HTTP Status Code: `200`

<details>

<summary>Landmark Card JSON Response</summary>

```json
{
    "transactionId": "unique transaction id generated to identify this transaction",
    "partnerTrxId": "partner transaction id submitted by customer in request",
    "groupId": "partner group id submitted by customer in request",
    "warnings": [
        {
            "message": "Landmark verification failed for the provided card image.",
            "code": 10401,
            "operations": [
                "idVerification"
            ]
        }
    ],
    "card": {
        "country": "Country",
        "type": "PASSPORT",
        "isoAlpha3CountryCode": "AUS",
        "isoAlpha2CountryCode": "AU"
    },
    "idVerificationResult": {
        "front": {
            "spoofingResult": {
                "message": "success",
                "code": 5000
            },
            "landmarkResult": {
                "message": "failed",
                "code": 5000
            },
            "forgeryResult": {
                "message": "success",
                "code": 5000
            }
        }
    }
}
```

</details>

### Spoof Failure Response

HTTP Status Code: `400`

<details>

<summary>Spoof Card JSON Response</summary>

```json
{
    "transactionId": "unique transaction id generated to identify this transaction",
    "partnerTrxId": "partner transaction id submitted by customer in request",
    "groupId": "partner group id submitted by customer in request",
    "errors": [
        {
            "message": "The card appears to be spoofed.",
            "code": 5028,
            "operations": [
                "idVerification"
            ]
        }
    ]
}
```

</details>

### Forgery Failure Response

HTTP Status Code: `400`

<details>

<summary>Forgery Card JSON Response</summary>

```json
{
    "transactionId": "unique transaction id generated to identify this transaction",
    "partnerTrxId": "partner transaction id submitted by customer in request",
    "groupId": "partner group id submitted by customer in request",
    "errors": [
        {
            "message": "The card appears to be forged.",
            "code": 5024,
            "operations": [
                "idVerification"
            ]
        }
    ]
}
```

</details>
