API Request & Response
The ID Verification service validate the personal identity of your user in a quick and efficient way to protect your business from potential fraud. We provide you a simple API that can be quickly tested and integrated. Please check the details below on the components of our API.
Endpoint
| Method | Endpoint |
|---|---|
| POST | https://api.verihubs.com/data-verification/id-verification/verify |
Headers
| Key | Type | Description |
|---|---|---|
| App-ID | String | This is the Application ID that you can generate in the Application Menu in Verihubs Client Dashboard . |
| API-Key | String | API-Key that generated in the Application Menu in Verihubs Client Dashboard that paired to a specific Application ID. |
🎈Request
Request Parameter
| Parameter | Type | Description | Validation | Example |
|---|---|---|---|---|
| nik | String | 16 digits of Nomor Induk Kependudukan as stated on the KTP. | Must be 16 exact digit. | 9171022512990011 |
| name | String | Full name as stated on the KTP. | Must be alphabet. | John Doe |
| birth_date | String | Birth date in DD-MM-YYYY format as stated on the KTP. | Must be in DD-MM-YYYY format. | 01-01-1901 |
| reference_id | String | This reference_id can be used to indicate your company’s transaction and must be unique. If the reference_id is not inputted, then Verihubs will generate one for you | N/A | ID_CHECK_123 |
Response
HTTP Code
| HTTP Code | Description | Response |
|---|---|---|
| 200 | Successful Transaction; Transaction where the data inputted had been successfully verified by the Authoritative Partner and the response has been returned by Verihubs to client. | |
| 400 | Invalid Payload | |
| 401 | Authorization Failed; Unauthorized transaction due to Application ID and/or API-Key issue. If this error appear, please check the possible reason below:
| |
| 403 |
This condition only applies in Testing Mode. | |
| 429 | Too Many Request; Spam Error as the transaction is read as spam, please wait 10 seconds before re-performing the hit process with the same identity. | |
| 500 | Internal Server Error; The transaction failed due to an unexpected error. An message will appear explaining the error with following possible reason:
| |
Response Parameter
| Parameter | Type | Description | Example |
|---|---|---|---|
| message | string | The message of your transaction. | ID Check verification has been done |
| data.id | string | Verihubs auto generated Transaction ID. Consist of 36 digit UUID (32 digit exclude stripes). | e3c0326e-23f7-49d0-8876-71528a860a0c |
| data.nik | boolean | The verification result of your NIK. | true |
| data.name | boolean | The verification result of your name. | true |
| data.birth_date | boolean | The verification result of your date of birth. | true |
| data.reference_id | boolean | Client inputted unique ID. If you did not input any, Verihubs will auto generate the ID. | f3c0326e-23f7-49d0-8876-71528a860a0d |
Response Case Example
| Case | Description | Response |
|---|---|---|
| Verified | All data inputted (NIK, Name, Date of Birth) verified. | |
| NIK Not Found | NIK inputted not found in the government database. | |
| Name Not Match | Name inputted did not match the name recorded in the government database. | |
| Date of Birth Not Match | Date of Birth inputted did not match the date of birth recorded in the government database. | |
