# 機台開櫃 **機台開櫃(單一櫃或多櫃)** #### 網址 {domain}/smart-drawer/machine/open-lane #### 認證方式 Authoriztion : Bearer Token #### Method POST #### 傳入參數 |欄位名稱|必填|型態|欄位|備註| | ------------ | :-----------: |:-----------: |------------ |------------ | |slave_id|Y|string|機台號|| |lanes|Y|array|門櫃編號|| #### 回傳參數 |Name|Type|說明| | ------------ | ------------ |------------ | |command_id | string| 此次指令ID | |command_result | array| 櫃門指令傳送資訊| |command_result.slave_id | string| 機台號| |command_result.lane_id | int| 門櫃編號 | |command_result.command_status | bool| 指令是否正確發送出去(並非指是否開門成功)| #### Request Authoriztion ```json { Bearer Token : "token string..." } ``` #### Json Example Request Json ```json { "body": { "slave_id": "A1", "lanes": [1, 3] } } ``` Response Json Success ```json { "status": true, "message": "成功", "data": { "command_id": "5FDDBCD6588E8F7376130DFD2CD90CA6", "command_result": [ { "slave_id": "A1", "lane_id": 1, "command_status": true }, { "slave_id": "A1", "lane_id": 3, "command_status": true } ] } } ``` Response Json Error ```json { "status": false, "message": "No data Found", "errors": "" } ```