Skip to main content
Sandbox payloads for the Stateless Dukcapil Data endpoint.
When your account is in sandbox mode, these payloads return the outcomes shown below. Any other valid payload is answered as a no-match — HTTP 200 with isValid set to false. Values are case-sensitive. transactionId and createdAt are generated per request, and metadata is echoed back from your request. See Sandbox introduction for the full matching rules.
Send only the keys shown in each request. Matching is exact on the key set, so adding an optional field such as gender or address to a documented payload turns it into a no-match.

Verified

Request
Response — HTTP 200
Request
Response — HTTP 200
Optional fields are checked against the Dukcapil record but are not echoed in the response. Send them exactly as shown — this payload only matches with both placeOfBirth and gender present.

Review needed

Request
Response — HTTP 200
NIK, name and date of birth matched, but an optional field you sent (here noKk) did not. isValid is false because only VERIFIED counts as valid — branch on verificationStatus to route these to manual review.

Rejected

A rejection is a completed verification, not an error: success is true and HTTP status is 200. In live mode a rejection is billed.
Request
Response — HTTP 200
Request
Response — HTTP 200
Request
Response — HTTP 200
This NIK matches no documented scenario, so it takes the no-match fallback. Worth firing once to confirm that an unknown NIK never reaches live Dukcapil.

Validation failures

All validation failures return HTTP 400 with code set to VALIDATION_FAILED and the same message; only errors differs. Validation runs before any fixture matching, so these behave identically in sandbox and live. transactionId is null and no transaction row is written.
Request
Response — HTTP 400
Request
Response — HTTP 400
Request
Response — HTTP 400
Request
Response — HTTP 400
Request
Response — HTTP 400
trustFlowId and trustValidationId are prohibited on stateless endpoints. Sending either is a validation failure, not a silently ignored field.

Source unavailable

Request
Response — HTTP 500
There is no data key at all. Branch on code, not on the presence of data. In live mode this failure is not billed.

Account-level responses

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.