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
Afalse 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.
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
200Review needed
REVIEW_NEEDED — Family card number does not match
REVIEW_NEEDED — Family card number does not match
RequestResponse — HTTP The identity matches, but
200noKk is false. A mismatch in any field other than nik, name or dateOfBirth needs manual review instead of a rejection.REVIEW_NEEDED — Gender and province do not match
REVIEW_NEEDED — Gender and province do not match
RequestResponse — HTTP The identity matches, but
200gender and province are false, so the result needs manual review.Rejected
A rejection is a completed verification, not an error. It returns HTTP200 with verificationStatus set to REJECTED.
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 plan returns HTTP 403 — both enforced in sandbox exactly as in live. See Sandbox introduction for their envelopes.
