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

# Applicant data and metadata

> Link applications to your records, prefill data and restrict accepted documents.

Connect verifications to your own records and give Checkin.com the data you already know about the applicant.

## External ID

Set `metadata.externalId` to your own identifier to link the application to your systems. No checks are performed on it, so it can be reused across verifications.

```json theme={null}
{ "metadata": { "externalId": "customer-123" } }
```

## Labels

`metadata.labels` takes key-value pairs. Both must be strings. Maximum 30 labels. Labels are returned in the application's `metadata`.

```json theme={null}
{
  "metadata": {
    "externalId": "customer-123",
    "labels": { "journey": "account-opening" }
  }
}
```

## Profile data

Profile data you already have is cross-checked against the data extracted from the document. In the mobile SDKs it also prefills the form if the flow has a Profile Data step; the applicant can edit it.

See [Profile comparison](https://docs.checkin.com/products/profile-comparison.md).

The format depends on the integration:

```javascript Web SDK theme={null}
profile: [
  { category: 'First name', value: 'Alex' },
  { category: 'Last name', value: 'Example' },
  { category: 'Date of birth', value: '1990-01-20' },
]
```

```swift iOS theme={null}
profileData: .init([
  "first-name": "Alex",
  "last-name": "Example"
])
```

```kotlin Android theme={null}
profileData = mapOf(
  "first-name" to "Alex",
  "last-name" to "Example"
)
```

```json Verification link theme={null}
"profile": {
  "First name": "Alex",
  "Last name": "Example",
  "Date of birth": "1990-01-20"
}
```

```json API theme={null}
"application": {
  "fields": [
    { "category": "First name", "content": "Alex" },
    { "category": "Last name", "content": "Example" }
  ]
}
```

Field formats (from the API): dates `YYYY-MM-DD`, gender `male` or `female`, countries ISO 3166-1 alpha-3, other fields plain strings. The Web SDK `category` must match the extracted field name.

Common categories include `First name`, `Last name`, `Date of birth`, `Address`, `Postcode` and `Account number`. In the API, each field can also carry `contentType` (for example `string`).

## Address

For [Proof of Address](https://docs.checkin.com/products/proof-of-address.md), pass the address the document should show. It is compared with the address read from the document.

```javascript Web SDK theme={null}
address: {
  country: 'EST',
  city: 'Tallinn',
  addressLine: 'Harju 1',
  postcode: '10123',
}
```

```swift iOS theme={null}
address: GetIDAddress(
  country: "EST",
  city: "Tallinn",
  postcode: "10123",
  addressLine: "Harju 1",
  streetName: nil,
  houseNumber: nil
)
```

```kotlin Android theme={null}
address = Address(
    country = "EST",
    city = "Tallinn",
    addressLine = "Harju 1",
    postcode = "10123"
)
```

```json API theme={null}
"application": {
  "fields": [
    { "category": "First name", "content": "Alex", "contentType": "string" },
    { "category": "Last name", "content": "Example", "contentType": "string" },
    { "category": "Address", "content": "Harju 1", "contentType": "string" },
    { "category": "Postcode", "content": "10123", "contentType": "string" }
  ]
}
```

`country` is ISO 3166-1 alpha-3. In the API, send the street address in `Address` and the postcode in a separate `Postcode` field, together with the applicant's name, because Proof of Address checks all three.

## Accepted documents per session

The flow defines the default accepted documents, set in the Backoffice under Flows → \[flow name] → Acceptable ID docs. `acceptableDocuments` narrows them for one session, for example to accept only certain countries or document types.

See [Supported documents](https://docs.checkin.com/products/supported-documents.md).

This example accepts only a passport or an ID card from Estonia:

```javascript Web SDK theme={null}
acceptableDocuments: () => [
  { country: 'EST', documentTypes: ['passport', 'id-card'] },
]
```

```swift iOS theme={null}
acceptableDocuments: .init([
  "EST": [.passport, .idCard]
])
```

```kotlin Android theme={null}
acceptableDocuments = mapOf(
    "EST" to listOf(DocumentEnum.PASSPORT, DocumentEnum.ID_CARD)
)
```

Countries are ISO 3166-1 alpha-3 codes. `acceptableDocuments` can only narrow what the flow accepts; it can't add documents or countries the flow doesn't allow.

See [Document Check](https://docs.checkin.com/products/document-check.md#accepted-documents) for the document types.


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