idAuth
執行OCR
Request:
{
"account": "A125947523",
"idimgfront": "/9j/4AAQSkZJRgABAQAASABIAAD/", (base64)
"idimgback": "/9j/4AAQSkZJRgABAQAASABIAAD/", (base64)
"task_num":"202309150000001",
"customer_no":1 (int)
}
Parameter | Meaning | Type | Required | Default value | Description |
---|---|---|---|---|---|
HEADERS | |||||
Content-Type | string | Y | application/json | ||
BODY | |||||
parameter | meaning | type | note | 您要觀看影片的任務編號 | |
account | ID number | string | Y | ||
idimgfront | ID card front | base64 | Y | ||
idimgback | ID card back | base64 | Y | ||
task_num | Case Number | string | Y | 主持人可以收 OCR MQTT | |
customer_no | Customer Number | number | Y | 主持人知道 OCR 中誰是客戶 | |
Response:
{
"status": 1,
"message": "身分證辦識成功",
"info": {
"name": "2",
"idno": "A123456789",
"birthday": "1985/08/09",
"issuestatus": "換發",
"issuecity": "北市",
"issuedate": "2015/09/14",
"message": "身分證辦識成功"
}
}
Parameter | Meaning | Type | Existed | Default value | Description |
---|---|---|---|---|---|
BODY | |||||
status | response status | number | Y | 0: fail | |
1: success | |||||
message | message | string | Y | “” | 若有錯誤時的錯誤訊息 |
info | Return Information | object | Y | ||
name | id card name | string | |||
idno | id card number | string | |||
birthday | id card birthday | string | |||
issuestatus | id card status | string | |||
issuecity | id card city | string | |||
issuedate | id card update date | string | |||
message | ocr message | string |
Error code:
以下是API傳回的錯誤訊息表格。
Code | Status | Error | Message |
---|---|---|---|
200 | 1 | success | |
0 | 未經授權的訪問 | ||
404 | 未找到資源 | ||
403 | 不允許存取請求的資源 |