> 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-v1/full-details-endpoint/ocr/passports.md).

# Passports

{% hint style="info" %}
📝 **Note:** The **Personal-ID-Number** and **Religion** fields in **passport documents** are **optional** — they may or may not appear in the OCR response.\
For example:

* **Included**: Passports from countries like **Malaysia** and **South Korea**
* **Not included**: Many other countries do **not** include these fields in their passport format.
  {% endhint %}

<details>

<summary>Request</summary>

```json
{
    "operations": ["ocr"],
    "payload": {
        "partnerTrxId": "{{$guid}}",
        "groupId":"{{$guid}}",
        "country": "KOR",
        "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": "ae31c00c-404c-4129-bd34-17ad470583a3",
    "partnerTrxId": "dcc75297-bb57-49b8-84cf-b5e10de608a5",
    "groupId": "0a7d2eca-4829-4d7c-93cb-85f144c60e01",
    "card": {
        "country": "South Korea",
        "type": "PASSPORT",
        "isoAlpha3CountryCode": "KOR",
        "isoAlpha2CountryCode": "KR"
    },
    "ocrResult": {
        "data": {
            "idNumber": {
                "value": "Id-Number"
            },
            "personalIdNumber": {
                "value": "Personal Id Number"
            },
            "name": {
                "value": "Name from passport"
            },
            "dob": {
                "value": "Date of birth in YYYYMMDD format"
            },
            "gender": {
                "value": "Gender from passport (M/F/O)"
            },
            "placeOfBirth": {
                "value": "Place of birth from passport"
            },
            "dateOfExpiry": {
                "value": "Date of expiry"
            },
            "dateOfIssue": {
                "value": "Date of Issuance"
            },
            "citizenship": {
                "value": "citizenship from passport"
            },
            "religion": {
                "value": "religion from passport"
            },
            "issuerName": {
                "value": "issuer name from passport"
            },
            "issuerCountry": {
                "value": "issuer country from passport"
            },
            "issuingAuthority": {
                "value": "issuing authority from passport"
            },
            "portraitImage":"Base64 encoded cropped face image from passport"
        }
    }
}
```

</details>
