Skip to main content
Sandbox payloads for the IDN Dukcapil Data endpoint.
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. createdAt is generated per request, and trustFlowId, trustValidationId and metadata are echoed back from your request and trust validation. See Sandbox introduction for the shared sandbox rules.

Verified

A false in nik, name or dateOfBirth gives REJECTED, and a false in any other field gives REVIEW_NEEDED. 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.
Request
Response — HTTP 200
Request
Response — HTTP 200

Review needed

Request
Response — HTTP 200
The identity matches, but noKk is false. A mismatch in any field other than nik, name or dateOfBirth needs manual review instead of a rejection.
Request
Response — HTTP 200
The identity matches, but gender and province are false, so the result needs manual review.

Rejected

A rejection is a completed verification, not an error. It returns HTTP 200 with verificationStatus set to REJECTED.
Request
Response — HTTP 200
name is false. A mismatch in nik, name or dateOfBirth always gives REJECTED.
Request
Response — HTTP 200
dateOfBirth is false. A mismatch in nik, name or dateOfBirth always gives REJECTED.
Request
Response — HTTP 200
The NIK is not in the Dukcapil population database. errorMessage is Dukcapil’s own text, in Indonesian, and every field except nik is null.
Request
Response — HTTP 200
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.
Request
Response — HTTP 400
Request
Response — HTTP 404
trustValidationId must belong to your company. Create a trust validation first, then use its ID.

Source unavailable

Request
Response — HTTP 503
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 plan returns HTTP 403 — both enforced in sandbox exactly as in live. See Sandbox introduction for their envelopes.