Introducing VIDA Identity Stack: All of VIDA, in one place 🎉
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Malaysian Cards

Currently Supported Malaysian Cards include:

Note: The RELIGION field is optional on Malaysian ID cards, meaning it may or may not be printed on the card. As a result, this field may also be present or absent in the response. Backside card support can be enabled through configuration, and the KYC flow will follow the idSubType you provide (for example, use idSubType = MyKad to apply the correct setup).

MyKad

Request

Request for Front Side Only
{
  "operations": ["ocr"],
  "payload": {
    "partnerTrxId": "random-uuid",
    "groupId": "random-uuid",
    "idType": "ID_CARD",
    "country": "MYS",
    "idSubtype": "MyKad",
    "idFrontSideImage": "Base64 encoded image of ID front side", 
  },
  "userConsent": {
    "userIP": "0.0.0.0",
    "country": "MYS",
    "obtained": true,
    "obtainedAt": "1680700959"
  }
}
Request for Front Side and Back Side
{
  "operations": ["ocr"],
  "payload": {
    "partnerTrxId": "random-uuid",
    "groupId": "random-uuid",
    "idType": "ID_CARD",
    "country": "MYS",
    "idSubtype": "MyKad",
    "idFrontSideImage": "Base64 encoded image of ID front side",
    "idBackSideImage": "Base64 encoded image of ID back side" //if enabled 
  },
  "userConsent": {
    "userIP": "0.0.0.0",
    "country": "MYS",
    "obtained": true,
    "obtainedAt": "1680700959"
  }
}

Success Response

HTTP Status Code: 200

Success JSON Response for Front Side Only
Success JSON Response for Front Side and Back Side

Error 5023 - IdNumber Doesn't contain a valid DOB

Note: In some cases, glare or other obstructions on MyKad cards may prevent proper extraction of the ID number, which in turn affects the extraction of the date of birth. If the ID number is occluded or not extracted correctly, the following error message will be returned.

HTTP Status Code: 400

Error 5023 - JSON Response

IdNumber with '*' at the end

Note: Some MyKad cards have an * at the end of the ID number. This asterisk indicates that the ID number does not match the cardholder’s date of birth. Instead, the first six digits, which typically represent the date of birth, correspond to the date of application for the MyKad.

HTTP Status Code: 200

IdNumber with '*' JSON Response

OCR Warning for low scores

Note: Any field if has a score lower than threshold value of 0.95, we raise a low score warning for the field.

HTTP Status Code: 200

OCR Warning JSON Response

Image Color Reprint

HTTP Status Code: 200

Image Color Reprint JSON Response

MyTentera

Request for Front Side Only
Request for Front Side and Back Side

Success Response

HTTP Status Code: 200

Success JSON Response for Front Side Only
Success JSON Response for Front Side and Back Side

Error 5023 - IdNumber Doesn't contain a valid DOB

Note: In some cases, glare or other obstructions on MyTentera cards may prevent proper extraction of the ID number, which in turn affects the extraction of the date of birth. If the ID number is occluded or not extracted correctly, the following error message will be returned.

HTTP Status Code: 400

Error 5023 - JSON Response

OCR Warning's for low score

Note: Any field if has a score lower than threshold value of 0.95, we raise a low score warning for the field.

HTTP Status Code: 200

OCR Warning JSON Response

Image Color Reprint

HTTP Status Code: 200

Image Color Reprint JSON Response

MyKas

Request for Front Side Only
Request for Front Side and Back Side

Success Response

HTTP Status Code: 200

Success JSON Response

Error 5023 - IdNumber Doesn't contain a valid DOB

Note: In some cases, glare or other obstructions on MyKas cards may prevent proper extraction of the ID number, which in turn affects the extraction of the date of birth. If the ID number is occluded or not extracted correctly, the following error message will be returned.

HTTP Status Code: 400

Error 5023 - JSON Response

OCR Warning's for low score

Note: Any field if has a score lower than threshold value of 0.95, we raise a low score warning for the field.

HTTP Status Code: 200

OCR Warning JSON Response

Image Color Reprint

HTTP Status Code: 200

Image Color Reprint JSON Response

MyPR

Request for Front Side Only
Request for Front Side and Back Side

Success Response

HTTP Status Code: 200

Success JSON Response

Error 5023 - IdNumber Doesn't contain a valid DOB

Note: In some cases, glare or other obstructions on MyPR cards may prevent proper extraction of the ID number, which in turn affects the extraction of the date of birth. If the ID number is occluded or not extracted correctly, the following error message will be returned.

HTTP Status Code: 400

Error 5023 - JSON Response

OCR Warning's for low score

Note: Any field if has a score lower than threshold value of 0.95, we raise a low score warning for the field.

HTTP Status Code: 200

OCR Warning JSON Response

Image Color Reprint

HTTP Status Code: 200

Image Color Reprint JSON Response

Last updated