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

# Profile comparison

> Compare the applicant's details with the data on their document.

Profile comparison compares the details the applicant gave you, such as name and date of birth, with the data extracted from their identity document. It runs on top of [Document Check](https://docs.checkin.com/products/document-check.md).

| | |
| - | - |
| API identifier | None. Runs automatically when you send profile data with `data-extraction`. |
| Result key | `servicesResults.profileCheck` |
| Requires | [Document Check](https://docs.checkin.com/products/document-check.md) (`data-extraction`) |

## When to use it

* You already hold the applicant's details, for example from your registration form, and need to confirm they belong to the document holder
* You collect details in the Web SDK form and want them checked against the document

## How it works

1. You send the applicant's details: as `profile` in the SDKs, as `profile` in a verification link, or as `application.fields` in the API. See [Applicant data](https://docs.checkin.com/integrate/applicant-data.md).
2. Document Check extracts the data from the document.
3. Each detail you sent is compared with the matching extracted field.
4. Every mismatch becomes a finding. Your verification rules decide whether it sends the application to review or declines it.

Fields that can be compared:

* First name, last name, and swapped first and last names
* Date of birth
* Issue country, document type, date of issue, date of expiry
* Nationality and nationality code
* Gender
* Document number and personal number
* Place of birth and place of issue
* Other fields you send, by category name

Country and city of residence are compared with the location detected from the applicant's IP address.

### Data collected in the Web SDK form

You set up the form per flow in **Flows → \[flow name] → Summary → Profile data**: turn on **Form fields**, choose the **Fields on the form**, and optionally pre-fill the form with data from the document. The same data is used for [Watchlists](https://docs.checkin.com/products/watchlists.md) screening. With the form turned off, no cross-check with personal details is performed unless you send them.

See [Flows](https://docs.checkin.com/backoffice/flows.md#profile-data).

![Web SDK profile data form: personal details, document details, contact details and address](https://mintcdn.com/checkin-com/25GVaDB7DHI1hjGE/images/Flow-%C2%B7-Profile-data.png?fit=max\&auto=format\&n=25GVaDB7DHI1hjGE\&q=85\&s=abc99e0464dc970f5dc429b70d9a6fd9)

The profile data form in the Web SDK

The details the applicant enters are stored in `application.fields`, the same way as details you send through the API, and are compared in the same way.

#### Example

```json theme={null}
{
  "application": {
    "fields": [
      { "category": "First name", "contentType": "string", "content": "Anna Maria" },
      { "category": "Last name", "contentType": "string", "content": "Berg" },
      { "category": "Middle name", "contentType": "string", "content": "van den" },
      { "category": "Initials", "contentType": "string", "content": "AM" },
      { "category": "Date of birth", "contentType": "date", "content": "1990-01-20" },
      { "category": "Personal number", "contentType": "string", "content": "123456789" },
      { "category": "Country", "contentType": "string", "content": "NLD" },
      { "category": "City", "contentType": "string", "content": "Utrecht" },
      { "category": "Street name", "contentType": "string", "content": "Voorbeeldstraat" },
      { "category": "House number", "contentType": "string", "content": "1" },
      { "category": "Postcode", "contentType": "string", "content": "1234AB" },
      { "category": "Phone number", "contentType": "string", "content": "+31600000000" }
    ]
  }
}
```

Only fields that also exist on the document, such as names, date of birth and personal number, take part in the comparison.

## Configuration

In the Backoffice, under **Settings → Verification rules → Profile Data Check** (or the flow's own verification rules), you set:

* name comparison, including fuzzy matching with an adjustable match level, comparison by word for multi-part names, and nickname matching (for example Bob for Robert)
* what happens when first and last names are swapped
* what happens when other profile fields don't match the document
* country and city of residence compared with the IP location, and [VPN detection](https://docs.checkin.com/products/add-ons/vpn-detection.md), under **Location comparison and VPN check**

For each finding you choose whether it sends the application to review or declines it.

See [Verification rules](https://docs.checkin.com/backoffice/verification-rules.md).

## Request

```json theme={null}
{
  "verificationTypes": ["data-extraction"],
  "application": {
    "fields": [
      { "category": "First name", "content": "Alex" },
      { "category": "Last name", "content": "Example" },
      { "category": "Date of birth", "content": "1990-01-20" }
    ]
  }
}
```

Add the document as described in [Document Check](https://docs.checkin.com/products/document-check.md).

## Result

| Field | Content |
| - | - |
| `status`, `processingState`, `comment`, `verifier` | Service outcome. `comment` summarises the number of issues found. |
| `formCompare` | Check list: one check per compared field, with a `tooltip` explaining the check |
| `fieldChecking[]` | Per field: `category`, the value you sent (`field`), the value read from the document (`extracted`), `equal` and `status` |

### Example

The personal number entered in the form was not found on the document, so the application was sent to review. The last name matched although the document prints it with a prefix.

```json theme={null}
{
  "profileCheck": {
    "serviceType": "profile-check",
    "verifier": "Profile-checker",
    "comment": "Found 1 issue(s).",
    "processingState": "done",
    "status": "needs-review",
    "formCompare": {
      "group": "formCompare",
      "description": "Comparison with profile (form) data",
      "tooltip": "GetID compares applicant data that was provided via API or collected via form with the data extracted from the document.",
      "considers": [
        { "id": "PC001", "name": "First name", "status": "approved", "type": "clear", "description": "Applicants First name matches the First name on the document." },
        { "id": "PC002", "name": "Last name", "status": "approved", "type": "clear", "description": "Applicants Last name matches the Last name on the document." },
        { "id": "PC004", "name": "Date of birth", "status": "approved", "type": "clear", "description": "Applicants Date of birth matches the Date of birth on the document." },
        { "id": "PC013", "name": "Personal number", "status": "needs-review", "type": "consider", "description": "Applicants Personal number does not match Personal number on the document." }
      ]
    },
    "fieldChecking": [
      { "category": "First name", "field": "Anna Maria", "extracted": "ANNA MARIA", "equal": true, "status": "approved" },
      { "category": "Last name", "field": "Berg", "extracted": "VAN DEN BERG", "equal": true, "status": "approved" },
      { "category": "Date of birth", "field": "1990-01-20", "extracted": "1990-01-20", "equal": true, "status": "approved" },
      { "category": "Personal number", "field": "123456789", "extracted": "", "equal": false, "status": "needs-review" }
    ]
  }
}
```

The same issues appear in `overallResult.concerns`: one summary concern for the service (`PC020`) and one per finding.

```json theme={null}
{
  "concerns": [
    { "id": "PC020", "message": "Found 1 issue(s).", "service": "profile-check", "status": "needs-review" },
    { "id": "PC013", "message": "Extracted personal number doesn't match data from the field: '123456789': ''", "service": "profile-check", "status": "needs-review" }
  ]
}
```

## Concerns

| Code | Message |
| - | - |
| `PC001` | Applicants First name does not match First name on the document. |
| `PC002` | Applicants Last name does not match Last name on the document. |
| `PC003` | First Name and Last Name in applicants profile swapped. |
| `PC004` | Applicants Date of birth does not match Date of birth on the document. |
| `PC005` | Applicants Issue country does not match Issue country on the document. |
| `PC006` | Applicants Document type does not match Document type on the document. |
| `PC007` | Applicants Date of issue does not match Date of issue on the document. |
| `PC008` | Applicants Date of expiry does not match Date of expiry on the document. |
| `PC009` | Applicants Nationality does not match Nationality on the document. |
| `PC010` | Applicants Nationality code does not match Nationality code on the document. |
| `PC011` | Applicants Gender does not match Gender on the document. |
| `PC012` | Applicants Document number does not match Document number on the document. |
| `PC013` | Applicants Personal number does not match Personal number on the document. |
| `PC014` | Applicants Place of birth does not match Place of birth on the document. |
| `PC015` | Applicants Place of issue does not match Place of issue on the document. |
| `PC016` | Country of residence: `${field}` does not match `${extracted}` detected by IP |
| `PC017` | City of residence: `${field}` does not match `${extracted}` detected by IP |
| `PC020` | Found `{count}` issue(s). Summary of the profile check findings. |
| `PC100` | Applicants `{name}` does not match `{name}` on the document. |

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

## Related

* [Document Check](https://docs.checkin.com/products/document-check.md)
* [Applicant data](https://docs.checkin.com/integrate/applicant-data.md)
* [VPN detection](https://docs.checkin.com/products/add-ons/vpn-detection.md)


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