# Get eKYC Details

## **Overview**

The user is required to enter the username and password under the **API Header** provided by Innov8tif Solutions.&#x20;

## API Method

## To get the full journey details including OCR results from OkayID, processed result from OkayFace, OkayLive, and OkayDoc

<mark style="color:blue;">`GET`</mark> `https://ekycportaldemo.innov8tif.com/api/ekyc/details/{journeyId}`

#### Headers

| Name                                            | Type | Description                                                                                                                                                                                       |
| ----------------------------------------------- | ---- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Authorization<mark style="color:red;">\*</mark> |      | <p>Basic base64(USERNAME:PASSSWORD)</p><p></p><p>e.g. dGVzdGVyOnRlc3QxMjM0<br><br>Get the USERNAME and PASSWORD from Innov8tif Solutions<br><br>encode base64 with the USERNAME and USERNAME </p> |

{% tabs %}
{% tab title="200: OK A encrypted response will be returned " %}
***To decrypt the response***

Online tool: <https://www.devglan.com/online-tools/aes-encryption-decryption>&#x20;

Decrypt value from result in JSON response using algorithm AES 128&#x20;

·        Initialization Vector (IV) = byte array of key that provided by Innov8tif Solutionss

·        Cipher= AES/CBC/PKCS5PADDING

```json
Encrypted Form
{
    "status": "success",
    "message": "api.success",
    "result": "p1GWGOfIXaDKD6............"
}


Decrypted Form
{
"id": "6e9054f0-4e25-4bb3-958b-d96c75fd2b34",
	"createdDate": 1697438472000,
	"companyId": "iPt4dDiN0lBLhnpimTPZhRP-huvZKyx-",
	"okayDocs": [
		{
			"id": "b0f22434-0855-4f2c-a003-64e86edb6605",
			"docType": "ektp_front",
			"okayDocResponse": {
				"status": "success",
				"messageCode": "api.success",
				"message": "",
				"id": "b3be9693-3879-4ebd-8c1f-5489002b11c0",
				"methodList": [
					{
						"method": "landmark",
						"label": "Landmark Analysis Result",
						"componentList": [
							{
								"code": "l-ektp-front-nik",
								"label": "Nik",
								"value": "66.08650088310242",
								"imageUrl": "/public/image/v2/b3be9693-3879-4ebd-8c1f-5489002b11c0?type=l-ektp-front-nik"
							},
							
							
............							
}

```

{% endtab %}
{% endtabs %}

## API Response

| status  | Indicate API status. Values can be **Success** or **Error**.                                                                                                                                                                                                                                                                                                                                                                                                                            |
| ------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| message | <p>Status message if the status is an error.</p><ul><li>INVALID\_AUTH\_HEADER– invalid authentication header.</li><li>WRONG\_CREDENTIAL – invalid username or password.</li><li>INVALID\_JOURNEY\_ID – invalid journeyId</li><li>AUTHORIZATION\_ERROR – authorization error: when journeyId doesn’t belong to the requested username/password</li><li>ERROR\_NO\_PERMISSION – indicate control ‘Allow journey deletion via API’ is disabled ( in IDV module for each account)</li></ul> |
