---
# System prepended metadata

title: 機台櫃門狀態
tags: [機台櫃門]

---

# 機台櫃門狀態

**機台所有櫃門狀態**

#### 網址
{domain}/smart-daily/machine/all-door-status


#### 認證方式
Authoriztion : Bearer Token

#### Method
GET

#### 傳入參數

|欄位名稱|必填|型態|欄位|備註|
| ------------ | :-----------: |:-----------: |------------ |------------ |
|command_id | Y | string | 指令ID | |


#### 回傳參數

|Name|Type|說明|
| ------------ | ------------ |------------ |
|command_id|string|指令ID||
|slave_id|string|門櫃編號||
|lanes|array|門櫃||
|lanes.lane_id|int | 櫃門ID | |
|lanes.status|int | 櫃門狀態: 0:開 / 1:鎖 / -1:10秒內未收到回應| |

#### Request Authoriztion
```json
{
    Bearer Token : "token string..."
}
```

#### Json Example
Request GET
```
{domain}/smart-daily/machine/all-door-status?command_id=93FC5DA1D95F03CC5A98150E219B396C
```

Response Json Success
```json
{
    "status": true,
    "message": "成功",
    "data": [
        {
            "command_id": "93FC5DA1D95F03CC5A98150E219B396C",
            "slave_id": "A1",
            "lanes": [
                {
                    "lane_id": 1,
                    "status": 1
                },
                {
                    "lane_id": 2,
                    "status": 1
                },
                {
                    "lane_id": 3,
                    "status": 1
                },
                {
                    "lane_id": 4,
                    "status": 1
                },
                {
                    "lane_id": 5,
                    "status": 1
                }
            ]
        },
        {
            "command_id": "93FC5DA1D95F03CC5A98150E219B396C",
            "slave_id": "A2",
            "lanes": [
                {
                    "lane_id": 1,
                    "status": 1
                },
                {
                    "lane_id": 2,
                    "status": 1
                },
                {
                    "lane_id": 3,
                    "status": 1
                },
                {
                    "lane_id": 4,
                    "status": 1
                }
            ]
        },
        {
            "command_id": "93FC5DA1D95F03CC5A98150E219B396C",
            "slave_id": "A3",
            "lanes": [
                {
                    "lane_id": 1,
                    "status": 1
                },
                {
                    "lane_id": 2,
                    "status": 1
                },
                {
                    "lane_id": 3,
                    "status": 1
                },
                {
                    "lane_id": 4,
                    "status": 1
                },
                {
                    "lane_id": 5,
                    "status": 1
                }
            ]
        },
        {
            "command_id": "93FC5DA1D95F03CC5A98150E219B396C",
            "slave_id": "A4",
            "lanes": [
                {
                    "lane_id": 1,
                    "status": 1
                },
                {
                    "lane_id": 2,
                    "status": 1
                },
                {
                    "lane_id": 3,
                    "status": 1
                },
                {
                    "lane_id": 4,
                    "status": 1
                },
                {
                    "lane_id": 5,
                    "status": 1
                }
            ]
        }
    ]
}

```

Response Json Error
```json
{
    "status": false,
    "message": "No data Found",
    "errors": ""
}
```
