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.
VERIFIED — Sample 1: All details match
VERIFIED — Sample 1: All details match
RequestResponse — HTTP
200VERIFIED — Sample 2: Family card and mother's maiden name also match
VERIFIED — Sample 2: Family card and mother's maiden name also match
RequestResponse — HTTP
200Rejected
A rejection is a completed verification, not an error. It returns HTTP200 with verificationStatus set to REJECTED.
REJECTED — Face does not match
REJECTED — Face does not match
RequestResponse — HTTP
200selfieImagePercentage is below 70, so the result is REJECTED even though the identity details match.REJECTED — Name does not match
REJECTED — Name does not match
RequestResponse — HTTP
200name is false. A mismatch in nik, name or dateOfBirth always gives REJECTED.REJECTED — Date of birth does not match
REJECTED — Date of birth does not match
RequestResponse — HTTP
200dateOfBirth is false. A mismatch in nik, name or dateOfBirth always gives REJECTED.REJECTED — NIK not found
REJECTED — NIK not found
RequestResponse — HTTP The NIK is not in the Dukcapil population database.
200errorMessage is Dukcapil’s own text, in Indonesian, and every field except nik is null.REJECTED — NIK not on this page
REJECTED — NIK not on this page
RequestResponse — HTTP Any
200nik 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 HTTP400, and message is the first validation error.
Validation failed — Required fields missing
Validation failed — Required fields missing
RequestResponse — HTTP
400Not found — Trust validation does not exist
Not found — Trust validation does not exist
RequestResponse — HTTP
404trustValidationId must belong to your company. Create a trust validation first, then use its ID.Source unavailable
Account-level responses
Two further responses are not specific to this endpoint. A missing or invalidAuthorization 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.
