Links

API Error Message

Specific Error Message

Thai National ID Card Front Side

Status Code
Status Message
Description
420
NO_ID_CARD_FOUND
The image file is not the ID card.
421
IMAGE_ERROR_UNSUPPORTED_FORMAT
The image can not be resolved. The file format may not be supported or the file is damaged.
422
INVALID_IMAGE_SIZE
The size of the uploaded image does not meet the requirement as above.
424
PLEASE_VERIFY_ID_CARD_NUMBER
The National ID Number has 13 digits but incorrect. Response code: 424 will show when used id_check in options if not used id_check. response code is 200, You should check in error_message.
425
CANNOT_READ_ID_CARD_NUMBER_CLEARLY
The National ID Number has less 13 digits. Response code: 425 will show when used id_check in options if not used id_check. response code is 200, You should check in error_message.
426
IMAGE_ERROR_UNSUPPORTED_BLACK_WHITE_IMAGE
Used gray_check in options for check image black-white and gray image.

Error Message

420
421
422
424
425
426
{
"detection_score": 0.3049537042776744,
"error_message": "NO_ID_CARD_FOUND",
"process_time": 1.2874093055725098
}
{
"error_message": "IMAGE_ERROR_UNSUPPORTED_FORMAT"
}
{
"error_message": "INVALID_IMAGE_SIZE"
}
{
"error_message": "PLEASE_VERIFY_ID_CARD_NUMBER"
}
{
"error_message": "CANNOT_READ_ID_CARD_NUMBER_CLEARLY"
}
{
"error_message": "IMAGE_ERROR_UNSUPPORTED_BLACK_WHITE_IMAGE"
}

Thai National ID Card Back Side

Status Code
Status Message
Description
430
NO_ID_CARD_FOUND
The image file is not the ID Card.
431
IMAGE_ERROR_UNSUPPORTED_FORMAT
The image can not be resolved. The file format may not be supported or the file is damaged.
432
INVALID_IMAGE_SIZE
The size of the uploaded image does not meet the requirement as above.
434
LASER_NUMBER_NOT_FOUND
Can not detect the laser number on back ID Card.
435
CANNOT_READ_LASER_NUMBER_CLEARLY
The laser number has less 12 digits. Response code: 435 will show when used id_check in options if not used id_check. response code is 200, You should check in error_message.
436
IMAGE_ERROR_UNSUPPORTED_BLACK_WHITE_IMAGE
Used gray_check in options for check image black-white and gray image.

Error Message

430
431
432
434
435
436
{
"detection_score": 0.0,
"error_message": "NO_ID_CARD_FOUND",
"process_time": 0.137020141601562
}
{
"error_message": "IMAGE_ERROR_UNSUPPORTED_FORMAT"
}
{
"error_message": "INVALID_IMAGE_SIZE"
}
{
"error_message": "LASER_NUMBER_NOT_FOUND"
}
{
"error_message": "CANNOT_READ_LASER_NUMBER_CLEARLY"
}
{
"error_message": "IMAGE_ERROR_UNSUPPORTED_BLACK_WHITE_IMAGE"
}

Common Error Message

Status Code
Status Message
Description
Text
404
REQUESTED_URL_NOT_FOUND
API Route not found in request
405
METHOD_NOT_ALLOWED
Method name (GET, POST) in the URL is incorrect.
413
FILE_IS_TOO_LARGE: (more than 2 MB)
The file size is too large
427
LONG_TIME_TO_PROCESS
The server is processed for a long time.
428
LONG_TIME_TO_REQUEST
The client is waiting in the queue for a long time.
461
NO_FILE_ATTACHED
No file attached.
560
SERVER_IS_BUSY:
(Please try again in a few seconds.)
Server is working on many requests.
563
ID_CARD_API_NOT_SUPPORT_THIS_IMAGE
The API has an error in the process.

Error Message

404
405
413
427
428
461
560
563
{
"error_message": "REQUESTED_URL_NOT_FOUND"
}
{
"error_message": "METHOD_NOT_ALLOWED"
}
{
"error_message": "FILE_IS_TOO_LARGE: (more than 2 MB)"
}
{
"error_message": "LONG_TIME_TO_PROCESS"
}
{
"error_message": "LONG_TIME_TO_REQUEST"
}
{
"error_message": "NO_FILE_ATTACHED"
}
{
"error_message": "ERVER_IS_BUSY: (Please try again in a few seconds.)"
}
{
"error_message": "ID_CARD_API_NOT_SUPPORT_THIS_IMAGE"
}