Skip to main content
Sandbox payloads for the IDN Dukcapil Data Full 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. 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 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.
Request
Response — HTTP 200
Request
Response — HTTP 200

Rejected

A rejection is a completed verification, not an error. It returns HTTP 200 with verificationStatus set to REJECTED.
Request
Response — HTTP 200
selfieImagePercentage is below 70, so the result is REJECTED even though the identity details match.
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_full plan returns HTTP 403 — both enforced in sandbox exactly as in live. See Sandbox introduction for their envelopes.