# Versions

## Version 3

<mark style="color:green;">`POST`</mark> `https://okaydocdemo.innov8tif.com/ekyc/api/ekyc/v3/doc-verify/mykad-back`

* Added Tampering Check for ID number *`(Below KETUA PENGARAH PENDAFTARAN NEGARA)`*

#### Request Body

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

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

```json
{
    "status": "success",
    "messageCode": "api.success",
    "message": "",
    "id": "c6ce4823-f0c4-4d17-b622-90c40d077859",
    "methodList": [
        {
            "method": "landmark",
            "label": "Landmark Analysis Result",
            "componentList": [
                {
                    "code": "l-signature",
                    "label": "Signature Landmark",
                    "value": "78.26530000000001",
                    "imageUrl": null,
                    "refImageUrl": null
                },
                {
                    "code": "l-tng",
                    "label": "TnG Landmark",
                    "value": "90.2957",
                    "imageUrl": null,
                    "refImageUrl": null
                },
                {
                    "code": "l-80k",
                    "label": "80k Landmark",
                    "value": "44.3834",
                    "imageUrl": null,
                    "refImageUrl": null
                },
                {
                    "code": "l-tower",
                    "label": "Towers Landmark",
                    "value": "98.127",
                    "imageUrl": null,
                    "refImageUrl": null
                },
                {
                    "code": "l-crown",
                    "label": "Crown Landmark",
                    "value": "76.63799999999999",
                    "imageUrl": null,
                    "refImageUrl": null
                },
                {
                    "code": "l-malaysia",
                    "label": "Malaysia Text Landmark",
                    "value": "98.7963",
                    "imageUrl": null,
                    "refImageUrl": null
                },
                {
                    "code": "l-kppn",
                    "label": "KPPN Landmark",
                    "value": "55.53829999999999",
                    "imageUrl": null,
                    "refImageUrl": null
                },
                {
                    "code": "l-atm",
                    "label": "ATM Landmark",
                    "value": "0",
                    "imageUrl": null,
                    "refImageUrl": null
                },
                {
                    "code": "l-meps",
                    "label": "MEPS Landmark",
                    "value": "0",
                    "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": "Pass",
                    "imageUrl": null,
                    "refImageUrl": null
                }
            ]
        },
        {
            "method": "idTamper",
            "label": "Tamper Detection",
            "componentList": [
                {
                    "code": "idTamper",
                    "label": "Tamper Detection",
                    "value": "Pass",
                    "imageUrl": null,
                    "refImageUrl": null
                }
            ]
        }
    ],
    "outputImageList": null
}

```

{% endtab %}
{% endtabs %}

####

## Version 2

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

Added Quality Check and Screen Presentation Check

#### Request Body

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

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

```json
[
	{
		"method": "landmark",
		"label": "Landmark Analysis Result",
		"result": "84.3643,90.973,48.3335,48.5711,70.2704,23.1815,60.6098,0,0",
		"componentResultList": [
			{
				"code": "l-signature",
				"label": "Signature Landmark",
				"value": "84.3643",
				"imagePath": null,
				"refImagePath": null,
				"score": null
			},
			{
				"code": "l-tng",
				"label": "TnG Landmark",
				"value": "90.973",
				"imagePath": null,
				"refImagePath": null,
				"score": null
			},
			{
				"code": "l-80k",
				"label": "80k Landmark",
				"value": "48.3335",
				"imagePath": null,
				"refImagePath": null,
				"score": null
			},
			{
				"code": "l-tower",
				"label": "Towers Landmark",
				"value": "48.5711",
				"imagePath": null,
				"refImagePath": null,
				"score": null
			},
			{
				"code": "l-crown",
				"label": "Crown Landmark",
				"value": "70.2704",
				"imagePath": null,
				"refImagePath": null,
				"score": null
			},
			{
				"code": "l-malaysia",
				"label": "Malaysia Text Landmark",
				"value": "23.1815",
				"imagePath": null,
				"refImagePath": null,
				"score": null
			},
			{
				"code": "l-kppn",
				"label": "KPPN Landmark",
				"value": "60.6098",
				"imagePath": null,
				"refImagePath": null,
				"score": null
			},
			{
				"code": "l-atm",
				"label": "ATM Landmark",
				"value": "0",
				"imagePath": null,
				"refImagePath": null,
				"score": null
			},
			{
				"code": "l-meps",
				"label": "MEPS Landmark",
				"value": "0",
				"imagePath": null,
				"refImagePath": null,
				"score": null
			}
		]
	},
	{
		"method": "idBlurDetection",
		"label": "ID Blur Detection",
		"result": "Pass",
		"componentResultList": [
			{
				"code": "idBlurDetection",
				"label": "ID Blur Detection",
				"value": "Pass",
				"imagePath": null,
				"refImagePath": null,
				"score": null
			}
		]
	},
	{
		"method": "idBrightnessDetc",
		"label": "ID Brightness Detection",
		"result": "Pass",
		"componentResultList": [
			{
				"code": "idBrightnessDetc",
				"label": "ID Brightness Detection",
				"value": "Pass",
				"imagePath": null,
				"refImagePath": null,
				"score": null
			}
		]
	},
	{
		"method": "colorMode",
		"label": "Color Mode",
		"result": "Pass",
		"componentResultList": [
			{
				"code": "colorMode",
				"label": "Color Mode",
				"value": "Pass",
				"imagePath": null,
				"refImagePath": null,
				"score": null
			}
		]
	},
	{
		"method": "screen",
		"label": "Screen Detection",
		"result": "Pass",
		"componentResultList": [
			{
				"code": "screen",
				"label": "Screen Detection",
				"value": "Pass",
				"imagePath": null,
				"refImagePath": null,
				"score": null
			}
		]
	}
]

```

{% endtab %}
{% endtabs %}

####

## Version 1

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

#### 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 | Back id card image in base64 |

{% tabs %}
{% tab title="200 New MyKad back's response" %}

```json
{
    "status": "success",
    "messageCode": "api.success",
    "message": "",
    "id": "00a632af-f6f7-485b-9dae-4f8211709690",
    "methodList": [
        {
            "method": "landmark",
            "label": "Landmark Analysis Result",
            "componentList": [
                {
                    "code": "l-signature",
                    "label": "Signature Landmark",
                    "value": "83.0052",
                    "imageUrl": "/public/image/v2/00a632af-f6f7-485b-9dae-4f8211709690?type=l-signature",
                    "refImageUrl": null
                },
                {
                    "code": "l-tng",
                    "label": "TnG Landmark",
                    "value": "92.81230000000001",
                    "imageUrl": "/public/image/v2/00a632af-f6f7-485b-9dae-4f8211709690?type=l-tng",
                    "refImageUrl": null
                },
                {
                    "code": "l-80k",
                    "label": "80k Landmark",
                    "value": "92.4028",
                    "imageUrl": "/public/image/v2/00a632af-f6f7-485b-9dae-4f8211709690?type=l-80k",
                    "refImageUrl": null
                },
                {
                    "code": "l-tower",
                    "label": "Towers Landmark",
                    "value": "78.2558",
                    "imageUrl": "/public/image/v2/00a632af-f6f7-485b-9dae-4f8211709690?type=l-tower",
                    "refImageUrl": null
                },
                {
                    "code": "l-crown",
                    "label": "Crown Landmark",
                    "value": "76.7101",
                    "imageUrl": "/public/image/v2/00a632af-f6f7-485b-9dae-4f8211709690?type=l-crown",
                    "refImageUrl": null
                },
                {
                    "code": "l-malaysia",
                    "label": "Malaysia Text Landmark",
                    "value": "62.0873",
                    "imageUrl": "/public/image/v2/00a632af-f6f7-485b-9dae-4f8211709690?type=l-malaysia",
                    "refImageUrl": null
                },
                {
                    "code": "l-kppn",
                    "label": "KPPN Landmark",
                    "value": "58.818599999999996",
                    "imageUrl": "/public/image/v2/00a632af-f6f7-485b-9dae-4f8211709690?type=l-kppn",
                    "refImageUrl": null
                },
                {
                    "code": "l-atm",
                    "label": "ATM Landmark",
                    "value": "0",
                    "imageUrl": null,
                    "refImageUrl": null
                },
                {
                    "code": "l-meps",
                    "label": "MEPS Landmark",
                    "value": "0",
                    "imageUrl": null,
                    "refImageUrl": null
                }
            ]
        }
    ],
    "outputImageList": null
}
```

{% endtab %}

{% tab title="202 Old MyKad back's response" %}

```json
{
    "status": "success",
    "messageCode": "api.success",
    "message": "",
    "id": "e3442036-0e1a-4a75-a4cb-1686c35fcf98",
    "methodList": [
        {
            "method": "landmark",
            "label": "Landmark Analysis Result",
            "componentList": [
                {
                    "code": "l-signature",
                    "label": "Signature Landmark",
                    "value": "98.7171",
                    "imageUrl": "/public/image/v2/xxxxxxxxxxxx?type=l-signature",
                    "refImageUrl": null
                },
                {
                    "code": "l-tng",
                    "label": "TnG Landmark",
                    "value": "98.9934",
                    "imageUrl": "/public/image/v2/xxxxxxxxxx?type=l-tng",
                    "refImageUrl": null
                },
                {
                    "code": "l-80k",
                    "label": "80k Landmark",
                    "value": "99.34429999999999",
                    "imageUrl": null,
                    "refImageUrl": null
                },
                {
                    "code": "l-tower",
                    "label": "Towers Landmark",
                    "value": "99.1333",
                    "imageUrl": "/public/image/v2/xxxxxxxxxxxxx?type=l-tower",
                    "refImageUrl": null
                },
                {
                    "code": "l-crown",
                    "label": "Crown Landmark",
                    "value": "98.9687",
                    "imageUrl": "/public/image/v2/xxxxxxxxxx?type=l-crown",
                    "refImageUrl": null
                },
                {
                    "code": "l-malaysia",
                    "label": "Malaysia Text Landmark",
                    "value": "98.9323",
                    "imageUrl": "/public/image/v2/xxxxxxxxxxxxx?type=l-malaysia",
                    "refImageUrl": null
                },
                {
                    "code": "l-kppn",
                    "label": "KPPN Landmark",
                    "value": "98.2278",
                    "imageUrl": "/public/image/v2/xxxxxxxxxxx?type=l-kppn",
                    "refImageUrl": null
                },
                {
                    "code": "l-atm",
                    "label": "ATM Landmark",
                    "value": "98.59609999999999",
                    "imageUrl": "/public/image/v2/xxxxxxxxx?type=l-atm",
                    "refImageUrl": null
                },
                {
                    "code": "l-meps",
                    "label": "MEPS Landmark",
                    "value": "99.0865",
                    "imageUrl": "/public/image/v2/xxxxxxxxxxx?type=l-meps",
                    "refImageUrl": null
                }
            ]
        }
    ],
    "outputImageList": null
}
```

{% endtab %}
{% endtabs %}

#### Postman Collection

{% file src="<https://1723857616-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FoP1M8bTYgFFHHnAdjjta%2Fuploads%2FTMzvyTGXKupt7Gpa7pl7%2FOkayDoc%20MyKad%20Back.postman_collection.rar?alt=media&token=043b55dd-f9a8-4e7b-ab88-915a1c61830c>" %}
OkayDoc MyKad Back
{% endfile %}
