# 機台櫃門狀態 **機台所有櫃門狀態** #### 網址 {domain}/smart-drawer/machine/door-status #### 認證方式 Authoriztion : Bearer Token #### Method GET #### 傳入參數 |欄位名稱|必填|型態|欄位|備註| | ------------ | :-----------: |:-----------: |------------ |------------ | |command_id | Y | string | 指令ID | | #### 回傳參數 |Name|Type|說明| | ------------ | ------------ |------------ | |slave_id|array|門櫃編號|| |lanes|array|門櫃|| |lanes.lane_id|array | 櫃門ID | | |lanes.status|array | 櫃門狀態: 0:開 / 1:鎖 / -1:10秒內未收到回應| | #### Request Authoriztion ```json { Bearer Token : "token string..." } ``` #### Json Example Request GET ``` {domain}/smart-drawer/machine/door-status?command_id=301FC7A9586AFEA2BDF8F3B5AF7C428F ``` Response Json Success ```json { "status": true, "message": "成功", "data": { "command_id": "301FC7A9586AFEA2BDF8F3B5AF7C428F", "slave_id": "A1", "lanes": [ { "lane_id": 1, "status": 1 }, { "lane_id": 2, "status": 1 }, { "lane_id": 3, "status": 1 }, { "lane_id": 4, "status": 1 } ] } } ``` Response Json Error ```json { "status": false, "message": "No data Found", "errors": "" } ```