> ## Documentation Index
> Fetch the complete documentation index at: https://docs.checkin.com/llms.txt
> Use this file to discover all available pages before exploring further.

# NFC chip reading

> Read and verify the chip in passports and ID cards with the mobile SDKs.

NFC chip verification reads the chip embedded in modern identity documents (biometric passports, eID cards) and cryptographically verifies that the data was issued by a legitimate government authority and hasn't been tampered with.

The chip holds the same data as the printed document (name, date of birth, document number and so on) plus a high-quality digital portrait, all digitally signed by the issuing country. This makes NFC the strongest available signal that a document is genuine.

<table>
  <colgroup>
    <col width="158" />

    <col width="598" />
  </colgroup>

  <thead>
    <tr>
      <th />

      <th />
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>Available in</td>
      <td>iOS and Android SDKs, version 4.2.x and above</td>
    </tr>

    <tr>
      <td>Part of</td>
      <td>[Document Check](https://docs.checkin.com/products/document-check.md)</td>
    </tr>

    <tr>
      <td>Enabled in</td>
      <td>Flows → \[flow name] → Customize → NFC</td>
    </tr>
  </tbody>
</table>

## Security model

The phone only **reads** the chip. All validation happens on the server: raw chip data is sent to Checkin.com, where signatures, certificates and data integrity are verified independently. The client is never trusted to decide whether a document is authentic, so even a compromised device can't fake a passing result.

## User flow

1. The applicant photographs their document as usual.
2. If NFC is enabled in the flow **and** the document has a readable chip, an extra step asks them to hold the document against the phone.
3. The phone reads the chip and the data is submitted with the application.
4. The applicant continues to the selfie, liveness and any other steps.

If the document has no chip, or NFC is disabled, the flow doesn't change: the NFC step doesn't appear.

## How it works

**On the device:**

* The SDK detects whether the scanned document has a readable chip.
* If NFC is enabled and the document supports it, the NFC step is shown.
* The SDK opens the chip using the MRZ (and CAN, where needed) already captured from the document photo. The applicant doesn't type anything.
* The SDK reads the chip and sends the raw chip data with the application.

**On the server:**

* A unique session and challenge are generated for every scan. They are used for Active Authentication, which proves the chip is physically present and not cloned or replayed.
* Passive Authentication verifies that the chip data matches what the issuing authority signed.
* Certificate chain verification checks the chain from the country signing authority (CSCA) to the document signer to the document, against the public ICAO master list.
* Chip data is cross-checked against the data read from the document photos (printed text and MRZ).
* If the chip contains a digital portrait, Face Match uses it instead of the printed photo. It has no print artefacts, watermarks or security overlays, so matching is more accurate.
* The result feeds into the application status according to your verification rules. NFC verification rules can be configured per customer.

## Standards

Chip-equipped identity documents (eMRTDs) follow **ICAO Doc 9303**. The chip is a contactless smart card per **ISO/IEC 14443**, the same radio interface as contactless payment cards. Every biometric passport, and most modern national eID cards and residence permits, carry a compatible chip.

### Chip access

Chip data isn't openly readable: access keys are derived from the document itself, which prevents remote skimming. The SDK supports both ICAO access protocols and picks the right one automatically:

<table>
  <colgroup>
    <col width="325" />

    <col width="426" />
  </colgroup>

  <thead>
    <tr>
      <th>Protocol</th>
      <th>Description</th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>**BAC** (Basic Access Control)</td>
      <td>Legacy protocol. Keys derived from the MRZ (document number, date of birth, date of expiry). Used by older passports.</td>
    </tr>

    <tr>
      <td>**PACE** (Password Authenticated Connection Establishment)</td>
      <td>Modern replacement with stronger cryptography. Mandatory for EU documents issued since 2014.</td>
    </tr>
  </tbody>
</table>

### Authentication mechanisms

<table>
  <colgroup>
    <col width="288" />

    <col width="464" />
  </colgroup>

  <thead>
    <tr>
      <th>Mechanism</th>
      <th>What it proves</th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>**Passive Authentication (PA)**</td>
      <td>Data integrity and origin. Every data group is hashed, and the hashes are signed by the issuing country (SOD). Detects any change to chip data, but not a bit-perfect clone of a genuine chip.</td>
    </tr>

    <tr>
      <td>**Active Authentication (AA)**</td>
      <td>Anti-cloning. The server sends a random challenge, the chip signs it with a private key that never leaves the chip, and the server verifies the response. A clone can't answer, because copying the data doesn't copy the private key.</td>
    </tr>

    <tr>
      <td>**Chip Authentication (CA)**</td>
      <td>Anti-cloning and stronger session encryption, using a key pair stored in the chip.</td>
    </tr>

    <tr>
      <td>**Terminal Authentication (TA / EAC)**</td>
      <td>Proves the reader is authorised to access sensitive biometrics (fingerprints, iris). Requires country-issued terminal certificates, in practice available only to government and border-control systems.</td>
    </tr>
  </tbody>
</table>

### Data on the chip

| Data group | Contents | Notes |
| - | - | - |
| DG1 | MRZ data (name, document number, date of birth, expiry, nationality, and so on) | Always present. The main cross-check against the photo capture. |
| DG2 | Digital portrait | Always present. Used for face matching when available. |
| DG5 | Displayed portrait | Optional |
| DG7 | Displayed signature | Optional |
| DG11 | Additional personal details (for example address, full name in national characters) | Optional, depends on the issuer |
| DG12 | Additional document details (for example issuing authority, issue date) | Optional, depends on the issuer |
| DG14 | Security options (keys for Chip Authentication) | Present when the chip supports advanced authentication |
| DG15 | Active Authentication public key | Present only on documents that support AA |
| SOD | Document Security Object: the issuer's signature over the hashes of all data groups | The anchor for Passive Authentication |

Forging chip data would require the issuing country's private signing key. Together with the clean digital portrait, this gives stronger document authenticity **and** more accurate face matching than checking the printed document alone.

## Enable NFC

Turn on NFC per flow in the Backoffice: **Flows → \[flow name] → Customize → NFC**.

<table>
  <colgroup>
    <col width="249" />

    <col width="506" />
  </colgroup>

  <thead>
    <tr>
      <th>Setting</th>
      <th>Effect</th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>**Enable NFC chip reading**</td>
      <td>Prompts applicants to scan the chip when a chip-enabled document is detected. Validation runs on the server automatically.</td>
    </tr>

    <tr>
      <td>**Always require NFC chip scan**</td>
      <td>Applicants can't continue until the document's chip has been scanned successfully. They must use a supported document with a readable chip.</td>
    </tr>
  </tbody>
</table>

Click **Save** to apply the changes to the flow.

## Device requirements

* A phone with NFC turned on. NFC can't be tested on an emulator.
* iOS setup: [iOS SDK → NFC](https://docs.checkin.com/integrate/mobile/ios.md#nfc)
* Android setup: [Android SDK → NFC](https://docs.checkin.com/integrate/mobile/android.md#nfc)

On Android, the SDK returns `NO_NFC_SUPPORT` when NFC isn't available on the device.

## Results

### Verification checks

Every scan runs these checks on the server:

<table>
  <colgroup>
    <col width="218" />

    <col width="538" />
  </colgroup>

  <thead>
    <tr>
      <th>Check</th>
      <th>Verifies</th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>`passiveAuthentication`</td>
      <td>Chip data matches what the issuing authority signed</td>
    </tr>

    <tr>
      <td>`sodSignature`</td>
      <td>The Document Security Object (SOD) signature is valid</td>
    </tr>

    <tr>
      <td>`trustChain`</td>
      <td>The full certificate chain up to the country CSCA, validated against the ICAO master list</td>
    </tr>

    <tr>
      <td>`documentSignerCertificate`</td>
      <td>The document signer certificate itself is valid (validity period, issuer)</td>
    </tr>

    <tr>
      <td>`activeAuthentication`</td>
      <td>The chip is physically present and not cloned. `not_performed` when the document doesn't support Active Authentication.</td>
    </tr>
  </tbody>
</table>

### Example

Specimen data:

```json theme={null}
"nfcData": {
  "documentData": {
    "documentCode": "I",
    "givenNames": "ANNA",
    "surname": "SPECIMEN",
    "nationality": "LVA",
    "gender": "FEMALE",
    "dateOfBirth": "1990-01-01",
    "documentType": "ID_CARD",
    "documentNumber": "PA0000000",
    "personalNumber": "010190-00000",
    "dateOfExpiry": "2031-11-02",
    "issuingCountry": "LVA",
    "portrait": "images/..."
  },
  "sodMetadata": {
    "cscaIssuer": "Serial Number: 008, Common Name: CSCA Latvia, Organization: National Security Authority, Country: LV",
    "dscSubject": "Common Name: DS Latvia 2, Organization: Office of Citizenship and Migration Affairs, Country: LV",
    "dscSerial": "72",
    "dscValidFrom": "2021-09-09",
    "dscValidUntil": "2031-12-09",
    "sodDigestAlgorithm": "SHA-256",
    "sodSignatureAlgorithm": "ECDSA-SHA256",
    "sodSignedAt": "2021-11-03 10:49:31 UTC"
  },
  "checks": {
    "passiveAuthentication": { "status": "passed" },
    "sodSignature": { "status": "passed" },
    "trustChain": { "status": "passed" },
    "documentSignerCertificate": { "status": "passed" },
    "activeAuthentication": { "status": "not_performed" }
  },
  "summary": {
    "totalChecks": 5,
    "passed": 4,
    "failed": 0,
    "skipped": 1
  },
  "status": "passed"
}
```

### On failure

If Passive Authentication fails, the application gets this breakdown:

> Data extracted from the RFID chip is not valid.

### In the Backoffice

Application details have an NFC section with a check-by-check breakdown for every scan. A successful scan shows:

> **Document chip verification**
>
> * NFC chip reading was successfully performed.
> * Data from the document chip is consistent and valid.
> * The document chip was verified as authentic by trusted authorities.
> * No signs of chip cloning were detected.

## Concerns

| Code | Message |
| - | - |
| `DC064` | NFC chip reading was not performed. |
| `DC065` | Data from the document chip could not be verified. |
| `DC066` | Signs of possible chip cloning were detected. |
| `DC067` | The document chip could not be verified by trusted authorities. |

All codes are in [Considers lists](https://docs.checkin.com/integrate/results/considers-lists.md).

## FAQ

> [accordion] Which documents support NFC?
>
> Biometric passports (ePassports) and most modern national eID cards. The SDK detects whether a chip is available automatically; no per-document configuration is needed.

> [accordion] Does NFC replace the photo and MRZ steps?
>
> No. NFC is an additional verification layer. Chip data is cross-checked against the data from the document photos, so inconsistencies between the chip and the physical document are caught.

> [accordion] What if the phone can't read the chip, or scanning keeps failing?
>
> If **Always require NFC chip scan** is on, the applicant can't complete the flow without a successful scan.

> [accordion] Is chip data validated on the device?
>
> No. The device only reads. Passive Authentication, trust chain and Active Authentication run on the server, so results can't be spoofed by a tampered client.

> [accordion] Can verification strictness differ per customer?
>
> Yes. NFC verification rules can be configured per customer.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.