# Passport MRZ Validator

Parse and checksum-verify a passport's machine-readable zone — document number, dates, and the composite check — before a KYC flow trusts it.

- Method: `GET`
- Path: `/v1/id/mrz`

**Parameters**

| Name | Type | | Description |
|---|---|---|---|
| `mrz` | string | required | The two (TD3, passport) or three (TD1, ID card) MRZ lines, newline-separated. |

**Example request**

```bash
curl https://api.diraz.ae/v1/id/mrz \
  -H "Authorization: Bearer drz_live_…"
```

**Example response**

```json
{
  "data": {
    "format": "TD3",
    "valid": true,
    "document_number": "X1234567",
    "birth_date": "1990-08-15",
    "expiry_date": "2027-03-20",
    "nationality": "IDN",
    "surname": "SANTOSO",
    "given_names": "BUDI",
    "checks": [
      { "field": "document_number", "valid": true },
      { "field": "birth_date", "valid": true },
      { "field": "expiry_date", "valid": true },
      { "field": "composite", "valid": true }
    ],
    "issues": []
  },
  "meta": {
    "request_id": "req_7Q2fK4mZ"
  }
}
```