---
# System prepended metadata

title: 企業員工QRCode收案

---

# 企業員工QRCode收案

---
API清單
- [QRCode收案](#QRCode收案)
---

 
 ## QRCode收案
 
 ```url
 POST /company/add-from-qrcode
 ```
 
 * App使用者掃QRCode 企業員工收案用
 * QRCode內容格式為 health365:://company/add-case-qrcode?tenantId=xxxxxxxx&tenantName=xxxxxxxx
 
 
 ### Request
  欄位 | 型態 | 必填 | 預設 | 說明  
  ---|---|---|---|---
  tenantId | string | Y |  | 收案企業租戶id
  employeeNo | string |  |  | 員工編號 
 
 ```javascript
 {
     "tenantId": "64d3dc34-3aa3-48ff-bba3-d1f5bd48119d",
     "employeeNo": "C1111"
 }
 ```
 
 ### Response
  欄位 | 型態   | 說明  
  --- | --- |---
  id | string | 企業租戶收案id
  employeeNo | string | 員工編號
  
 ```javascript
 {
     "httpCode": 200,
     "result": {
         "data": {
             "id": "5b5109f2-1b08-4edb-b00b-504672dccc34",
             "areaCode": "64d3dc34-3aa3-48ff-bba3-d1f5bd48119d",
             "householdMemberId": "8a9e980a-c612-4f87-af07-a97a5f0fbed5",
             "employeeNo": "C1111",
             "patIdNo": "Q101540463",
             "patName": "蘇凱文",
             "birthDate": 578937600000,
             "bodyHeight": 173,
             "sex": 1,
             "patTel": "0925309365",
             "patAddr": "台北市衛生局調查研究",
             "updateTime": 1661765418567
         }
     }
 }
 ```
 
 ### Error
  錯誤碼 | 錯誤字串 | 說明
  --- | --- | ---
  400 | API_ERROR.NOT_EXIST | 無此租戶
  400 | API_ERROR.USER_INFO_ERROR | 無此使用者
  422 | SERVICE_ERROR.COMPANY_CASE_QR_TENANT_NOT_ENABLED | 企業租戶未啟用
  422 | SERVICE_ERROR.COMPANY_CASE_QR_TENANT_NOT_ALLOWED | 非企業租戶


