> 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/smart-kyc-fraud-api/mock-data-for-testing/demographic-verification.md).

# Demographic Verification

The Demographic Verification score depends on the provided NIK, full name and DOB.

### Incase of Success

| NIK Number       | UserName | DOB                                |
| ---------------- | -------- | ---------------------------------- |
| 3511000101806300 | UserGDAA | <p>YYYY-MM-DD</p><p>1980-01-01</p> |
| 3511000101806301 | UserGDAB | <p>YYYY-MM-DD</p><p>1980-01-01</p> |

### Invalid Full Name

<table><thead><tr><th>NIK Number</th><th>UserName</th><th>DOB</th><th data-hidden>Error code</th></tr></thead><tbody><tr><td>3511000101806300</td><td>UserGDP</td><td><p>YYYY-MM-DD</p><p>1980-01-01</p></td><td>4008</td></tr><tr><td>3511000101806301</td><td>User</td><td><p>YYYY-MM-DD</p><p>1980-01-01</p></td><td>4008</td></tr></tbody></table>

### Invalid Date of Birth

Change the date of birth in any of the above sets also to test the invalid date of the birth error.

<table><thead><tr><th>NIK Number</th><th>UserName</th><th>DOB</th><th data-hidden>Error code</th></tr></thead><tbody><tr><td>3511000101806300</td><td>UserGDAA</td><td><p>YYYY-MM-DD</p><p>1992-05-2</p></td><td><p></p><p>4008</p></td></tr><tr><td>3511000101806301</td><td>UserGDAB</td><td><p>YYYY-MM-DD</p><p>1992-05-21</p></td><td>4008</td></tr></tbody></table>

## Mock data for extended-demographic parameters

{% hint style="info" %}
To get full detail of possible enumerations of Extended demographic parameters, please contact VIDA solution team.
{% endhint %}

To test the extended-demographic parameters, use the mock data as provided in the table.&#x20;

### Mother's maiden name, Address, Area, and Place of Birth

The last 4 characters of the provided mock data are variables and depends upon the last 4 digits of the provided NIK number. Each number 0-9 will map to a character A-J. Example: 0000 is AAAA and 0123 is ABCD.

In case of the last 4 digit of NIK is 7001

* Mother's maiden name format will be `IBUHAAB`
* Place of Birth format will be `KotaHAAB`&#x20;
* Address format will be `AddrHAAB`&#x20;
* Area format will be
  * Province (Provinsi): `ProvHAAB`
  * City (Kota/Kabupaten): `CityHAAB`
  * District (Kecamatan): `DistHAAB`
  * Village (Desa/Kelurahan): `VilHAAB`

### Family Card Number

The family card mock value in Sandbox is equal to provided `govId`

### Marital Status, Gender, and Occupation

Marital status, gender, and occupation are verified against a list of predefined enumeration, based on authoritative sources' possible values.

In sandbox, if the request field is equal to any of the listed enumeration below, then that parameter verification will be accepted.

In production, the requested field will be checked against actual user data. The possible enumerations remains the same with sandbox.

<table><thead><tr><th width="211.33334350585938">Parameter</th><th>Enumeration</th></tr></thead><tbody><tr><td><strong>Gender</strong></td><td>LAKI-LAKI</td></tr><tr><td></td><td>PEREMPUAN</td></tr><tr><td><strong>Marital Status</strong></td><td>BELUM KAWIN</td></tr><tr><td></td><td>KAWIN</td></tr><tr><td></td><td>CERAI HIDUP</td></tr><tr><td></td><td>CERAI MATI</td></tr><tr><td><strong>Occupation</strong></td><td><em>Please ask the full list to VIDA solution team</em></td></tr></tbody></table>

### DOB

From the mock NIK : `5th` and `6th` digit indicated birth year.&#x20;

* If 5 and 6 th digits are `00` : thenDOB year should be less than `2000`
* If 5 and 6 th digits are 01 : thenDOB year should be greater than 2000

For example : `3511001305248001` : DOB will be 13-05-`1924`\
For example : `3511011305248001` : DOB will be 13-05-`2024`

### Area Code

When an extended demographic check for Area Code is configured (Village No., District No. City No., Province No.), the digit inside the NIK acts as the reference Area Code to compare with the API response.

For any given mock NIK, each group of digits represents a specific personal identifier. The breakdown is as follows:

* **First and second digits (1–2)**: Indicate the `Province Code`.
* **Third and fourth digits (3–4)**: Indicate the `City Code`.
* **Fifth and sixth digits (5–6)**: Indicate the `District Code`.
  * This digit also impacts the mock user century of birth in DOB, where `00` equals to born year of 1900s, and `01` indicates born year of 2000s
* **Last four digits**: Indicate the `Village Code`.
  * Last four digit also impact the mock user full name

{% hint style="info" %}
For integration purpose, please request the full list of Area Code & area name to VIDA solution team.
{% endhint %}

### Putting all together..

Below are the possible extended demographic check sample that can be verified with VIDA, and its sample value given a certain government ID number.

<table><thead><tr><th width="326.64453125">Parameter</th><th>Mock Value</th></tr></thead><tbody><tr><td><em><strong>Mandatory Check</strong></em></td><td></td></tr><tr><td><strong>govId</strong></td><td><strong>3511011305107001</strong></td></tr><tr><td><strong>fullName</strong></td><td>UserHAAB</td></tr><tr><td><strong>dob</strong></td><td><code>13/05/2010</code></td></tr><tr><td><strong>selfiePhoto</strong></td><td><em>As provided in base64, photo will match as long as liveness is passed</em></td></tr><tr><td><em><strong>Extended Demographic Check</strong></em></td><td></td></tr><tr><td><strong>pob</strong></td><td>KotaHAAB</td></tr><tr><td><strong>gender</strong></td><td>LAKI-LAKI</td></tr><tr><td><strong>maritalStatus</strong></td><td>KAWIN</td></tr><tr><td><strong>motherMaidenName</strong></td><td>IBUHAAB</td></tr><tr><td><strong>address</strong></td><td>AddrHAAB</td></tr><tr><td><strong>familyCardNo</strong></td><td>3511011305107001 (Same as govId)</td></tr><tr><td><strong>provinceCode</strong></td><td>35</td></tr><tr><td><strong>province</strong></td><td>ProvHAAB</td></tr><tr><td><strong>cityCode</strong></td><td>11</td></tr><tr><td><strong>city</strong></td><td>CityHAAB</td></tr><tr><td><strong>districtCode</strong></td><td>01</td></tr><tr><td><strong>district</strong></td><td>DistHAAB</td></tr><tr><td><strong>villageCode</strong></td><td>7001</td></tr><tr><td><strong>village</strong></td><td>VilHAAB</td></tr></tbody></table>
