# Versions

## Version 2

<mark style="color:green;">`POST`</mark> `https://okaydocdemo.innov8tif.com/ekyc/api/ekyc/v2/doc-verify/ph-license`

#### Request Body

| Name                                                 | Type   | Description                           |
| ---------------------------------------------------- | ------ | ------------------------------------- |
| caseNo                                               | string | Reference code given by user          |
| apiKey<mark style="color:red;">\*</mark>             | string | To be assigned by Innov8tif           |
| idImageBase64Image<mark style="color:red;">\*</mark> | string | Front driving license image in base64 |

{% tabs %}
{% tab title="200 " %}

```javascript
{
    "status": "success",
    "messageCode": "api.success",
    "message": "",
    "id": "6b667a88-29c8-468e-a4b9-5e9fee87e4cd",
    "methodList": [
        {
            "method": "landmark",
            "label": "Landmark Analysis Result",
            "componentList": [
                {
                    "code": "l-ph-dl-flag",
                    "label": "Philippines Flag",
                    "value": "98.04",
                    "imageUrl": "/public/image/v2/6b667a88-29c8-468e-a4b9-5e9fee87e4cd?type=l-ph-dl-flag",
                    "refImageUrl": null
                },
                {
                    "code": "l-ph-dl-header",
                    "label": "Header",
                    "value": "66.32000000000001",
                    "imageUrl": "/public/image/v2/6b667a88-29c8-468e-a4b9-5e9fee87e4cd?type=l-ph-dl-header",
                    "refImageUrl": null
                },
                {
                    "code": "l-ph-dl-logo",
                    "label": "Logo",
                    "value": "85.34",
                    "imageUrl": "/public/image/v2/6b667a88-29c8-468e-a4b9-5e9fee87e4cd?type=l-ph-dl-logo",
                    "refImageUrl": null
                },
                {
                    "code": "l-ph-dl-bglogo",
                    "label": "Background Logo",
                    "value": "0",
                    "imageUrl": "/public/image/v2/6b667a88-29c8-468e-a4b9-5e9fee87e4cd?type=l-ph-dl-bglogo",
                    "refImageUrl": null
                }
            ]
        },
        {
            "method": "hologram",
            "label": "Hologram",
            "componentList": [
                {
                    "code": "hologram",
                    "label": "Hologram",
                    "value": "Pass",
                    "imageUrl": null,
                    "refImageUrl": null
                }
            ]
        },
        {
            "method": "idBlurDetection",
            "label": "ID Blur Detection",
            "componentList": [
                {
                    "code": "idBlurDetection",
                    "label": "ID Blur Detection",
                    "value": "Cautious",
                    "imageUrl": null,
                    "refImageUrl": null
                }
            ]
        },
        {
            "method": "idBrightnessDetc",
            "label": "ID Brightness Detection",
            "componentList": [
                {
                    "code": "idBrightnessDetc",
                    "label": "ID Brightness Detection",
                    "value": "Pass",
                    "imageUrl": null,
                    "refImageUrl": null
                }
            ]
        },
        {
            "method": "colorMode",
            "label": "Color Mode",
            "componentList": [
                {
                    "code": "colorMode",
                    "label": "Color Mode",
                    "value": "Pass",
                    "imageUrl": null,
                    "refImageUrl": null
                }
            ]
        },
        {
            "method": "screen",
            "label": "Screen Detection",
            "componentList": [
                {
                    "code": "screen",
                    "label": "Screen Detection",
                    "value": "Cautious",
                    "imageUrl": null,
                    "refImageUrl": null
                }
            ]
        }
    ],
    "outputImageList": [
        {
            "tag": "cropId",
            "imageUrl": "/public/image/v2/6b667a88-29c8-468e-a4b9-5e9fee87e4cd?type=cropId"
        }
    ]
}
```

{% endtab %}

{% tab title="400: Bad Request " %}

```javascript
{
    // Response
}
```

{% endtab %}

{% tab title="500: Internal Server Error " %}

```javascript
{
    // Response
}
```

{% endtab %}
{% endtabs %}

#### Postman Collection

## Version 1

<mark style="color:green;">`POST`</mark> `https://okaydocdemo.innov8tif.com/ekyc/api/ekyc/v1/doc-verify/ph-license`

#### Request Body

| Name                                                 | Type   | Description                           |
| ---------------------------------------------------- | ------ | ------------------------------------- |
| apiKey<mark style="color:red;">\*</mark>             | string | To be assigned by Innov8tif           |
| idImageBase64Image<mark style="color:red;">\*</mark> | string | Front driving license image in base64 |

{% tabs %}
{% tab title="200 " %}

```javascript
{
    "status": "success",
    "messageCode": "api.success",
    "message": "",
    "id": "4623ef8c-6bfb-4513-8f57-61ff51652634",
    "methodList": [
        {
            "method": "idBlurDetection",
            "label": "ID Blur Detection",
            "componentList": [
                {
                    "code": "idBlurDetection",
                    "label": "ID Blur Detection",
                    "value": "Fail",
                    "imageUrl": null,
                    "refImageUrl": null
                }
            ]
        },
        {
            "method": "idBrightnessDetc",
            "label": "ID Brightness Detection",
            "componentList": [
                {
                    "code": "idBrightnessDetc",
                    "label": "ID Brightness Detection",
                    "value": "Fail",
                    "imageUrl": null,
                    "refImageUrl": null
                }
            ]
        },
        {
            "method": "colorMode",
            "label": "Color Mode",
            "componentList": [
                {
                    "code": "colorMode",
                    "label": "Color Mode",
                    "value": "Fail",
                    "imageUrl": null,
                    "refImageUrl": null
                }
            ]
        },
        {
            "method": "screen",
            "label": "Screen Detection",
            "componentList": [
                {
                    "code": "screen",
                    "label": "Screen Detection",
                    "value": "Fail",
                    "imageUrl": null,
                    "refImageUrl": null
                }
            ]
        }
    ],
    "outputImageList": [
        {
            "tag": "cropId",
            "imageUrl": "/public/image/v2/4623ef8c-6bfb-4513-8f57-61ff51652634?type=cropId"
        }
    ]
}

```

{% endtab %}

{% tab title="400: Bad Request " %}

```javascript
{
    // Response
}
```

{% endtab %}

{% tab title="500: Internal Server Error " %}

```javascript
{
    // Response
}
```

{% endtab %}
{% endtabs %}

#### Postman Collection

* NA&#x20;
