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

# Indonesia Dukcapil Data Facematch sandbox

> Predetermined API payloads to retrieve every Indonesia Dukcapil Data Facematch status in sandbox mode.

Sandbox payloads for the [IDN Dukcapil Data Facematch](https://docs.idmetagroup.com/api-reference/government-data/indonesia/dukcapil-data-facematch.md) endpoint.

```http theme={null}
POST /api/v3/verifications/indonesia/dukcapil-facematch
```

When your account is in sandbox mode, these payloads return the outcomes shown below. No credit is reserved or charged.

Only `nik` selects the scenario. Every other field is still validated, so send all required fields, but their values do not change the outcome. `selfie_image` must be a valid image, but any image works. `createdAt` is generated per request, and `trustFlowId`, `trustValidationId` and `metadata` are echoed back from your request and trust validation.

See [Sandbox introduction](https://docs.idmetagroup.com/api-reference/sandbox.md) for the shared sandbox rules.

### Verified

`verificationStatus` is `VERIFIED` only when `selfieImagePercentage` is `70` or higher and none of `nik`, `name` and `dateOfBirth` is `false`.

`isValid` in `data` shows whether the Dukcapil call itself succeeded, not whether the person was verified, so it is `true` for rejected results too. Use `verificationStatus` to decide the outcome.

> [accordion] VERIFIED — Sample 1: All details match
>
> **Request**
>
> ```json theme={null}
> {
>   "trustFlowId": "<your trust flow id>",
>   "trustValidationId": "<your trust validation id>",
>   "nik": "3171010101900001",
>   "name": "BUDI SANTOSO",
>   "date_of_birth": "1990-01-01",
>   "selfie_image": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNkYAAAAAYAAjCB0C8AAAAASUVORK5CYII="
> }
> ```
>
> **Response** — HTTP `200`
>
> ```json theme={null}
> {
>   "success": true,
>   "message": "Indonesia Dukcapil Facematch processed successfully",
>   "data": {
>     "isValid": true,
>     "success": true,
>     "message": "Berhasil",
>     "data": {
>       "nik": true,
>       "name": true,
>       "dateOfBirth": true,
>       "selfieImagePercentage": "92.50",
>       "livenessResult": null,
>       "livenessFailMessage": "",
>       "noKk": null,
>       "motherMaidenName": null,
>       "placeOfBirth": true,
>       "address": false,
>       "gender": true,
>       "maritalStatus": true,
>       "jobType": true,
>       "province": false,
>       "city": false,
>       "district": false,
>       "subdistrict": false,
>       "rt": false,
>       "rw": false,
>       "uuid": "c3f2e4a6-8d0b-4c3d-9e5f-4a7b9c1d3e01",
>       "url": "",
>       "reasonCode": "1",
>       "errorMessage": null
>     }
>   },
>   "verificationStatus": "VERIFIED",
>   "verificationStatusCode": 3,
>   "trustFlowId": "<your trust flow id>",
>   "trustValidationId": "<your trust validation id>",
>   "verificationType": "dukcapil_facematch",
>   "metadata": null,
>   "createdAt": "<UTC timestamp of the request>"
> }
> ```

> [accordion] VERIFIED — Sample 2: Family card and mother's maiden name also match
>
> **Request**
>
> ```json theme={null}
> {
>   "trustFlowId": "<your trust flow id>",
>   "trustValidationId": "<your trust validation id>",
>   "nik": "3171010101900004",
>   "name": "BUDI SANTOSO",
>   "date_of_birth": "1990-01-01",
>   "selfie_image": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNkYAAAAAYAAjCB0C8AAAAASUVORK5CYII="
> }
> ```
>
> **Response** — HTTP `200`
>
> ```json theme={null}
> {
>   "success": true,
>   "message": "Indonesia Dukcapil Facematch processed successfully",
>   "data": {
>     "isValid": true,
>     "success": true,
>     "message": "Berhasil",
>     "data": {
>       "nik": true,
>       "name": true,
>       "dateOfBirth": true,
>       "selfieImagePercentage": "88.30",
>       "livenessResult": null,
>       "livenessFailMessage": "",
>       "noKk": true,
>       "motherMaidenName": true,
>       "placeOfBirth": true,
>       "address": false,
>       "gender": true,
>       "maritalStatus": true,
>       "jobType": true,
>       "province": false,
>       "city": false,
>       "district": false,
>       "subdistrict": false,
>       "rt": false,
>       "rw": false,
>       "uuid": "c3f2e4a6-8d0b-4c3d-9e5f-4a7b9c1d3e04",
>       "url": "",
>       "reasonCode": "1",
>       "errorMessage": null
>     }
>   },
>   "verificationStatus": "VERIFIED",
>   "verificationStatusCode": 3,
>   "trustFlowId": "<your trust flow id>",
>   "trustValidationId": "<your trust validation id>",
>   "verificationType": "dukcapil_facematch",
>   "metadata": null,
>   "createdAt": "<UTC timestamp of the request>"
> }
> ```

### Rejected

A rejection is a completed verification, not an error. It returns HTTP `200` with `verificationStatus` set to `REJECTED`.

> [accordion] REJECTED — Face does not match
>
> **Request**
>
> ```json theme={null}
> {
>   "trustFlowId": "<your trust flow id>",
>   "trustValidationId": "<your trust validation id>",
>   "nik": "3171010101900002",
>   "name": "BUDI SANTOSO",
>   "date_of_birth": "1990-01-01",
>   "selfie_image": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNkYAAAAAYAAjCB0C8AAAAASUVORK5CYII="
> }
> ```
>
> **Response** — HTTP `200`
>
> ```json theme={null}
> {
>   "success": true,
>   "message": "Indonesia Dukcapil Facematch processed successfully",
>   "data": {
>     "isValid": true,
>     "success": true,
>     "message": "Berhasil",
>     "data": {
>       "nik": true,
>       "name": true,
>       "dateOfBirth": true,
>       "selfieImagePercentage": "11.22",
>       "livenessResult": null,
>       "livenessFailMessage": "",
>       "noKk": null,
>       "motherMaidenName": null,
>       "placeOfBirth": true,
>       "address": false,
>       "gender": true,
>       "maritalStatus": true,
>       "jobType": true,
>       "province": false,
>       "city": false,
>       "district": false,
>       "subdistrict": false,
>       "rt": false,
>       "rw": false,
>       "uuid": "c3f2e4a6-8d0b-4c3d-9e5f-4a7b9c1d3e02",
>       "url": "",
>       "reasonCode": "1",
>       "errorMessage": null
>     }
>   },
>   "verificationStatus": "REJECTED",
>   "verificationStatusCode": 1,
>   "trustFlowId": "<your trust flow id>",
>   "trustValidationId": "<your trust validation id>",
>   "verificationType": "dukcapil_facematch",
>   "metadata": null,
>   "createdAt": "<UTC timestamp of the request>"
> }
> ```
>
> `selfieImagePercentage` is below `70`, so the result is `REJECTED` even though the identity details match.

> [accordion] REJECTED — Name does not match
>
> **Request**
>
> ```json theme={null}
> {
>   "trustFlowId": "<your trust flow id>",
>   "trustValidationId": "<your trust validation id>",
>   "nik": "3171010101900003",
>   "name": "BUDI SANTOSO",
>   "date_of_birth": "1990-01-01",
>   "selfie_image": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNkYAAAAAYAAjCB0C8AAAAASUVORK5CYII="
> }
> ```
>
> **Response** — HTTP `200`
>
> ```json theme={null}
> {
>   "success": true,
>   "message": "Indonesia Dukcapil Facematch processed successfully",
>   "data": {
>     "isValid": true,
>     "success": true,
>     "message": "Berhasil",
>     "data": {
>       "nik": true,
>       "name": false,
>       "dateOfBirth": true,
>       "selfieImagePercentage": "90.00",
>       "livenessResult": null,
>       "livenessFailMessage": "",
>       "noKk": null,
>       "motherMaidenName": null,
>       "placeOfBirth": true,
>       "address": false,
>       "gender": true,
>       "maritalStatus": true,
>       "jobType": true,
>       "province": false,
>       "city": false,
>       "district": false,
>       "subdistrict": false,
>       "rt": false,
>       "rw": false,
>       "uuid": "c3f2e4a6-8d0b-4c3d-9e5f-4a7b9c1d3e03",
>       "url": "",
>       "reasonCode": "1",
>       "errorMessage": null
>     }
>   },
>   "verificationStatus": "REJECTED",
>   "verificationStatusCode": 1,
>   "trustFlowId": "<your trust flow id>",
>   "trustValidationId": "<your trust validation id>",
>   "verificationType": "dukcapil_facematch",
>   "metadata": null,
>   "createdAt": "<UTC timestamp of the request>"
> }
> ```
>
> `name` is `false`. A mismatch in `nik`, `name` or `dateOfBirth` always gives `REJECTED`.

> [accordion] REJECTED — Date of birth does not match
>
> **Request**
>
> ```json theme={null}
> {
>   "trustFlowId": "<your trust flow id>",
>   "trustValidationId": "<your trust validation id>",
>   "nik": "3171010101900005",
>   "name": "BUDI SANTOSO",
>   "date_of_birth": "1990-01-01",
>   "selfie_image": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNkYAAAAAYAAjCB0C8AAAAASUVORK5CYII="
> }
> ```
>
> **Response** — HTTP `200`
>
> ```json theme={null}
> {
>   "success": true,
>   "message": "Indonesia Dukcapil Facematch processed successfully",
>   "data": {
>     "isValid": true,
>     "success": true,
>     "message": "Berhasil",
>     "data": {
>       "nik": true,
>       "name": true,
>       "dateOfBirth": false,
>       "selfieImagePercentage": "89.60",
>       "livenessResult": null,
>       "livenessFailMessage": "",
>       "noKk": null,
>       "motherMaidenName": null,
>       "placeOfBirth": true,
>       "address": false,
>       "gender": true,
>       "maritalStatus": true,
>       "jobType": true,
>       "province": false,
>       "city": false,
>       "district": false,
>       "subdistrict": false,
>       "rt": false,
>       "rw": false,
>       "uuid": "c3f2e4a6-8d0b-4c3d-9e5f-4a7b9c1d3e05",
>       "url": "",
>       "reasonCode": "1",
>       "errorMessage": null
>     }
>   },
>   "verificationStatus": "REJECTED",
>   "verificationStatusCode": 1,
>   "trustFlowId": "<your trust flow id>",
>   "trustValidationId": "<your trust validation id>",
>   "verificationType": "dukcapil_facematch",
>   "metadata": null,
>   "createdAt": "<UTC timestamp of the request>"
> }
> ```
>
> `dateOfBirth` is `false`. A mismatch in `nik`, `name` or `dateOfBirth` always gives `REJECTED`.

> [accordion] REJECTED — Name, date of birth and face do not match
>
> **Request**
>
> ```json theme={null}
> {
>   "trustFlowId": "<your trust flow id>",
>   "trustValidationId": "<your trust validation id>",
>   "nik": "3171010101900006",
>   "name": "BUDI SANTOSO",
>   "date_of_birth": "1990-01-01",
>   "selfie_image": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNkYAAAAAYAAjCB0C8AAAAASUVORK5CYII="
> }
> ```
>
> **Response** — HTTP `200`
>
> ```json theme={null}
> {
>   "success": true,
>   "message": "Indonesia Dukcapil Facematch processed successfully",
>   "data": {
>     "isValid": true,
>     "success": true,
>     "message": "Berhasil",
>     "data": {
>       "nik": true,
>       "name": false,
>       "dateOfBirth": false,
>       "selfieImagePercentage": "11.22",
>       "livenessResult": null,
>       "livenessFailMessage": "",
>       "noKk": null,
>       "motherMaidenName": null,
>       "placeOfBirth": true,
>       "address": false,
>       "gender": true,
>       "maritalStatus": true,
>       "jobType": true,
>       "province": false,
>       "city": false,
>       "district": false,
>       "subdistrict": false,
>       "rt": false,
>       "rw": false,
>       "uuid": "c3f2e4a6-8d0b-4c3d-9e5f-4a7b9c1d3e06",
>       "url": "",
>       "reasonCode": "1",
>       "errorMessage": null
>     }
>   },
>   "verificationStatus": "REJECTED",
>   "verificationStatusCode": 1,
>   "trustFlowId": "<your trust flow id>",
>   "trustValidationId": "<your trust validation id>",
>   "verificationType": "dukcapil_facematch",
>   "metadata": null,
>   "createdAt": "<UTC timestamp of the request>"
> }
> ```
>
> `name` and `dateOfBirth` are `false` and `selfieImagePercentage` is below `70`.

> [accordion] REJECTED — NIK not found
>
> **Request**
>
> ```json theme={null}
> {
>   "trustFlowId": "<your trust flow id>",
>   "trustValidationId": "<your trust validation id>",
>   "nik": "3171010101900000",
>   "name": "BUDI SANTOSO",
>   "date_of_birth": "1990-01-01",
>   "selfie_image": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNkYAAAAAYAAjCB0C8AAAAASUVORK5CYII="
> }
> ```
>
> **Response** — HTTP `200`
>
> ```json theme={null}
> {
>   "success": true,
>   "message": "Indonesia Dukcapil Facematch processed successfully",
>   "data": {
>     "isValid": true,
>     "success": true,
>     "message": "Berhasil",
>     "data": {
>       "nik": false,
>       "name": null,
>       "dateOfBirth": null,
>       "selfieImagePercentage": null,
>       "livenessResult": null,
>       "livenessFailMessage": "",
>       "noKk": null,
>       "motherMaidenName": null,
>       "placeOfBirth": null,
>       "address": null,
>       "gender": null,
>       "maritalStatus": null,
>       "jobType": null,
>       "province": null,
>       "city": null,
>       "district": null,
>       "subdistrict": null,
>       "rt": null,
>       "rw": null,
>       "uuid": "c3f2e4a6-8d0b-4c3d-9e5f-4a7b9c1d3e00",
>       "url": "",
>       "reasonCode": "1",
>       "errorMessage": "Data Tidak Ditemukan, NIK tidak terdapat di database Kependudukan"
>     }
>   },
>   "verificationStatus": "REJECTED",
>   "verificationStatusCode": 1,
>   "trustFlowId": "<your trust flow id>",
>   "trustValidationId": "<your trust validation id>",
>   "verificationType": "dukcapil_facematch",
>   "metadata": null,
>   "createdAt": "<UTC timestamp of the request>"
> }
> ```
>
> The NIK is not in the Dukcapil population database. `errorMessage` is Dukcapil's own text, in Indonesian, and every field except `nik` is `null`.

> [accordion] REJECTED — NIK not on this page
>
> **Request**
>
> ```json theme={null}
> {
>   "trustFlowId": "<your trust flow id>",
>   "trustValidationId": "<your trust validation id>",
>   "nik": "3171010101999999",
>   "name": "BUDI SANTOSO",
>   "date_of_birth": "1990-01-01",
>   "selfie_image": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNkYAAAAAYAAjCB0C8AAAAASUVORK5CYII="
> }
> ```
>
> **Response** — HTTP `200`
>
> ```json theme={null}
> {
>   "success": true,
>   "message": "Indonesia Dukcapil Facematch processed successfully",
>   "data": {
>     "isValid": true,
>     "success": true,
>     "message": "Berhasil",
>     "data": {
>       "nik": false,
>       "name": null,
>       "dateOfBirth": null,
>       "selfieImagePercentage": null,
>       "livenessResult": null,
>       "livenessFailMessage": "",
>       "noKk": null,
>       "motherMaidenName": null,
>       "placeOfBirth": null,
>       "address": null,
>       "gender": null,
>       "maritalStatus": null,
>       "jobType": null,
>       "province": null,
>       "city": null,
>       "district": null,
>       "subdistrict": null,
>       "rt": null,
>       "rw": null,
>       "uuid": null,
>       "url": "",
>       "reasonCode": "1",
>       "errorMessage": "Data Tidak Ditemukan, NIK tidak terdapat di database Kependudukan"
>     }
>   },
>   "verificationStatus": "REJECTED",
>   "verificationStatusCode": 1,
>   "trustFlowId": "<your trust flow id>",
>   "trustValidationId": "<your trust validation id>",
>   "verificationType": "dukcapil_facematch",
>   "metadata": null,
>   "createdAt": "<UTC timestamp of the request>"
> }
> ```
>
> Any `nik` that is not listed on this page returns this same response, so `3171010101999999` is only an example. It matches what live returns for a NIK that Dukcapil has no record of.

### Validation failures

Validation runs before any fixture matching, so these behave identically in sandbox and live. They return HTTP `400`, and `message` is the first validation error.

> [accordion] Validation failed — Required fields missing
>
> **Request**
>
> ```json theme={null}
> {
>   "trustFlowId": "<your trust flow id>",
>   "trustValidationId": "<your trust validation id>"
> }
> ```
>
> **Response** — HTTP `400`
>
> ```json theme={null}
> {
>   "success": false,
>   "message": "The nik field is required.",
>   "errors": {
>     "nik": ["The nik field is required."],
>     "name": ["The name field is required."],
>     "date_of_birth": ["The date of birth field is required."],
>     "selfie_image": ["The selfie image field is required."]
>   },
>   "createdAt": "<UTC timestamp of the request>"
> }
> ```

> [accordion] Not found — Trust validation does not exist
>
> **Request**
>
> ```json theme={null}
> {
>   "trustFlowId": "<your trust flow id>",
>   "trustValidationId": "does-not-exist",
>   "nik": "3171010101900001",
>   "name": "BUDI SANTOSO",
>   "date_of_birth": "1990-01-01",
>   "selfie_image": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNkYAAAAAYAAjCB0C8AAAAASUVORK5CYII="
> }
> ```
>
> **Response** — HTTP `404`
>
> ```json theme={null}
> {
>   "success": false,
>   "message": "Trust Validation Not Found",
>   "errors": {
>     "trustValidation": "Trust Validation Not Found"
>   },
>   "createdAt": "<UTC timestamp of the request>"
> }
> ```
>
> `trustValidationId` must belong to your company. Create a trust validation first, then use its ID.

### Source unavailable

> [accordion] Error — Data Source Unavailable
>
> **Request**
>
> ```json theme={null}
> {
>   "trustFlowId": "<your trust flow id>",
>   "trustValidationId": "<your trust validation id>",
>   "nik": "3171010101900009",
>   "name": "BUDI SANTOSO",
>   "date_of_birth": "1990-01-01",
>   "selfie_image": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNkYAAAAAYAAjCB0C8AAAAASUVORK5CYII="
> }
> ```
>
> **Response** — HTTP `503`
>
> ```json theme={null}
> {
>   "success": false,
>   "message": "Dukcapil API call failed",
>   "createdAt": "<UTC timestamp of the request>"
> }
> ```
>
> There is no `data`, `verificationStatus` or `trustValidationId` in this response. In live, the HTTP status is the one Dukcapil returned. Treat it as a temporary failure and retry later. No credit is charged in live mode.

### Account-level responses

Two further responses are not specific to this endpoint. A missing or invalid `Authorization` header returns HTTP `401`, and an account without the `dukcapil_facematch` plan returns HTTP `403` — both enforced in sandbox exactly as in live. See [Sandbox introduction](https://docs.idmetagroup.com/api-reference/sandbox.md#non-verification-responses) for their envelopes.


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