# Versions

## Version 2

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

#### 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 UMID  image in base64  |

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

```javascript
{
    "status": "success",
    "messageCode": "api.success",
    "message": "",
    "id": "2a7a0f61-181b-4b2f-824d-41c3f4a5462c",
    "methodList": [
        {
            "method": "landmark",
            "label": "Landmark Analysis Result",
            "componentList": [
                {
                    "code": "l-ph-umid-republic-log",
                    "label": "Republic Logo",
                    "value": "83.52000000000001",
                    "imageUrl": "/public/image/v2/2a7a0f61-181b-4b2f-824d-41c3f4a5462c?type=l-ph-umid-republic-log",
                    "refImageUrl": null
                },
                {
                    "code": "l-ph-umid-republic-header",
                    "label": "Republic Header",
                    "value": "91.69",
                    "imageUrl": "/public/image/v2/2a7a0f61-181b-4b2f-824d-41c3f4a5462c?type=l-ph-umid-republic-header",
                    "refImageUrl": null
                },
                {
                    "code": "l-ph-umid-logo",
                    "label": "UMID Logo",
                    "value": "93.07",
                    "imageUrl": "/public/image/v2/2a7a0f61-181b-4b2f-824d-41c3f4a5462c?type=l-ph-umid-logo",
                    "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": "Pass",
                    "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/2a7a0f61-181b-4b2f-824d-41c3f4a5462c?type=cropId"
        }
    ]
}
```

{% endtab %}

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

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

{% endtab %}

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

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

{% endtab %}
{% endtabs %}

#### Postman Collection

{% file src="<https://1723857616-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FoP1M8bTYgFFHHnAdjjta%2Fuploads%2F78FhFnP260KSbWGpevau%2FOkayDoc%20PH%20UMID%20v2.postman_collection.rar?alt=media&token=1681775b-3a0b-45dd-b7f5-20c69602fd8b>" %}
OkayDoc UMID v2
{% endfile %}

## Version 1

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

#### 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 UMID  image in base64  |

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

```javascript
{
    "status": "success",
    "messageCode": "api.success",
    "message": "",
    "id": "da9cb5ce-d661-4335-8d44-f420520c9c60",
    "methodList": [
        {
            "method": "landmark",
            "label": "Landmark Analysis Result",
            "componentList": [
                {
                    "code": "l-ph-umid-republic-log",
                    "label": "Republic Logo",
                    "value": "72.41",
                    "imageUrl": "/public/image/v2/da9cb5ce-d661-4335-8d44-f420520c9c60?type=l-ph-umid-republic-log",
                    "refImageUrl": null
                },
                {
                    "code": "l-ph-umid-republic-header",
                    "label": "Republic Header",
                    "value": "57.809999999999995",
                    "imageUrl": "/public/image/v2/da9cb5ce-d661-4335-8d44-f420520c9c60?type=l-ph-umid-republic-header",
                    "refImageUrl": null
                },
                {
                    "code": "l-ph-umid-logo",
                    "label": "UMID Logo",
                    "value": "87.86",
                    "imageUrl": "/public/image/v2/da9cb5ce-d661-4335-8d44-f420520c9c60?type=l-ph-umid-logo",
                    "refImageUrl": null
                },
                {
                    "code": "l-ph-umid-flower",
                    "label": "Flower",
                    "value": "48.44",
                    "imageUrl": "/public/image/v2/da9cb5ce-d661-4335-8d44-f420520c9c60?type=l-ph-umid-flower",
                    "refImageUrl": null
                }
            ]
        }
    ],
    "outputImageList": [
        {
            "tag": "cropId",
            "imageUrl": "/public/image/v2/da9cb5ce-d661-4335-8d44-f420520c9c60?type=cropId"
        }
    ]
}
```

{% endtab %}

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

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

{% endtab %}

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

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

{% endtab %}
{% endtabs %}

#### Postman Collection

{% file src="<https://1723857616-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FoP1M8bTYgFFHHnAdjjta%2Fuploads%2FbPuoHpq5CxdHLngZGb10%2FOkayDoc%20PH%20UMID.postman_collection.rar?alt=media&token=219f7943-2b6e-480d-a419-27b81e5d4b6f>" %}
OkayDoc UMID
{% endfile %}
